/* =========================================================
   1. RESET & BASIS
========================================================= */
@charset "utf-8";

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #f4f4f4;
}

hr {
    display: block;
    border: 0;
    background-image: url("images/hartimpuls.png");
    margin-left: 10px;
    height: 10px;
    width: 50%;
}

/* =========================================================
   2. TYPOGRAFIE
========================================================= */
h1 { margin-top: 20px; }

h3 {
    color: #008000;
    font-size: 23px;
}

p {
    color: #505050;
    font-size: 18px;
}

li {
    color: #505050;
    font-size: 18px;
}

td {
    font-size: 18px;
}

/* =========================================================
   3. LINKS
========================================================= */
p a:link { color: blue; text-decoration: underline; }
p a:hover { color: red; text-decoration: underline; }
p a:visited { color: green; text-decoration: underline; }
p a:active { color: darkorchid; text-decoration: underline; }

.text a:link { color: blue; text-decoration: underline; }
.text a:hover { color: red; }
.text a:visited { color: green; }
.text a:active { color: darkorchid; }

/* =========================================================
   4. FORMULIEREN
========================================================= */
input[type=text],
input[type=email],
input[type=password] {
    font-size: 16px;
    border: none;
    border-bottom: 1px solid blue;
}

input[type=submit] {
    font-size: 16px;
}

textarea {
    font-size: 16px;
    border: 1px solid blue;
}

formgg {
    display: flex;
    flex-direction: column;
    width: 24rem;
}

/* =========================================================
   5. LAYOUT CONTAINERS
========================================================= */
.main {
    background: #D7EAEF;
    height: 100vh;
    overflow: auto;
}

.sheet {
    width: 100%;
    max-width: 1100px;
    margin: 10px auto;
    border-radius: 20px;
    background-color: #FFFFFF;    
}

.spacer {
    padding: 5px 10px;
    background-color: #FFFFFF;
    border-radius: 13px;
}

.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

.colsize { width: 100%; }

/* =========================================================
   6. HEADER / LOGO / SLOGAN
========================================================= */
.header {
    margin: 0 auto;
    padding: 0;
    height: 90px;
    border-radius: 13px;
    background-image: url("images/seniornetlogo.png"), url("images/header.jpg");
    background-size: 65px 60px, 1100px 80px;
    background-position: 10px 10px, 0 0;
    background-repeat: no-repeat;
}

.headline {
    font-size: 36px;
    font-family: Cambria, serif;
    color: #4a9cf0;
    position: relative;
    top: 15px;
    left: 30%;
}

.headlinefoto {
    font-size: 36px;
    font-family: Cambria, serif;
    color: #43d76a;
    position: relative;
    top: 10px;
}

.slogan {
    font-size: 28px;
    font-family: Cambria, serif;
    color: #43d76a;
    position: relative;
    top: 50px;
    left: 40%;
}

/* =========================================================
   7. CONTENT BLOKKEN
========================================================= */
.content {
    margin: 10px auto;
    border-radius: 13px;
    background-color: #F1FFFF;
}

.contentLeft {
    float: left;
    margin: 10px;
    width: 54%;
    border-radius: 13px;
    background-color: #E1FFFF;
}

.contentRight {
    float: right;
    margin: 10px;
    width: 39%;
    border-radius: 13px;
    background-color: #E1FFFF;
}

.contentHeader {
    color: #234D57;
    margin: 5px 20px;
    font-size: 26px;
    font-family: Cambria, serif;
}

.contentTekst {
    color: #d08c3c;
    margin: 5px 20px;
    font-size: 23px;
    font-family: Cambria, serif;
}

.contentTekstNormal {
    color: #0192C6;
    margin: 5px 20px;
    font-size: 15px;
    font-family: Cambria, serif;
}

.contentTekstSup {
    color: #5991A1;
    margin: 5px 20px;
    font-size: 20px;
    font-family: Cambria, serif;
}

/* =========================================================
   8. NAVIGATIE
========================================================= */
ul.menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

li.menu { float: left; }

li.menu a {
	border-radius: 10px;
	border-color: #6C6C6C;
	border-width: 5px;
    display: inline-block;
    padding: 4px 10px;
    margin: 0 5px;
    text-align: center;
    background-image: linear-gradient(to bottom, #FFFFFF, #9FC1CA);
    color: #000;
}

li.menu a:link{
	border-color: #6C6C6C;
	border-radius: 10px;
	color:#000000;
	background-image:linear-gradient(to bottom,#FFFFFF,#73A4B2 );
	text-decoration: none;
}

li.menu a:hover {
	border-radius: 10px;
	border-color: #6C6C6C;
	border-width: 5px;
    display: block;
    padding: 4px 10px;
    margin: 0 5px;
    text-align: center;
    background-image: linear-gradient(to bottom, #505050, #9FC1CA);
    color: #FFF;
	text-decoration: none;
}

li.menuActief a {
	border-radius: 10px;
	border-color: #6C6C6C;
	border-width: 5px;
    padding: 4px 10px;
	float:left;
    margin: 0 5px;
    text-align: center;
    color: #0000FF;
    background-image: linear-gradient(to bottom, #4A9CF0, #FFFFFF);
	text-decoration: none;
}

li.menubok a {
	border-radius: 10px;
	border-color: #6C6C6C;
	border-width: 5px;
    padding: 4px 10px;
	float:left;
    margin: 0 5px;
    text-align: center;
    background-image: linear-gradient(to bottom, #ebf3ef, #d08c3c);
	text-decoration: none;
}

/* =========================================================
   9. FOTOGALERIJ + 2 PER RIJ MOBIEL
========================================================= */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 20px;
    background-color: #F1FFFF;
}

.photo {
    border: 1px solid #ccc;
    background: white;
    padding: 5px;
    transition: transform 0.2s;
    position: relative;
}

.photo img {
    max-width: 200px;
    height: auto;
    display: block;
}

.photo:hover {
    transform: scale(1.05);
}

/* Buttons op foto */
.delete-btn,
.info-btn {
    position: absolute;
    top: 5px;
    padding: 4px 6px;
    border-radius: 4px;
    background: rgba(0,200,0,0.8);
    color: white;
    font-size: 14px;
    text-decoration: none;
}

.delete-btn { right: 5px; }
.info-btn { left: 5px; }

/* =========================================================
   10. FOOTER
========================================================= */
.footer {
    margin: 0 auto;
    height: 30px;
    border-radius: 13px;
    background-image: url("images/header.jpg");
    background-size: 1100px 30px;
}

.footerTekst {
    color: #5991A1;
    padding: 8px;
    font-size: 15px;
    text-align: center;
}

/* =========================================================
   11. PRINT STYLES
========================================================= */
@media print {
    header, footer, aside, form {
        display: none;
    }
    html, body {
        height: 100%;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden;
    }
}

/* =========================================================
   12. MOBIEL (max-width: 600px)
========================================================= */
@media only screen and (max-width: 600px) {

    /* Typografie */
    h3 { font-size: 15px; }
    p { font-size: 13px; }
    li { font-size: 13px; }
    td { font-size: 13px; }

    /* Formulieren */
    input[type=text],
    input[type=email],
    input[type=password],
    input[type=submit],
    textarea {
        font-size: 15px;
    }

    /* Header */
    .header {
        height: 50px;
        background-image: url("images/seniornetlogo-small.png"), url("images/header-small.jpg");
        background-size: 45px 30px, 500px 40px;
        background-position: 4px 7px, 3px 0;
    }

    .headline,
    .headlinefoto,
    .slogan {
        font-size: 16px;
        top: 10px;
    }

    /* Content */
    .contentHeader { font-size: 20px; }
    .contentTekst { font-size: 15px; }
    .contentTekstNormal { font-size: 14px; }
    .contentTekstSup { font-size: 14px; }

    /* Footer */
    .footer {
        height: 20px;
        background-size: 500px 20px;
    }
    .footerTekst { padding: 0; }

    /* Fotogalerij: 2 per rij */
    .gallery {
        gap: 10px;
        margin: 10px;
    }

    .photo {
        flex-basis: calc(45% - 10px);
        padding: 5px;
    }

    .photo img {
        max-width: 100%;
        width: 100%;
    }

    .photo:hover {
        transform: none;
    }
}

/* =========================================================
   GLIGHTBOX — MOBILE THEME
   Optimalisatie voor smartphones (max 600px)
========================================================= */
@media only screen and (max-width: 600px) {

    /* -----------------------------------------------------
       1. Grotere titel en beschrijving
    ----------------------------------------------------- */
    .glightbox-container .gslide-title {
        font-size: 1.5rem;
        font-weight: bold;
        line-height: 1.4;
        text-align: center;
        margin-bottom: 8px;
    }

    .glightbox-container .gslide-desc,
    .glightbox-container .gdesc-inner {
        font-size: 1.25rem;
        line-height: 1.6;
        text-align: center;
        padding: 0 10px;
    }

    /* -----------------------------------------------------
       2. Meer ruimte rond tekstblok
    ----------------------------------------------------- */
    .glightbox-container .gdesc {
        padding: 14px 10px;
    }

    /* -----------------------------------------------------
       3. Foto groter en beter gecentreerd
    ----------------------------------------------------- */
    .glightbox-container .gslide-image img {
        max-width: 100vw;
        max-height: 85vh;
        object-fit: contain;
    }

    /* -----------------------------------------------------
       4. Grotere knoppen (prev/next/close)
    ----------------------------------------------------- */
    .glightbox-container .gbtn {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: rgba(0,0,0,0.45);
    }

    .glightbox-container .gbtn svg {
        width: 28px;
        height: 28px;
    }

    /* Posities iets naar binnen voor betere bereikbaarheid */
    .glightbox-container .gclose {
        top: 12px;
        right: 12px;
    }

    .glightbox-container .gnext {
        right: 12px;
    }

    .glightbox-container .gprev {
        left: 12px;
    }

    /* -----------------------------------------------------
       5. Donkere overlay iets transparanter
    ----------------------------------------------------- */
    .glightbox-container .goverlay {
        background: rgba(0,0,0,0.75);
    }

	/* Achtergrondkleur van overlay */
	.glightbox-container {
    	background: rgba(0, 0, 0, 0.95);
	}

	/* Pijlen aanpassen */
	.glightbox-button {
    	background-color: rgba(255, 255, 255, 0.2);
    	border-radius: 50%;
	}

	/* Titeltekst aanpassen */
	.glightbox-desc {
    	font-size: 1.2rem;
    	color: #ffcc00;
	}

	/* Animaties overschrijven */
	.glightbox-slide {
    	transition: transform 0.4s ease, opacity 0.4s ease;
	}	

}


/* Navigatie years -groups */

.nav-block {
    margin: 20px 0;
    padding: 15px;
    background: #f1ffff;
    border-radius: 8px;
}

.nav-years, .nav-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

@media only screen and (max-width: 600px) {
    .nav-block {
        margin: 20px 0;
        padding: 10px;
        background: #f1ffff;
        border-radius: 8px;
        font-size:13px;
    }

    .nav-years, .nav-groups {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 10px;
        font-size:13px;
    }  
}

.nav-link {
    background: #ddd;
    border-radius: 1px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.nav-link:hover {
    background: #bbb;
}

.nav-link.active {
    background: #4CAF50;
    color: white;
}

.messageBox {
    padding: 12px 16px;
    margin: 10px 0 20px 0;
    border-radius: 6px;
    font-size: 1.1em;
    opacity: 0;
    animation: fadeIn 0.6s forwards;
}

.messageBox.error {
    background-color: #ffe9e9;
    border: 1px solid #cc0000;
    color: #660000;
}

.messageBox.success {
    background-color: #e9ffe9;
    border: 1px solid #009900;
    color: #003300;
}

/* Fade-out na 6 seconden */
.messageBox.fadeOut {
    animation: fadeOut 1s forwards;
    animation-delay: 6s;
}

/* Flexbox formulier */
.form-flex {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 380px;
    padding: 1rem 0;
}

/* Form group */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* Labels */
.form-group label {
    font-weight: bold;
    font-size: 0.95rem;
}

/* Input */
.form-group input {
    padding: 0.6rem 0.8rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

/* Captcha row */
.captcha-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.captcha-row img {
    border: 1px solid #ccc;
    border-radius: 4px;
}

.captcha-refresh {
    font-size: 0.9rem;
}


/* Knop */
.btn-primary {
    padding: 0.7rem 1rem;
    background-color: #2a6ad6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color .2s ease;
}

.btn-primary:hover {
    background-color: #1f54a8;
}

/* Responsive */
@media (max-width: 480px) {
    .form-flex {
        max-width: 100%;
    }
	
    .captcha-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

.formFlex {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 420px;
}

.formRow {
    display: flex;
    flex-direction: column;
}

.formRow label {
    font-weight: bold;
    margin-bottom: 6px;
}

.formRow input {
    padding: 8px;
    font-size: 1rem;
}

.infoText {
    font-size: 0.9rem;
    color: #444;
}

button[type="submit"] {
    padding: 10px 15px;
    font-size: 1rem;
    cursor: pointer;
}