/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Architects+Daughter&family=Patrick+Hand&display=swap');

/* Reset en basis stijlen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Patrick Hand', 'Architects Daughter', cursive;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    background-color: #F8F6E9;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23B8D9A5' fill-opacity='0.4'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0H5v5H0v1h5v94h1V6h94V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    -webkit-text-size-adjust: 100%;
}

/* Verbeterde behandeling voor tekstelementen om witte lijntjes te voorkomen */
.typwriter-text, .button-text, .section-title, .section-subtitle, .popup-content p, .weather-popup h2, .weather-popup p, .game-item h2, .game-item p {
    /* Deze eigenschappen helpen tegen witte lijntjes rond tekst */
    text-shadow: 0 0 1px rgba(0,0,0,0.01);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000;
}

.welcome-text, .section-title, .section-subtitle, .page-title {
    line-height: 1.3;
}

/* SVG filters for hand-drawn effect */
.svg-filters {
    position: absolute;
    width: 0;
    height: 0;
}

/* Top navigation bar styling */
.top-nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1100;
    background-color: transparent;
    padding: 0 15px;
}

/* Toegevoegde extra achtergrondlaag om witte lijntjes te voorkomen */
.top-nav-color-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFDFD3; /* Dezelfde kleur als top-nav-bar-bg */
    z-index: 1; /* Hoger dan de standaard achtergrond, maar lager dan content */
}

.top-nav-inner {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 3; /* Verhoogd van 2 naar 3 om boven beide achtergrondlagen te blijven */
}

.top-nav-bar-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    filter: url(#rough-filter);
    border-bottom: 2px solid #863A6F;
    background-color: #FFDFD3;
    box-shadow: 0 6px 10px rgba(0,0,0,0.2);
    z-index: 2; /* Hoger dan color-fill, zodat de border en schaduw zichtbaar blijven */
}

/* Knof's bounce animation */
@keyframes knofBounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-8px);}
    60% {transform: translateY(-4px);}
}

.top-nav-knof {
    width: 55px;
    height: 55px;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
    flex-shrink: 0;
    animation: knofBounce 7s ease-in-out infinite;
}

.top-nav-knof img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Text container styling */
.top-nav-text {
    flex-grow: 1;
    margin: 0 15px;
    position: relative;
    overflow: hidden;
    height: 40px;
    display: flex;
    align-items: center;
}

.typwriter-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.typwriter-text {
    font-size: 24px;
    font-weight: bold;
    color: #4B0082;
    white-space: nowrap;
    display: inline-block;
    position: relative;
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 24px;
    background-color: #4B0082;
    margin-left: 5px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Slow rotating settings gear */
@keyframes slowRotate {
    from {transform: rotate(0deg);}
    to {transform: rotate(360deg);}
}

.top-nav-settings {
    width: 30px;
    height: 30px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 10px;
}

.top-nav-settings svg {
    width: 100%;
    height: 100%;
    fill: #4B0082;
    animation: slowRotate 20s linear infinite;
}

/* Settings modal - Verbeterde styling */
.settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    background: rgba(0,0,0,0.5);
    z-index: 1200;
    justify-content: center;
    align-items: center;
}

.settings-content {
    background-color: #FFDFD3;
    padding: 30px;
    border-radius: 20px;
    min-width: 320px;
    max-width: 90%;
    text-align: center;
    position: relative;
    filter: url(#rough-filter);
    border: 3px solid #863A6F;
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.settings-content h2 {
    font-size: 32px;
    color: #4B0082;
    margin-bottom: 25px;
    transform: rotate(-1deg);
}

.close-settings {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 28px;
    color: #863A6F;
    transition: transform 0.2s;
}

.close-settings:hover {
    transform: scale(1.2);
}

.settings-options {
    margin-top: 20px;
    text-align: left;
}

.settings-option {
    margin-bottom: 25px;
}

.settings-option label {
    display: block;
    margin-bottom: 10px;
    font-size: 24px;
    color: #4B0082;
    font-weight: bold;
}

.settings-option select {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 2px solid #863A6F;
    font-size: 20px;
    font-family: 'Patrick Hand', 'Architects Daughter', cursive;
    background-color: #FFF5EF;
    cursor: pointer;
}

/* Taalopties styling */
.language-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.language-option {
    padding: 12px 15px;
    border-radius: 10px;
    border: 2px dashed #863A6F;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    background-color: #FFF5EF;
}

.language-option:hover {
    transform: scale(1.02);
    background-color: #FFE8D6;
}

.language-option.selected {
    background-color: #FFD1DC;
    border: 2px solid #863A6F;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    transform: rotate(-1deg);
    font-weight: bold;
}

/* Main content container */
.app-container {
    flex: 1;
    padding: 20px;
    margin: 100px auto 80px auto;
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.app-container::-webkit-scrollbar {
    display: none;
}

/* Page title */
.page-title {
    font-size: 42px;
    color: #4B0082;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    transform: rotate(-1deg);
}

/* Buttons container */
.buttons-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.button {
    position: relative;
    color: #4B0082;
    border: none;
    padding: 12px 18px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    flex: 1;
    min-width: 90px;
    max-width: none;
    text-align: center;
    z-index: 1;
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 15px;
    display: inline-block;
    box-shadow: 2px 4px 0px #D8BFD8;
    transform: rotate(var(--rotation));
    height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Random rotations for buttons */
#blij-btn {
    --rotation: -3deg;
}

#creatief-btn {
    --rotation: 2deg;
}

#nieuwsgierig-btn {
    --rotation: -2deg;
}

#verrassing-btn {
    --rotation: 3deg;
}

.button span {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0px;
}

.button-emoji {
    font-size: 32px;
    margin-bottom: 0px;
}

.button-text {
    font-size: 22px;
    white-space: nowrap;
}

.button-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: url(#rough-filter);
    border-radius: 15px;
}

#blij-btn .button-bg {
    background-color: #FFD6A5;
    border: 2px solid #FF9A5A;
}

#creatief-btn .button-bg {
    background-color: #FFADF9;
    border: 2px solid #FF7BF3;
}

#nieuwsgierig-btn .button-bg {
    background-color: #A5BBFF;
    border: 2px solid #7A97FF;
}

#verrassing-btn .button-bg {
    background-color: #FFFFAA;
    border: 2px solid #FFCC00;
}

/* Sections container */
.sections-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.section {
    background-color: transparent;
    border-radius: 20px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 150px;
    transition: transform 0.2s;
    cursor: pointer;
    width: 100%;
    overflow: hidden;
}

.section-bg-games {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    pointer-events: none;
    z-index: -1;
    filter: url(#rough-filter);
    border: 2px solid #FF85A2;
    background-color: #FFD6E0;
}

.section-bg-coloring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    pointer-events: none;
    z-index: -1;
    filter: url(#rough-filter);
    border: 2px solid #00A4CC;
    background-color: #ADDFFF;
}

.section-bg-placemat {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    pointer-events: none;
    z-index: -1;
    filter: url(#rough-filter);
    border: 2px solid #B5338A;
    background-color: #FFB8FF;
}

.section-bg-chat {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    pointer-events: none;
    z-index: -1;
    filter: url(#rough-filter);
    border: 2px solid #7BB661;
    background-color: #B8FFB8;
}

/* Theme icons in the corner of sections */
.section-bg-games::after {
    content: "🎮";
    position: absolute;
    bottom: -30px;
    right: -10px;
    font-size: 175px;
    opacity: 0.10;
    pointer-events: none;
    z-index: 0;
    transform: rotate(-9deg);
}

.section-bg-coloring::after {
    content: "🎨";
    position: absolute;
    bottom: -30px;
    right: -10px;
    font-size: 175px;
    opacity: 0.10;
    pointer-events: none;
    z-index: 0;
    transform: rotate(9deg);
}

.section-bg-placemat::after {
    content: "✨";
    position: absolute;
    bottom: -30px;
    right: -10px;
    font-size: 175px;
    opacity: 0.10;
    pointer-events: none;
    z-index: 0;
    transform: rotate(-8deg);
}

.section-bg-chat::after {
    content: "💬";
    position: absolute;
    bottom: -30px;
    right: -10px;
    font-size: 175px;
    opacity: 0.10;
    pointer-events: none;
    z-index: 0;
    transform: rotate(8deg);
}

.section-title {
    font-size: 38px;
    color: #333;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
    display: inline-block;
    transform: rotate(-1deg);
}

.section-subtitle {
    font-size: 28px;
    color: #4B0082;
    position: relative;
    z-index: 2;
    display: inline-block;
    transform: rotate(1deg);
}

.section-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(5deg);
    width: 30px;
    height: 30px;
    z-index: 2;
    filter: url(#squiggly-filter);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23800080' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14' style='stroke-dasharray: 1,0.3;'/%3E%3Cpath d='M12 5l7 7-7 7' style='stroke-dasharray: 1,0.5;'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Bottom nav bar */
.nav-bar {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    height: 70px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    background-color: transparent;
    padding: 0 15px;
}

.nav-bar-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    filter: url(#rough-filter);
    border: 2px solid #863A6F;
    background-color: #FFDFD3;
    border-radius: 35px;
    box-shadow: 0 6px 10px rgba(0,0,0,0.2);
}

.nav-icon {
    width: 30px;
    height: 30px;
    color: #800080;
    position: relative;
    z-index: 2;
    transition: transform 0.2s;
    filter: url(#squiggly-filter);
    cursor: pointer;
}

.nav-icon.active {
    color: #FF4500;
}

/* Games container */
.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.game-item {
    background-color: transparent;
    border-radius: 15px;
    padding: 20px;
    position: relative;
    min-height: 200px;
    cursor: pointer;
    transition: transform 0.2s;
}

.game-item-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    pointer-events: none;
    z-index: -1;
    filter: url(#rough-filter);
    border: 2px solid #FF85A2;
    background-color: #FFD6E0;
}

.game-item h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.game-item p {
    font-size: 18px;
    color: #4B0082;
}

.game-preview {
    margin-top: 15px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Memory game */
.memory-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
    perspective: 1000px;
}

.memory-card {
    height: 100px;
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
    transform: scale(1);
    transition: transform 0.5s;
}

.memory-card.flip {
    transform: rotateY(180deg);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    backface-visibility: hidden;
    border-radius: 10px;
    font-size: 40px;
}

.card-front {
    background-color: #FFD6A5;
    border: 2px solid #FF9A5A;
    filter: url(#rough-filter);
}

.card-back {
    background-color: #FFADF9;
    border: 2px solid #FF7BF3;
    transform: rotateY(180deg);
    filter: url(#rough-filter);
}

/* Coloring book */
.coloring-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.color-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 10px;
}

.color-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
    border: 2px solid #333;
    filter: url(#rough-filter);
}

.drawing-tools {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

#canvas-container {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    filter: url(#rough-filter);
    border: 2px solid #00A4CC;
}

#coloring-canvas {
    background-color: white;
    width: 100%;
    height: 100%;
    display: block;
}

#clear-canvas {
    padding: 8px 15px;
    background-color: #FFADF9;
    border: 2px solid #FF7BF3;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    filter: url(#rough-filter);
    transition: transform 0.2s;
}

/* Placemat page */
.placemat-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.placemat-preview {
    width: 100%;
    max-width: 500px;
    height: 300px;
    background-color: #FFB8FF;
    border: 2px solid #B5338A;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    filter: url(#rough-filter);
}

.placemat-preview::after {
    content: "✨";
    position: absolute;
    bottom: -30px;
    right: -10px;
    font-size: 175px;
    opacity: 0.10;
    pointer-events: none;
    z-index: 0;
    transform: rotate(-8deg);
}

#qr-code {
    width: 150px;
    height: 150px;
    background-color: white;
    border: 2px solid #333;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    text-align: center;
}

.placemat-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.placemat-button {
    padding: 10px 20px;
    background-color: #ADDFFF;
    border: 2px solid #00A4CC;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    filter: url(#rough-filter);
    transition: transform 0.2s;
}

#placemat-instructions {
    padding: 20px;
    background-color: #FFFFAA;
    border: 2px solid #FFCC00;
    border-radius: 10px;
    display: none;
    filter: url(#rough-filter);
}

/* Chat page */
.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 250px);
    max-width: 800px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #7BB661;
    background-color: white;
    filter: url(#rough-filter);
}

.chat-header {
    padding: 15px;
    background-color: #B8FFB8;
    border-bottom: 2px solid #7BB661;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.chat-header h2 {
    margin: 0;
    color: #333;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    display: flex;
    margin-bottom: 10px;
}

.user-message {
    justify-content: flex-end;
}

.knof-message {
    justify-content: flex-start;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    background-color: #B8FFB8;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.message-content {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 16px;
    position: relative;
}

.user-message .message-content {
    background-color: #ADDFFF;
    border: 1px solid #00A4CC;
    border-top-right-radius: 4px;
    filter: url(#rough-filter);
}

.knof-message .message-content {
    background-color: #B8FFB8;
    border: 1px solid #7BB661;
    border-top-left-radius: 4px;
    filter: url(#rough-filter);
}

.chat-form {
    padding: 15px;
    border-top: 2px solid #7BB661;
    display: flex;
    gap: 10px;
}

.chat-form input {
    flex: 1;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.chat-form button {
    padding: 10px 20px;
    background-color: #B8FFB8;
    border: 2px solid #7BB661;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.2s;
    filter: url(#rough-filter);
}

/* Popup stijlen */
.popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #F8F6E9;
    padding: 25px;
    border: 2px solid #B5338A;
    width: 85%;
    max-width: 450px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    filter: url(#rough-filter);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    font-size: 1.2rem;
    font-family: 'Patrick Hand', 'Architects Daughter', cursive;
    animation: popIn 0.3s ease-out;
    background-color: #FFB8FF;
}

@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.close-popup {
    color: #70543E;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    margin-top: -10px;
    margin-right: -10px;
}

.popup-content p {
    margin-top: 10px;
    color: #4B0082;
    font-size: 1.8rem;
    line-height: 1.4;
    padding: 10px 0;
}

/* Weer-popup stijl */
.weather-popup {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(248, 246, 233, 0.85);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.weather-popup-content {
    background-color: #FFFFFF;
    border-radius: 20px;
    border: 3px solid #FFD700; /* Gouden rand voor zonneschijn */
    padding: 35px 30px;
    width: 85%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(255, 215, 0, 0.3); /* Gouden schaduw */
    filter: url(#rough-filter);
    transform: rotate(-1deg);
    animation: weatherPopIn 0.5s ease-out forwards;
}

.weather-popup h2 {
    margin: 0 0 15px;
    font-size: 2.2rem;
    color: #FF9A5A; /* Oranje/gele kleur voor de zon */
    transform: rotate(1deg);
    text-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

.weather-popup p {
    margin-bottom: 25px;
    color: #4B0082;
    font-size: 1.6rem;
    line-height: 1.5;
    transform: rotate(-0.5deg);
}

.weather-button {
    background-color: #F4F1E4;
    border: 2px solid #FF9A5A;
    border-radius: 15px;
    padding: 12px 30px;
    color: #4B0082;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    filter: url(#rough-filter);
    transform: rotate(1deg);
    box-shadow: 2px 4px 0px #FFD6A5;
}

.weather-button:active {
    background-color: #FFD6A5;
    transform: rotate(1deg) scale(0.96);
    box-shadow: 1px 2px 0px #FFD6A5;
}

/* Speciaal effect voor weerpopup */
@keyframes weatherPopIn {
    0% { transform: scale(0.8) rotate(-1deg); opacity: 0; }
    50% { transform: scale(1.05) rotate(-1deg); opacity: 1; }
    100% { transform: scale(1) rotate(-1deg); opacity: 1; }
}

/* Zon-animatie voor leuk effect */
.sun-ray {
    position: absolute;
    width: 120px;
    height: 120px;
    top: -40px;
    right: -40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='40' fill='%23FFD700' /%3E%3C/svg%3E");
    background-size: contain;
    opacity: 0.4;
    pointer-events: none;
    animation: sunRotate 20s linear infinite;
}

@keyframes sunRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Media query voor kleine schermen */
@media (max-width: 480px) {
    .top-nav-bar {
        height: 70px;
    }
    .nav-bar {
        width: 95%;
        height: 60px;
        padding: 0 10px;
    }
    .top-nav-knof {
        width: 40px;
        height: 40px;
    }
    .typwriter-text {
        font-size: 20px;
    }
    .typing-cursor {
        height: 20px;
    }
    .top-nav-settings {
        width: 25px;
        height: 25px;
    }
    .nav-icon {
        width: 25px;
        height: 25px;
    }
    .button-emoji {
        font-size: 28px;
    }
    .button-text {
        font-size: 16px;
    }
    .page-title {
        font-size: 32px;
    }
    .section-title {
        font-size: 30px;
    }
    .section-subtitle {
        font-size: 22px;
    }
    .games-container {
        grid-template-columns: 1fr;
    }
    .memory-container {
        grid-template-columns: repeat(3, 1fr);
    }
    .chat-container {
        height: calc(100vh - 200px);
    }
    .message-content {
        max-width: 85%;
    }
    .popup-content {
        padding: 20px;
        width: 90%;
    }
    .popup-content p {
        font-size: 1.6rem;
    }
    .weather-popup-content {
        padding: 25px 20px;
        width: 90%;
    }
    .weather-popup h2 {
        font-size: 1.8rem;
    }
    .weather-popup p {
        font-size: 1.4rem;
    }
    .weather-button {
        font-size: 1.3rem;
        padding: 10px 25px;
    }
    
    /* Media query aanpassingen voor settings modal op kleine schermen */
    .settings-content {
        padding: 25px 20px;
    }
    
    .settings-content h2 {
        font-size: 28px;
    }
    
    .settings-option label {
        font-size: 20px;
    }
    
    .language-option {
        font-size: 18px;
        padding: 10px 12px;
    }
    
    .close-settings {
        top: 8px;
        right: 12px;
        font-size: 24px;
    }
}
