/* Algemene stijlen */
body {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: url('images/muur\ kopie.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: "Nunito", Arial, sans-serif;
    margin: 0;
    overflow: hidden;
}

header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 10px 20px;
    position: absolute;
    top: 0;
    left: 0;
    color: white;
}

/* Logo en titel container */
#header-top {
    display: flex;
    align-items: center;
    width: 100%;
}

/* Logo styling */
#logo {
    height: 150px;
    width: auto;
    margin-right: 20px;
}

/* Titel naast logo */
#header-title {
    font-size: 2rem;
    font-weight: bold;
}

/* Taalkeuze container */
#language-container {
    position: fixed;
    top: 0;
    right: -300px;
    width: 250px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    padding: 80px 20px 20px 20px;
    transition: right 0.3s ease;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    overflow-y: auto;
}

#language-container.active {
    right: 0;
}

#language-container label {
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

#language-container input[type="checkbox"] {
    order: -1; /* Plaatst de checkbox voor de tekst */
    margin: 0; /* Verwijder standaard margins */
}

/* Stijl voor de toepassen knop - aangepast voor in het menu */
#apply-languages {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    background-color: #e94057;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
    width: 100%;
}

#apply-languages:hover {
    background-color: #c72e47;
}

/* Hoofdcontainer */
main {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 80vw;
    margin-top: calc(150px + 20px + 50px);
}

/* Kaart container */
#card {
    position: relative;
    width: 50vw;
    height: 50vh;
    perspective: 1000px;
    z-index: 10;
    transform-style: preserve-3d;
    transition: transform 0.75s;
}

#card.turned {
    transform: rotateY(180deg);
}

.side {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    border-radius: 15px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    backface-visibility: hidden;
}

/* Voorkant van de kaart */
.front {
    background: url('images/paper.jpg') no-repeat center center;
    background-size: cover;
    color: #212121;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    padding-top: 60px;
}

/* Achterkant van de kaart */
.back {
    background-color: #212121;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    width: 100%;
    height: 100%;
    transform: rotateY(180deg);
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
    padding-top: 60px;
}

.back img {
    width: 100%;
    height: 102%;
    object-fit: cover;
    border-radius: 0 0 15px 15px;

}

/* Breaking News banner */
.breaking-news {
    position: absolute;
    top: 0;
    width: 100%;
    background-color: red;
    color: white;
    font-family: 'Times New Roman', serif;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    padding: 10px 0;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    z-index: 20;
}

/* Breaking News banner op achterkant */
.back::before {
    content: "BREAKING NEWS";
    position: absolute;
    top: 0;
    width: 100%;
    background-color: red;
    color: white;
    font-family: 'Times New Roman', serif;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    padding: 10px 0;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    z-index: 20;
}

/* Taalweergave stijl */
.language-label {
    font-size: 0.9rem;
    font-weight: bold;
    color: gray;
    margin-bottom: 2px;
}

/* Talen netter uitlijnen */
.front p {
    margin: 5px 0;
    padding: 10px;
}

.front hr {
    width: 80%;
    border: 0.5px solid #ccc;
    margin: 5px 0;
}

/* Knoppen voor navigatie */
#prev, #next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: white;
    transition: 0.3s;
    width: 40px; /* Vaste breedte voor de knoppen */
}

#prev {
    left: -40px; /* Vaste afstand van de kaart */
}

#next {
    right: -40px; /* Vaste afstand van de kaart */
}

#prev:hover, #next:hover {
    transform: scale(1.2) translateY(-50%);
    color: yellow;
}

footer {
    margin-top: 20px;
    color: white;
}

/* Hamburger menu stijlen - nu altijd zichtbaar */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    cursor: pointer;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

/* Stijlen voor geopend menu */
.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Verwijder de media queries die het menu verbergen op desktop */
@media screen and (max-width: 768px) {
    #header-title {
        font-size: 1.5rem;
    }

    #logo {
        height: 100px;
    }

    /* Kaart iets minder breed maken */
    #card {
        width: 64vw; /* 14% breder (7% aan elke kant) */
    }

    /* Tekst container aanpassingen */
    .front {
        padding: 60px 10px 10px 10px;
    }

    .front p {
        margin: 1px 0;
        padding: 2px 10px;
        word-wrap: normal;        /* Voorkom woord-afbreking */
        word-break: normal;       /* Voorkom woord-afbreking */
        hyphens: none;           /* Voorkom koppeltekens */
        overflow-wrap: break-word; /* Laat lange woorden naar volgende regel gaan */
        width: 100%;             /* Zorg dat de tekst de volle breedte gebruikt */
    }

    /* Verberg scrollbar in Chrome/Safari */
    .front p::-webkit-scrollbar {
        display: none;
    }

    /* Zorg dat de navigatieknoppen op dezelfde plek blijven */
    main {
        width: calc(64vw + 100px); /* Kaartbreedte + meer ruimte voor knoppen */
        position: relative;
    }

    /* Pijltjes verder naar buiten */
    #prev {
        left: -25px; /* Verplaats verder naar links van -10px naar -25px */
        position: absolute;
    }

    #next {
        right: -10px;
        position: absolute;
    }

    /* Tekst verkleining voor mobiel */
    .front {
        font-size: 1.2rem; /* 20% kleiner dan 1.5rem */
    }

    .breaking-news {
        font-size: 1.6rem; /* 20% kleiner dan 2rem */
    }

    .back::before {
        font-size: 1.6rem; /* 20% kleiner dan 2rem */
    }

    .language-label {
        font-size: 0.72rem; /* 20% kleiner dan 0.9rem */
    }

    #language-container {
        font-size: 0.8rem;
        gap: 5px;
    }

    #apply-languages {
        font-size: 0.8rem; /* 20% kleiner */
    }

    /* Extra verkleining van spacing op mobiel */
    .front p {
        margin: 0;
        padding: 1px 5px;
    }

    .front hr {
        margin: 0;
        border-width: 0.25px;
    }
}
