/* Algemene stijl */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script&family=Pacifico&display=swap');

body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background: linear-gradient(
        135deg,
        #ff0000 0%,
        #ff9900 15%,
        #ffff00 30%,
        #33cc33 45%,
        #0099ff 60%,
        #3300cc 75%,
        #9900cc 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animerende sterren/vlekjes */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 0, 0.4) 1px, transparent 1px),
        radial-gradient(circle at 90% 80%, rgba(0, 255, 255, 0.4) 1px, transparent 1px),
        radial-gradient(circle at 50% 30%, rgba(255, 0, 255, 0.4) 1px, transparent 1px),
        radial-gradient(circle at 30% 70%, rgba(255, 165, 0, 0.4) 1px, transparent 1px),
        radial-gradient(circle at 70% 40%, rgba(0, 255, 0, 0.4) 1px, transparent 1px);
    animation: twinkle 4s infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0.3; }
    100% { opacity: 0.8; }
}

/* Container stijl */
.gallery-container, .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

/* Whimsical lettertypen */
h1 {
    font-family: 'Pacifico', cursive;
    color: #2c3e50;
}

/* Galerij specifieke stijl */
.theme-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.theme-tab {
    padding: 10px 20px;
    margin: 5px;
    background-color: #e8d5b5;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(255, 105, 180, 0.3);
}

.theme-tab:hover {
    background-color: #d4c297;
    transform: scale(1.05) rotate(2deg);
}

.theme-tab.active {
    background: linear-gradient(135deg, #d4c297, #c0a080);
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(255, 105, 180, 0.5);
    border: 2px solid #9900cc;
}

.gallery {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeIn 0.5s;
}

.gallery.active {
    display: flex;
}

.painting {
    margin: 15px;
    text-align: center;
    border: 3px solid #d4c297;
    border-radius: 10px;
    padding: 10px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.painting:hover {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 8px 16px rgba(255, 105, 180, 0.4);
}

.painting img {
    max-width: 250px;
    height: auto;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

/* Modal stijl */
.modal {
    display: none;
    position: fixed;
    z-index: 2;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
    /* Flexbox for perfect centering */
    display: none;  /* hidden by default */
    align-items: center;
    justify-content: center;
}

.modal-content {
    width: 80vw;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomIn 0.3s;
    margin: 0;  /* remove auto margin, flexbox handles centering */
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover {
    color: #bbb;
}

/* Navigatie stijl */
.nav {
    margin: 20px 0;
    text-align: center;
}

.nav a {
    margin: 0 10px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #9900cc;
}

/* Harry's foto stijl */
.harry-photo {
    width: 300px;
    height: 300px;
    border: 5px solid #d4c297;
    border-radius: 10px;
    margin: 20px auto;
    transform: rotate(-5deg);
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.harry-photo:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.5);
}

/* Contactformulier stijl */
.contact-form {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-family: 'Dancing Script', cursive;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #d4c297;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #9900cc;
    outline: none;
}

.form-group textarea {
    height: 100px;
}

.submit-btn {
    background: linear-gradient(135deg, #e8d5b5, #d4c297);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(255, 105, 180, 0.3);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #d4c297, #c0a080);
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(255, 105, 180, 0.4);
}


/* Whimsical transparent language buttons */
.lang-btn {
    padding: 8px 18px;
    margin: 5px;
    background: transparent;
    border: 2px dashed #b380d0;  /* soft purple dashed outline */
    border-radius: 30px;
    font-family: 'Dancing Script', cursive;
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c1e2e;  /* deep purple-gray for contrast */
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);  /* light shadow for readability */
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.lang-btn:hover {
    border: 2px solid #b380d0;  /* solid on hover */
    background: rgba(179, 128, 208, 0.1);  /* very subtle purple tint */
    transform: scale(1.05) rotate(-1deg);
    box-shadow: 0 4px 12px rgba(179, 128, 208, 0.3);
}

.lang-btn:active {
    transform: scale(0.95) rotate(1deg);
    border: 2px solid #9900cc;  /* brighter purple when clicked */
    background: rgba(153, 0, 204, 0.15);
}

.lang-btn.active {
    border: 3px solid #9900cc;  /* thicker solid border for active language */
    background: rgba(153, 0, 204, 0.1);
    font-weight: bold;
    text-shadow: 1px 1px 4px rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 15px rgba(153, 0, 204, 0.5);
    transform: scale(1.05);
}


/* Animatie */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.5); }
    to { transform: scale(1); }
}

/* Responsive design */
@media (max-width: 768px) {
    .gallery-container, .container {
        max-width: 100%;
        padding: 10px;
    }
    .painting img {
        max-width: 100%;
    }
    .theme-tabs {
        flex-direction: column;
        align-items: center;
    }
    .theme-tab {
        margin: 5px 0;
    }
    .harry-photo {
        width: 200px;
        height: 200px;
    }
}

/* Visually hidden voor aria descriptions */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Focus styles voor toetsenbordnavigatie */
a:focus, button:focus, input:focus, textarea:focus, .theme-tab:focus {
    outline: 2px solid #9900cc;
    outline-offset: 2px;
}

/* Modal focus management */
.modal[aria-hidden="true"] {
    display: none;
}
.modal[aria-hidden="false"] {
    display: flex;
}

