@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;700&display=swap');


/* META */

html,
body {
    height: 100%;
    scroll-behavior: smooth;
}

a:link {
    color: #8FC5FF;
    font-weight: bold;
    text-decoration: underline;
}

a:visited {
    color: #6385a9;
    text-decoration: underline;
}

.section {
    position: relative;
}

.dismiss-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 50%;
    text-align: center;
    line-height: 15px;

    width: 32px;
    height: 32px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: background 0.2s;
}

.dismiss-btn:hover {
    background: #f8d7da;
}

.section.dismissed .content-box,
.section.dismissed .text-content,
.section.dismissed>*:not(.dismiss-btn) {
    display: none !important;
}

@media (max-width: 600px) {
    .topnav a {
        display: block;
        margin: 10px 0;
    }

    .topnav {
        height: 100px !important;
    }

    .content-box {
        flex-direction: column;
    }

    .content-box video {
        margin: 0 0 20px 0;
    }
}

@media (min-width: 601px) and (max-width: 1024px) {
    .content-box {
        flex-direction: row;
    }

    .content-box video {
        margin-right: 20px;
    }
}

@media (min-width: 1025px) {
    .content-box {
        flex-direction: row;
    }

    .content-box video {
        margin-right: 20px;
    }
}

#csikidam .content-box {
    margin: 20px;
}


/* HEADER */
header {
    width: 100% !important;
    background-color: #232323;
    padding: 20px 0;
    text-align: right;
    position: sticky;
    top: 0;
    z-index: 1000;
}

#altToggle {
    background-color: #222;
    color: #fff;
    font-size: 1.5em;
    padding: 10px 20px;
    border: 2px solid #fff;
    margin: 10px;
    cursor: pointer;
}

.topnav {
    height: auto;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    padding: 10px 20px;
    background-color: #232323;
    position: sticky;
    top: 1em;
    z-index: 1000;
    height: 60px;
    overflow: hidden;
}

.topnav a {
    margin: 0 20px;
    text-decoration: none;
    color: #a5a5a5;
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    text-align: right;
}



.topnav a:hover {
    text-decoration: underline;
}

.topnav a.current {
    color: #ffffff;
    outline: #1b1833;
    text-decoration: underline;
}

/* MAIN */
.mainnavcontainer {
    text-align: center;
    background-color: #ffffff;
    border-color: #232323;
    border-radius: 2px;
    position: sticky;
    border: 2px solid #232323;
    top: 0;
    z-index: 999;
}

#mainnav {
    position: sticky;
    top: 10px;
    z-index: 1002;
}

.mainnav a {
    margin: 0 20px;
    text-decoration: none;
    color: #000000;
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    text-align: justify;
    position: sticky;
    top: 0;
    z-index: inherit;
}

.mainnav a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    #mainnav {
        padding: 5px 10px;
    }

    #mainnav a {
        font-size: 1rem;
        margin: 0 10px;
    }
}

/* FLASHCARDS */
.flashcards-container {
    width: 100%;
    overflow-x: auto;
    margin: 20px auto;
}

.flashcards-container ul {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.flashcards-container li.flashcard {
    flex: 1 1 400px;
    max-width: 400px;
    height: 200px;
    perspective: 800px;
}

.flashcard {
    background: transparent;
    text-align: justify;
    width: 100% !important;
    height: 100%;
    perspective: 1000px;
}

.flashcard-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
    text-align: justify;
}

.flashcard-inner.flipped {
    transform: rotateY(180deg);
}

.flashcard-front,
.flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border: 1px solid #232323;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    box-sizing: border-box;
}

.flashcard-front {
    background-color: #fff;
    color: #000;
}

.flashcard-back {
    background-color: #232323;
    color: #fff;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    padding: 10px;
    box-sizing: border-box;
}

.flashcard-back * {
    text-align: left !important;
}

@media (max-width: 768px) {
    .flashcards-container ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .flashcards-container li.flashcard {
        flex: 1 1 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

body {
    font-family: 'Tahoma', sans-serif;
}

h1 {
    font-family: 'Oswald', sans-serif;
    text-align: center;
    font-size: 4rem;
    margin: 30px 0;
}


.positioning a {
    position: absolute;
    left: -999px;
}

.positioning a:focus {
    position: static;
}

.countdown {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem;
    text-align: center;
    margin-top: 20px;
}

.enlarged {
    transform: scale(1.2);
    transition: transform 0.3s ease-in-out;
}

#bevezeto {
    scroll-margin-top: 80px;

}

.section {
    padding: 40px 20px;
    margin: 20px 0;
    border-bottom: 2px solid #232323;
    margin-bottom: 40px;
    padding-bottom: 40px;
}


.section h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1em;
}

.section p {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5em;
    text-align: justify;
}

.content-box .text-content {
    display: contents;
}

.content-box .text-content .text-top {
    grid-area: text-top;
}

.content-box .text-content .text-bottom {
    grid-area: text-bottom;
    text-align: justify;
}


#ramadan {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    background-image: url('./media/ramadan.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    margin: 0;
    padding: 20px;
}

#ramadan .content-box {
    display: grid;
    grid-template-areas:
        "title title"
        "video text-top"
        "text-bottom text-bottom";
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 20px;
    background-color: #000000d8;
    padding: 20px;
    border-radius: 10px;
    color: white;
}

#ramadan .content-box h2 {
    grid-area: title;
    text-align: center;
    font-size: 3rem;
    margin: 0;
}

#ramadan img {
    max-width: 75%;
    max-height: 300px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    #ramadan .content-box {
        grid-template-areas:
            "title"
            "video"
            "text-top"
            "text-bottom";
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
    }
}


#husvet {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    background-image: url('./media/husvetifeltamadas.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    margin: 0;
    padding: 20px;
}

#husvet .content-box {
    display: grid;
    grid-template-areas:
        "title title"
        "video text-top"
        "text-bottom text-bottom";
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 20px;
    background-color: rgba(0, 0, 0, 0.848);
    padding: 20px;
    border-radius: 10px;
    color: white;
}

#husvet .content-box h2 {
    grid-area: title;
    text-align: center;
    font-size: 3rem;
    margin: 0;
}


#husvet img {
    max-width: 75%;
    max-height: 250px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}


@media (max-width: 768px) {
    #husvet .content-box {
        grid-template-areas:
            "title"
            "video"
            "text-top"
            "text-bottom";
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
    }
}


/* AGUERO */
#aguero {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    background-image: url('./media/aguero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    margin: 0;
    padding: 20px;
}

#aguero .content-box {
    display: grid;
    grid-template-areas:
        "title title"
        "video text-top"
        "text-bottom text-bottom";
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 20px;
    background-color: rgba(0, 0, 0, 0.848);
    padding: 20px;
    border-radius: 10px;
    color: white;
}

#aguero .content-box h2 {
    grid-area: title;
    text-align: center;
    font-size: 3rem;
    margin: 0;
}

#aguero .videoblock video {
    justify-self: center;
    align-self: center;
    grid-area: video;
    width: 100%;
    height: auto;
    max-width: 550px;
}

#aguero .videoblock img {
    display: none;
    grid-area: video;
}

#aguero .videoblock {
    grid-area: video;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#aguero .videoblock .transcript-link {
    text-align: center;
    margin-top: 10px;
    width: 100%;
}

#aguero .content-box a {
    grid-area: video;

}


@media (max-width: 768px) {
    #aguero .content-box {
        grid-template-areas:
            "title"
            "video"
            "text-top"
            "text-bottom";
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
    }
}


/* CSIKIDAM */
#csikidam {
    background-image: url('./media/szikorarobert.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

#csikidam .content-box {
    display: grid;
    grid-template-areas:
        "title title"
        "img text-top"
        "text-bottom text-bottom";
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 20px;
    background-color: rgba(0, 0, 0, 0.848);
    padding: 20px;
    border-radius: 10px;
    color: white;
}

#csikidam .content-box h2 {
    grid-area: title;
    text-align: center;
    font-size: 3rem;
    margin: 0;
}

#csikidam img {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    #csikidam .content-box {
        grid-template-areas:
            "title"
            "video"
            "text-top"
            "text-bottom";
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
    }

}

/* FOOTER */
footer {
    width: 100%;
    background-color: #232323;
    padding: 20px 0;
    text-align: center;
    color: #ffffff;
    outline: #1b1833;
    font-size: 1.5rem;
}

footer p {
    text-align: center;
    margin: 0 auto;
}

@media (max-width: 768px) {
    footer {
        font-size: 1.2rem;
    }
}
