body {
    background-image: url("/assets/images/background.png");
    background-repeat: repeat;

    padding: 0;
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: hidden;
}

.main {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: end;
    row-gap: 2rem;
    flex-wrap: wrap;
    border: 4px #b8567a solid;
    background-color: #fff9ed;
    color: #b8567a;
    font-family: "Yantramanav", sans-serif;
    padding: 2rem;
    animation: ease-in on 150ms;
}

@keyframes on {
    0% {
        transform: scale(0%, 0%);
    }

    50% {
        transform: scale(80%, 50%);
    }

    80% {
        transform: scale(105%, 105%);
    }

    100% {
        transform: scale(100%, 100%);
    }
}

.modal {
    padding: 0;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    width: 75vw;
    height: 50vh;
    background-color: white;
    border: 4px #b8567a solid;
    box-shadow: 10px 10px #6e3349;
    overflow: hidden;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.space-evenly {
    justify-content: space-evenly;
}

.space-between {
    justify-content: space-between;
}

.w100 {
    width: 100%;
}

button {
    width: fit-content;
    border: none;
    background-color: #b8567a;
    color: white;
    box-shadow: 4px 4px #6e3349;
    cursor: pointer;
}

button:active {
    background-color: #6e3349;
    color: white;
    box-shadow: -4px -4px #b8567a;
}

.content-box {
    overflow-y: scroll;
    border: 3px #000022 solid;  
    background-color: #ffffff;
    padding: 0.5rem;
    padding-top: 0;
    box-shadow: 4px 4px #6e3349;
    transition: ease-out box-shadow 100ms;
}

.content-box:hover {
    box-shadow: 7px 7px #6e3349;
}

.divider {
    margin-bottom: 0.25rem;
    width: 95%;
    border-top: 1px #444 solid;
    border-bottom: 3px #444 dashed;
}

.navigation {
    display: flex;
    flex-direction: column;
    height: fit-content;
}

.nav-link {
    font-size: 1.1rem;
    margin: 0.5rem;
}

.about {
    height: fit-content;
    display: flex;
    flex-direction: column;
}

.about > p {
    font-size: 1.1rem;
}

.about > p {
    color: blue;
}

.text-center {
    text-align: center;
}

.center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.update {
    border: 2px #b8567a solid;
    display: flex;
    flex-direction: row;
    color: #000022;
    justify-content: space-between;
    padding-left: 0.25rem;
    padding-right: 0.5rem;
    margin-top: 1rem;
}

.update > p {
    margin: 0.25rem;
}

.update > .time {
    width: fit-content;
    color: #444;
    text-align: right;
}

.people {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badges {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.badges > div {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-evenly;
    flex-flow: row wrap;
}

.warnings {
    align-items: center;
    height: 40vh;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
}

.warnings > h2 {
    margin: 0 0.5rem;
    text-align: center;
}

.warnings > .images {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    overflow-y: scroll;
    height: 100%;
}

.warnings > .images > img {
    object-fit: contain;
    height: 80%;
    max-width: 100%;
    margin: 0;
    image-rendering: pixelated;
}

.warning {
    bottom: 0;
    background-color: #FFCC00;
    color: blue;
    display: flex;
    flex-direction: row;
    column-gap: 5rem;
    align-items: center;
    justify-content: center;
    left: 0;
    padding-left: 5rem;
    padding-right: 0rem;
    height: 1.5rem;
    animation: scroll 30s linear infinite;
}

.warning > p {
    text-wrap: nowrap;
}

.warning-scroll {
    background-color: #FFCC00;
    align-self: self-start;
    display: flex;
    width: 100%;
    overflow: hidden;
    flex-direction: row;
    margin-top: 1rem;
    height: 1.5rem;
    flex-shrink: 0;
}

.peek-container {
    width: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.peek {
    position: relative;
    margin-bottom: -8.6%;
    margin-top: 5%;
}

.badge {
    image-rendering: pixelated;
    margin: 0.1rem;
}

.button {
    width: 88px;
    height: 31px;
}

.blinkie {
    width: 150px;
    height: 20px;
}

@keyframes scroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@media (orientation: landscape) {
    .main {
        width: 60vw;
        margin-top: 7rem;
        margin-bottom: 7rem;
        padding-top: 0;
        max-height: calc(100vh - 14rem);
        overflow-y: scroll;
    }

    .modal > h1 {
        position: absolute;
        top: 20vh;
        left: 5vw;
        transform: rotate(-30deg);
        font-family: "Comic Sans MS", "Comic Relief";
        color: black;
        font-weight: 700;
        font-size: 3rem;
        -webkit-text-stroke: 2.25px white;
    }

    button {
        padding: 0.25rem 2rem;
        margin: 0.75rem;
    }

    .warnings {
        width: 70%;
    }

    .navigation {
        width: calc(100% - 1rem);
        height: 50%;
    }

    .peek-container {
        width: 35%;
    }

    .about {
        width: 60%;
        height: 50%;
    }
    
    .updates {
        width: 58%;
        height: calc(0.35 * (100vh - 14rem));
        max-height: calc(0.35 * (100vh - 14rem));
    }

    .people {
        width: 35%;
        height: 37%; 
        max-height: calc(0.35 * (100vh - 14rem));
    }
}

@media (orientation: portrait) {
    .modal > h1 {
        position: absolute;
        top: 0;
        left: 50vw;
        transform: translateX(-50%);
        width: 85vw;
        max-width: 85vw;
        text-align: center;
        font-family: "Comic Sans MS", "Comic Relief";
        color: black;
        font-weight: 700;
        font-size: 3rem;
        -webkit-text-stroke: 2.25px white;
    }

    .warnings {
        width: 100%;
    }

    button {
        font-size: 1.1rem;
        padding: 0.5rem 2rem;
        margin: 1rem;
    }
}
