@import "global.css";

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

.home-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: min(1080px,95%);

}

section {
    background-color: var(--blue);
    width: 100%;
    min-height: 250px;
    border: solid var(--black);
    border-width: 2px 4px 2px 4px;
    padding-bottom: 70px;
}

section .homepage {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    margin: 40px 40px 0px 40px;
    gap: 5px;
}

section .title {
    font-family: var(--font-heading);
    font-size: 40px;
    margin: 0px;
}

section .description {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 600;
    margin: 0px;
}

section .cta {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: end;
    width: 100%;
    gap: 60px;
    margin-top: 50px;
}

section .cta h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin: 0px;
}

section .cta p {
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    margin: 0px;
}

.cta-one, .cta-two, .cta-three {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    width: 200px;
    height: 140px;
    padding: 15px;
    gap: 10px;
    border: solid var(--black);
    border-width: 3px;
    box-shadow: 8px 8px var(--black);
}

.cta-more {
    padding: 5px 10px;
    border: solid var(--black);
    font-family: var(--font-heading);
    font-size: 20px;
    text-decoration: none;
    color: var(--black);
    border-width: 1px 3px 3px 1px;
}

.about.cta .cta-more {
    background-color: var(--bg-blue);
}

.tools.cta .cta-more {
    background-color: var(--bg-yellow);
}

.games.cta .cta-more {
    background-color: var(--bg-red);
}

.learn.cta .cta-more {
    background-color: var(--bg-green);
}

.about.cta .cta-more:hover {
    color: var(--blue);
}

.tools.cta .cta-more:hover {
    color: var(--yellow);
}

.games.cta .cta-more:hover {
    color: var(--red);
}

.learn.cta .cta-more:hover {
    color: var(--green);
}

.cta-more:active {
    border-width: 3px 1px 1px 3px;
}

.about.homepage .cta-one, .about.homepage .cta-two, .about.homepage .cta-three {
    background-color: var(--bg-blue);
}

.tools.homepage .cta-one, .tools.homepage .cta-two, .tools.homepage .cta-three {
    background-color: var(--bg-yellow);
}

.games.homepage .cta-one, .games.homepage .cta-two, .games.homepage .cta-three {
    background-color: var(--bg-red);
}

.learn.homepage .cta-one, .learn.homepage .cta-two, .learn.homepage .cta-three {
    background-color: var(--bg-green);
}

.about-section {
    background-color: var(--blue);
}

.tools-section {
    background-color: var(--yellow);
}

.games-section {
    background-color: var(--red);
}

.learn-section {
    background-color: var(--green);
}

@media (max-width: 1120px) {
    section .cta {
        gap: 40px;
    }

    .cta-more {
        display: flex;
        justify-content: center;
        width: 8%;
    }

    .cta-one, .cta-two, .cta-three {
        height: 170px;
    }
}
