* {
    padding: 0;
    margin: 0;

    box-sizing: border-box;
}

:root {
    --base-color: #470000;

    --highlight-base: #47000011;
    --highlight-dark: #00000066;

    --light: #fff;
    --dark: #000;
}

/* Header */

.header {
    position: fixed;

    width: 100%;
    height: fit-content;

    display: flex;
    align-items: center;
    justify-content: center;

    border-bottom: 1px solid var(--highlight-dark);

    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background: #ffffffaa;

    z-index: 5;
}

.header .container {
    padding: 15px 0;
    width: 100%;

    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    grid-template-areas: "brand logo toolbox";

    transition: padding .3s;
}

.header .container.scroll {
    padding: 5px 0;
}

.header .container .brand {
    grid-area: brand;

    font-family: 'Doto';
    font-size: 36px;
    font-weight: 700;

    display: flex;
    align-items: center;
    justify-content: start;

    transition: font-size .3s;

    cursor: default;
}

.header .container .brand.scroll {
    font-size: 32px;
}

.header .container .logo {
    grid-area: logo;

    display: flex;
    align-items: center;
    justify-content: center;
}

.header .container .logo img {
    max-width: 70px;

    transition: max-width .3s;
}

.header .container .logo img.scroll {
    max-width: 50px;
}

.header .container .toolbox {
    grid-area: toolbox;

    display: grid;
    gap: 40px;
    align-items: center;
    justify-content: end;

    grid-template-areas: "about cube";
}

.header .container .toolbox .about-us {
    grid-area: about;

    font-family: 'Doto';
    font-size: 24px;
    font-weight: 700;

    transition: color .3s, text-shadow .3s, font-size .3s;

    cursor: pointer;
}

.header .container .toolbox .about-us.scroll {
    font-size: 20px;
}

.header .container .toolbox .about-us:hover {
    color: var(--light);
    text-shadow: 0.5px 0.5px var(--dark);
}

.header .container .toolbox .cube-btn {
    grid-area: cube;

    width: 30px;
    height: 30px;

    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr;

    cursor: pointer;
}

.header .container .toolbox .cube-btn .cube {
    height: 7px;
    width: 7px;
    border-radius: 2px;

    background: var(--dark);
    transition: background .3s, box-shadow .3s;
}

.header .container .toolbox .cube-btn:hover .cube {
    background: var(--light);
    box-shadow: 1px 1px var(--dark);
}

/* Landing Section */
.landing {
    padding-top: 100px;
    padding-bottom: 30px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.landing .container {
    height: 550px;
    width: 100%;

    display: grid;
    grid-template-columns: auto;
    grid-template-rows: auto;
    align-items: center;
    justify-content: center;

    border-radius: 0 0 10px 10px;
    background: var(--dark);

    overflow: hidden;
}

.landing .container video {
    min-width: 100%;
    min-height: 100%;
    opacity: 0.4;

    grid-row: 1;
    grid-column: 1;
}

.landing .container .content {
    padding-top: 55px;

    width: 100%;
    height: 100%;

    grid-row: 1;
    grid-column: 1;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;

    z-index: 1;
}

.landing .container .content img {
    max-width: 300px;
    filter: invert();
}

.landing .container .content h1 {
    font-family: 'Doto';
    font-size: 100px;
    font-weight: 900;
    color: var(--light);

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: default;
}

@supports (font-variation-settings: "ROND" 100) {
    .landing .container .content h1 {
        font-family: 'Doto';
        font-size: 100px;
        font-weight: 900;
        font-variation-settings:
            "ROND" 100;
        color: var(--light);

        display: flex;
        align-items: center;
        justify-content: center;

        cursor: default;
    }
}

/* Main Section */
.main {
    display: flex;
    align-items: center;
    justify-content: center;
}

.main .container {
    width: 100%;

    display: grid;
    gap: 20px;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 250px 250px 250px;
    grid-template-areas:
        "clg   clg    mess"
        "hst   elec   mess"
        "water sports sports";

    margin-bottom: 30px;
}

.main .container.clg {
    grid-template-areas:
        "clg clg ."
        "clg clg ."
        "clg clg .";
}

.main .container.mess {
    grid-template-areas:
        ". mess mess"
        ". mess mess"
        ". mess mess";
}

.main .container.hst {
    grid-template-areas:
        "hst hst ."
        "hst hst ."
        "hst hst .";
}

.main .container.elec {
    grid-template-areas:
        ". elec elec"
        ". elec elec"
        ". elec elec";
}

.main .container.water {
    grid-template-areas:
        "water water ."
        "water water ."
        "water water .";
}

.main .container.sports {
    grid-template-areas:
        ". sports sports"
        ". sports sports"
        ". sports sports";
}

.main .card {
    width: 100%;
    height: 100%;

    padding: 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;
    border: 1px solid var(--dark);

    overflow: hidden;
    cursor: pointer;
}

.main .card.disable {
    opacity: 0.5;
}

.main .card:hover {
    transform: translateX(-5px) translateY(-5px);
    box-shadow: 5px 5px var(--dark);
}

.main .card h2 {
    font-family: 'Doto';
    font-size: 26px;
    font-weight: 900;
}

.main .card p {
    max-width: 90%;
    text-align: justify;

    font-family: 'Doto';
    font-size: 14px;
    font-weight: 700;
}

.main .card.expand {
    display: none;
}

.main .card.clg {
    grid-area: clg;
}

.main .card.mess {
    grid-area: mess;
    flex-direction: column;
}

.main .card.hst {
    grid-area: hst;
    flex-direction: column;
}

.main .card.elec {
    grid-area: elec;
    flex-direction: column;
}

.main .card.water {
    grid-area: water;
    flex-direction: column;
}

.main .card.sports {
    grid-area: sports;
}

.main .card .left,
.main .card .right {
    width: 50%;
    height: 100%;

    padding: 5px;

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

.main .card .top,
.main .card .bottom {
    width: 100%;
    height: 50%;

    padding: 5px;

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

.main .card img {
    max-width: 100%;
    max-height: 100%;

    border-radius: 15px;
}

.main.dark .card img {
    filter: invert();
}

.main .card.collapse {
    background: var(--light);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;

    cursor: default;
}

.main .card.collapse.z-ind {
    z-index: 15;
}

.main .card.collapse:hover {
    transform: none;
    box-shadow: none;
}

.main .card.collapse p {
    max-width: 100%;
}

.main .card .zenith {
    width: 100%;

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

.main .card .title-bar {
    width: 100%;
    padding: 5px 5px 0 5px;

    font-family: 'Doto';
    font-weight: 700;
    font-size: 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-top: 1px solid var(--highlight-dark);
    border-radius: 10px 10px 0 0;
}

.main .card .title-bar .btns {
    display: flex;
    align-items: center;
    justify-content: center;
}

.main .card .title-bar .reload-btn,
.main .card .title-bar .close-btn {
    margin-left: 20px;

    transition: color .3s, text-shadow .3s, font-size .3s;
    cursor: pointer;
}

.main .card .title-bar .reload-btn:hover,
.main .card .title-bar .close-btn:hover {
    color: var(--light);
    text-shadow: 0.5px 0.5px var(--dark);
}

.main .card .write-com {
    font-family: 'Doto';
    font-weight: 700;
    font-size: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 5px;
    border: 1px solid var(--highlight-dark);

    margin-bottom: 10px;
    padding: 2px 5px;

    cursor: pointer;
}

.main .card .write-com:hover {
    transform: translateX(-2px) translateY(-2px);
    box-shadow: 2px 2px var(--dark);
}

.main .card.disable .write-com {
    pointer-events: none;
}

.main .card .page-bar {
    width: 100%;
    margin-top: 10px;
    padding: 0 35% 5px 35%;

    font-family: 'Doto';
    font-weight: 700;
    font-size: 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-radius: 0 0 10px 10px;
    border-bottom: 1px solid var(--highlight-dark);
}

.main .card .page-bar .left-arr,
.main .card .page-bar .right-arr {
    transition: color .3s, text-shadow .3s, font-size .3s;
    cursor: pointer;
}

.main .card .page-bar .left-arr:hover,
.main .card .page-bar .right-arr:hover {
    color: var(--light);
    text-shadow: 0.5px 0.5px var(--dark);
}

.main .card .list {
    max-height: 669.33px;
    width: 100%;
    overflow-y: scroll;
}

.main .card .feedback {
    padding: 5px;
    margin-bottom: 10px;

    border: 1px dashed var(--base-color);
    border-radius: 5px;

    display: flex;
    align-items: center;
    justify-content: start;

    overflow-x: hidden;
    transition: background .3s;
}

.main .card .feedback:hover {
    border: 1px solid var(--base-color);
    background: var(--highlight-base);
}

.main .card .feedback .timestamp {
    font-family: 'Doto';
    font-size: 14px;
    font-weight: 900;

    color: var(--base-color);
}

.main .card .feedback .content {
    margin-left: 15px;
}

.main .card .feedback .content h2 {
    color: var(--base-color);
    font-size: 20px;
}

.main .card .feedback .content p {
    text-align: left;
}

/* Alert Box */
.alert-msg {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 5px 40px;

    font-family: 'Doto';
    font-size: 16px;
    font-weight: 700;

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

    border-radius: 5px;
    background: #7FFF4Edd;

    animation: disappear 3s linear 1s;
    z-index: 25;
}

.alert-msg.warn {
    background: #ff4141dd;
    color: var(--light);
}

/* Comment Box */
.comment-node {
    position: fixed;
    top: 50%;
    left: 50%;
    padding: 10px;

    width: 500px;
    height: fit-content;
    background: var(--light);

    font-family: 'Doto';
    font-weight: 700;

    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: center;

    border: 1px solid var(--highlight-dark);
    border-radius: 15px;

    transform: translateX(-50%) translateY(-50%);
    z-index: 20;
    overflow-x: hidden;
}

.comment-node.dark {
    filter: invert();
}

.comment-node .close-box {
    font-size: 24px;

    margin-bottom: 10px;
    transition: color .3s, text-shadow .3s, font-size .3s;
    cursor: pointer;
}

.comment-node .close-box:hover {
    color: var(--light);
    text-shadow: 0.5px 0.5px var(--dark);
}

.comment-node .comment-title {
    width: 100%;
    padding: 2px;

    font-family: 'Doto';
    font-size: 16px;
    font-weight: 900;

    margin-bottom: 10px;
}

.comment-node .comment-content {
    width: 100%;
    height: 360px;
    padding: 2px;

    font-family: 'Doto';
    font-size: 14px;
    font-weight: 900;

    margin-bottom: 10px;
    resize: none;
    overflow: auto;
}

.comment-node .submit-btn {
    padding: 2px 15px;

    font-family: 'Doto';
    font-size: 16px;
    font-weight: 900;

    background: none;
    border: 1px solid var(--highlight-dark);
    border-radius: 5px;

    cursor: pointer;
}

.comment-node .submit-btn:hover {
    transform: translateX(-2px) translateY(-2px);
    box-shadow: 2px 2px var(--dark);
}

/* Footer */
.footer {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    border-top: 1px solid var(--highlight-dark);
}

.footer .container {
    width: 100%;

    display: grid;
    grid-template-columns: 2fr 3fr 2fr;
    align-items: center;
    justify-content: center;
}

.footer .socials {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: start;

    font-family: 'Doto';
    font-size: 14px;
    font-weight: 700;
}

.footer .socials a {
    margin-right: 15px;
}

.footer .socials a img {
    filter: brightness(0);
    transform: translateY(1px);
}

.footer .brand {
    font-family: 'Doto';
    font-size: 32px;
    font-weight: 700;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: default;
}

.footer .copy {
    width: 100%;

    font-family: 'Doto';
    font-size: 12px;
    font-weight: 700;

    display: flex;
    align-items: center;
    justify-content: end;
}

/* Utilities */
.mask {
    display: none;

    top: 0;
    position: fixed !important;

    width: 100vw;
    height: 100vh;

    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    background: var(--highlight-dark);

    z-index: 10;
}

.mask.active {
    display: block;
}

.container {
    max-width: 1000px;
    margin-left: 10px;
    margin-right: 10px;
}

body.dark {
    background-color: var(--dark);
}

.header.dark,
.landing.dark,
.main.dark .card,
body.dark .comment-node,
.footer.dark {
    filter: invert();
}

@media only screen and (max-width: 600px) {
    .header .container {
        padding: 15px 10px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas: "logo toolbox";
    }

    .header .container.scroll {
        padding: 5px 10px;
    }

    .header .container .brand {
        display: none;
    }

    .header .container .logo {
        justify-content: start;
    }

    .header .container .toolbox {
        gap: 20px;
    }

    .header .container .toolbox .about-us {
        font-size: 20px;
    }

    .header .container .toolbox .about-us.scroll {
        font-size: 16px;
    }

    /* Landing Section */
    .landing .container .content h1 {
        font-size: 50px;
    }

    /* Main Section */
    .main {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main .container {
        width: 100%;

        display: grid;
        gap: 20px;
        grid-template-columns: 1fr;
        grid-template-rows: 250px 250px 250px 250px 250px 250px;
        grid-template-areas: "clg"
            "mess"
            "hst"
            "elec"
            "water"
            "sports";

        margin-bottom: 30px;
    }

    .main .container.clg {
        grid-template-rows: 250px 250px 250px;
        grid-template-areas: "clg"
            "clg"
            "clg";
    }

    .main .container.mess {
        grid-template-rows: 250px 250px 250px;
        grid-template-areas: "mess"
            "mess"
            "mess";
    }

    .main .container.hst {
        grid-template-rows: 250px 250px 250px;
        grid-template-areas: "hst"
            "hst"
            "hst";
    }

    .main .container.elec {
        grid-template-rows: 250px 250px 250px;
        grid-template-areas: "elec"
            "elec"
            "elec";
    }

    .main .container.water {
        grid-template-rows: 250px 250px 250px;
        grid-template-areas: "water"
            "water"
            "water";
    }

    .main .container.sports {
        grid-template-rows: 250px 250px 250px;
        grid-template-areas: "sports"
            "sports"
            "sports";
    }

    .main .card h2 {
        font-size: 20px;
    }

    .main .card p {
        max-width: 95%;
        font-size: 12px;
    }

    .main .card.mess {
        flex-direction: row;
    }

    .main .card .top,
    .main .card .bottom {
        width: 50%;
        height: 100%;
    }

    .main .card.collapse {
        flex-direction: column;
    }

    /* Feedback */
    .main .card .feedback .content h2 {
        font-size: 16px;
    }

    .main .card .feedback .content p {
        font-size: 13px;
    }

    .main .card .page-bar {
        padding: 0 20% 5px 20%;
    }

    /* Comment Box */
    .comment-node {
        top: 20px;
        left: 50%;

        width: 90%;
        transform: translateX(-50%);
    }

    .comment-node .comment-title {
        font-size: 14px;
    }

    .comment-node .comment-content {
        height: 200px;
        font-size: 12px;
    }

    /* Footer */
    .footer .container {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .footer .brand {
        font-size: 20px;
    }

    .footer .copy {
        font-size: 6px;
    }

    /* Utilities */
    .container {
        margin-left: 15px;
        margin-right: 15px;
    }
}

@keyframes disappear {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}