body {
    background: black;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    align-content: center;
    margin: 0;
}

#pagecontainer {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
}

.page {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

nav ul {
    display: flex;
    gap: 1em;
    justify-content: center;
    padding: 1em 0;
    list-style: none;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 1em;
}

nav ul li {
    display: inline;
    margin: 0;
    padding: 0;
}

nav ul li button {
    background: #970303 0%;
    color: #fff;
    border: none;
    border-radius: 2em;
    padding: 0.7em 2em;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    outline: none;
}

nav ul li button:hover,
nav ul li button:focus {
    background: linear-gradient(90deg, #c92e4d 0%, #13e1f8 100%);
    transform: scale(1.07);
    color: #fff;
}

#page0 {
    background: rgb(0, 0, 0);
}

#page0 aside,
#page0 article {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 2em 0;
    max-width: 700px;
    width: 100%;
    text-align: center;
    padding: 2em;
    box-sizing: border-box;
    max-width: 100vw;
    width: 100%;
    padding-left: 1em;
    padding-right: 1em;
    overflow-wrap: break-word;
    word-break: break-word;
    margin-left: 0;
    margin-right: 0;
}

.page {
    background: black;
}

iframe {
    padding-bottom: 3.3vmax;
}

#hamIcon {
    display: none;
    background: #970303 0%;
    color: #fff;
    border: none;
    border-radius: 2em;
    padding: 0.7em 2em;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    outline: none;
}

@media (max-width:800px) {

    /*make a menu items vertical*/
    nav ul li {
        display: block;
    }

    /* unhide menu icon */
    #hamIcon {
        display: block;
    }

    /*hide the menu item list*/
    nav ul {
        display: none;
    }

    .dynamic {
        flex-direction: column;
        align-items: center;
    }

    .dynamic img {
        width: 100%;
    }

    #qrcode {
        display: none;
    }
}

@media (min-width:800px) {

    .dynamic {
        display: flex;
        background: rgba(0, 0, 0, 0.4);
        margin-bottom: 5%;
    }

    .dynamic img {
        width: 20%;
        height: auto;
        flex: 1;
    }

    .dynamic .text {
        flex: 1;
        padding: 1em;
        text-align: center;
        align-items: center;
        align-content: center;
    }

    #qrcode {
        width: 50%;
        height: auto;
    }
}

/*to unhide menu items*/
.menuShow {
    display: block;
}

#ball {
    background: cyan;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer {
    align-content: center;
    margin-top: 20%;
}

header {
    font-size: larger;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

a {
    text-decoration: none;
    color: rgb(231, 237, 78);
}

a:hover {
    color: rgb(201, 46, 77);
}

h1 {
    color: #D5DCF9;
    font-size: large;
}

h2 {
    text-decoration: none;
    color: rgb(201, 46, 77);
}

h3 {
    color: rgb(13, 225, 248);
    font-size: large;
}



.video-section {
    position: relative;
    width: 100vw;
    max-width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    min-height: 300px;
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

#bgVideo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: calc(100vw * 3 / 2);
    min-height: 100%;
    min-width: 100%;
    transform: translate(-50%, -50%);
    border: none;
}

.video-content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    padding: 2rem;
}

article {
    padding: 1em;
}

h3.secondaryTXT {
    color: rgb(12, 247, 193);
}

.img-compare-container {
    position: relative;
    width: 400px;
    max-width: 100%;
    margin: 20px 0;
    aspect-ratio: 4/3;
}

.img-compare-container img {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    pointer-events: none;
}

.img-compare-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    transition: none;
}

.img-compare-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-compare-divider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    background: #fff;
    border-left: 1px solid #000;
    border-right: 1px solid #000;
    z-index: 2;
    pointer-events: none;
    transition: none;
}

.img-compare-slider {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    z-index: 3;
}

#quiz {
    background: rgba(0, 0, 0, 0.5);
    padding: 2em;
    border-radius: 10px;
    max-width: 600px;
    margin: auto;
    color: aliceblue
}

footer {
    margin-left: auto;
    margin-right: auto;

}

article {
    padding: 0;
    margin: 0;
}

#page1 {
    margin-left: auto;
}

#minigame {
    position: absolute;
    left: 0;
    top: 0;
    cursor: pointer;
    transition: left 0.4s cubic-bezier(0.4,0,0.2,1), top 0.4s cubic-bezier(0.4,0,0.2,1);
}

#minigameArea {
    position: relative;
    width: 600px;
    height: 400px;
    margin: 30px auto;
    border: 2px solid #ccc;
    overflow: hidden;
}