* {
    box-sizing: border-box;
}

/* Área de Requisitos de Sistemas */
.requirements {
    background: var(--darkerBackgroundColor);
    border-radius: var(--uiBorderRadius);
    padding: var(--defaultDivPadding);
    margin-top: 16px;
    text-align: left;
    border: 1px solid var(--darkerBackgroundBorder);
}

.requirements h3 {
    color: var(--highlightColor2);
    margin-top: 0;
    margin-bottom: var(--defaultMargin);
    border-left: 4px solid var(--highlightColor2);
    padding-left: 0.5rem;
}

.requirements ul {
    margin: 0;
    padding-left: 18px;
}

/* Título e Textos. */
h1,
h2 {
    color: var(--highlightColor2);
}

h4,
h3 {
    color: var(--highlightColor);
}

p {
    text-indent: 1.5cm;
}

/* Botões */
.mainButtons button {
    margin: 0;
    width: 15%;
}

.mainButtons {
    margin-top: 12px;
    justify-content: space-between;
}

.downloadBtn {
    width: 100% !important;
}

.navDownload:hover,
.downloadBtn:hover {
    animation: gradientMove 0.5s linear infinite;
    transform: translateY(-2px);
}

.downloadBtn {
    background: linear-gradient(45deg, var(--highlightColor), var(--highlightColor2));
    background-size: 200% 100%;
    width: 50%;
    font-weight: bold;
    margin: var(--defaultMargin) auto auto;
    display: block;
    color: white;
    text-decoration: none;
}

a.adBtn {
    text-decoration: none;
}

/* Divs */
div {
    padding: var(--defaultPadding);
}

div.main {
    padding: 0;
}

div.title {
    padding: 0;
    text-align: center;
    height: 80vh;
    background-image: url(../assets/home/Montain_v3.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

div.aboutGame,
div.mainDiv,
div.mechanics,
div.slideshowContainer {
    width: 75% !important;
    margin: auto;
}

div.mainDiv {
    padding: 0;
}

div.subDiv {
    padding: var(--defaultPadding);
    width: 60%;
    background-color: var(--secondaryColor);
    border-radius: var(--uiBorderRadius);
    margin: auto;
    border: 1px solid var(--secondaryBorder);
}

div.subDivBackground {
    background-color: rgba(63, 51, 145, 0.5);
    width: auto;
    border-radius: var(--uiBorderRadius);
    border: 1px solid var(--secondaryBorder);
}

.subDiv p {
    font-size: small;
}

div.subDiv:hover {
    filter: brightness(125%);
    transform: scale(1.05);
}

div.backgroundDiv {
    min-height: 512px;
    flex-shrink: 0;
    padding: var(--defaultPadding);
    background-image: url(../assets/home/cavern_v2.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    align-content: center;
}

/* Logo Godot no Card */
.inLine {
    margin: 0;
    padding: 0;
    justify-content: space-between;
    display: flex;
    flex-direction: row;
}

.inLineContent {
    padding: 0;
}

.godotLogo {
    padding: 0;
    margin-left: auto;
    margin-bottom: auto;
    max-height: 48px;
}

/* Imagens */
img {
    border-radius: var(--uiBorderRadius);
    object-fit: contain;
    height: 200px;
}

img.titleLogo {
    margin: auto;
    max-width: 50%;
    height: auto;
    object-fit: contain;
    margin-top: 5%;
}

img.slideImage {
    height: auto;
    margin: auto;
    max-width: 35%;
}

.johnMain {
    position: absolute;
    bottom: 50px;
    right: 0;
    height: 50%;
    border-radius: 0;
    display: block !important;
}

.sideImage {
    margin-right: 20px;
    position: static;
    height: auto;
    max-width: 7%;
}

/* Video */
video.slideshowContainer {
    margin: auto;
    width: 95%;
    border-radius: var(--uiBorderRadius);
}

.videoShowcase {
    display: flex;
    gap: var(--defaultGap);
    justify-content: center;
    padding: 0;
}

.mainVideo {
    flex: 2;
    background: var(--darkerBackgroundColor);
    border-radius: var(--uiBorderRadius);
    padding: var(--defaultPadding);
    text-align: center;
    transition: transform 0.3s ease, filter 0.3s ease;
    border: 1px solid var(--darkerBackgroundBorder);
}

.sideVideos {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--defaultGap);
    padding: 0;
}

.videoCard,
.mainVideo {
    transition: transform 0.3s ease, filter 0.3s ease;
    border: 1px solid var(--darkerBackgroundBorder);

}

.videoCard:hover,
.mainVideo:hover {
    transform: scale(1.03);
    filter: brightness(115%);
}

.mainVideo video,
.videoCard video {
    width: 100%;
    border-radius: var(--uiBorderRadius);
    object-fit: cover;
}

.mainVideo p,
.videoCard p {
    margin-top: 12px;
    font-size: medium;
}

.videoCard {
    background: var(--darkerBackgroundColor);
    border-radius: var(--uiBorderRadius);
    padding: var(--defaultPadding);
    text-align: center;
}

.titleLogo {
    animation: SlideDown 1s ease-out forwards, bounce 0.75s ease-in-out infinite alternate;
    animation-delay: 0s, 1s;
}

.sideImage:hover {
    transform: scale(1.5);
}

/* Responsividade (Ou tentativa) */
@media (max-width: 1100px) {
    .mainButtons button {
        white-space: nowrap;
        text-align: center;
    }

    .godotLogo {
        margin: auto;
    }

    div.text {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    div.textToImage {
        flex-direction: column;
        align-items: flex-start;
    }

    img {
        width: 50%;
        height: auto;
        align-self: center;
    }

    .sideImage {
        width: 25%;
        max-width: 100%;
    }

    div.backgroundDiv {
        padding: 0;
    }

    .mainButtons button {
        width: 48%;
    }

    div.title {
        height: 70vh;
        padding: 32px 16px;
    }

    img.titleLogo {
        margin: 64px 0 64px 0;
        max-width: 100%;
        width: 100%;
    }

    .slideshowContainer {
        max-width: 100% !important;
    }

    div.subDiv {
        width: 100%;
    }

    div.aboutGame,
    div.mainDiv,
    div.mechanics,
    div.slideshowContainer {
        width: 90% !important;
        padding: 10px;
    }

    .videoShowcase {
        flex-direction: column;
    }

    .sideVideos {
        flex-direction: row;
        justify-content: space-between;
    }

    .videoCard {
        width: 47%;
    }

    .johnMain {
        display: none !important;
    }

    .mainVideo p,
    .videoCard p {
        text-indent: 0.0cm;
        font-size: small;
    }

    @media screen and (min-width: 540px) {
        img.titleLogo {
            margin: 24px 0 24px 0;
            max-width: 60%;
        }
    }

    @media screen and (max-height: 600px) {
        img.titleLogo {
            margin: 12px 0 12px 0;
        }

        div.title {
            height: 95vh;
        }
    }
}

@media screen and (min-height: 1000px) {
    .mainButtons {
        width: 75%;
        margin: auto;
    }

    .subDiv {
        max-width: 45%;
    }

    .godotLogo {
        max-width: 32px;
    }

    .johnMain {
        right: 32px;
        bottom: 128px;
        height: 40%;
    }

    div.aboutGame,
    div.mainDiv,
    div.mechanics,
    div.slideshowContainer {
        width: 65% !important;
    }

    @media screen and (min-width: 1900px) {
        .johnMain {
            bottom: 128px;
            height: 25%;
        }
    }
}