@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

/* === BASE === */

* {
    box-sizing: border-box;
}

body {
    background-color: black;
    color: #eaeaea;
    margin: 0;
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
}

a {
    text-decoration: none;
    color: inherit;
}

/* === LAYOUT CONTAINERS === */

.container {
    width: 100%;
}

.container-main {
    padding-top: 80px;
}

/* === NAVBAR === */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px 16px;
    font-size: 14pt;
    font-weight: 300;
    z-index: 100;
    background-color: black;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
}
.links{
    margin-left: auto;
    margin-right: auto;
}

nav a {
    font-weight: 300;
    padding: 8px 6px;
}

nav a:hover {
    text-decoration: underline;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;

}

.user-icon{
    display: flex;
    align-items: center;
    cursor: pointer;
    border-radius: 50%;
    right: 4px;
    position: fixed;
}
.user-icon:hover{
    cursor: pointer;
}
.user-icon img{
    filter: invert(1);
    margin-left: auto;
}

/* === HERO === */

header {
    width: 100%;
}
.header-main{
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    background-color: black;
    height: 100vh;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 16px;
}

header h1 {
    font-size: 56pt;
    margin: 0;
    font-weight: 900;
}

header p {
    margin: 0;
    font-size: 18pt;
    font-style: italic;
    line-height: 1.5;
    font-weight: 300;
}

.cool-arrow {
    color: #eeeeee;
    padding-top: 45vh;
    animation: bounce 2s infinite;
    filter: invert(1);
}
.cool-arrow img{
    width: 48px;
    height: 48px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* === HERO BUTTONS === */

.header-buttons {
    display: flex;
    gap: 16px;
}
.header-buttons span{
    margin-left: 8px;
}

.header-buttons div {
    font-size: 14pt;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.header-buttons div:hover {
    transform: translateY(-4px);
}

.start-button {
    background-color: #eeeeee;
    border: 2px solid #eeeeee;
    color: #000000;
}

.github-button {
    border: 2px solid #eeeeee;
    color: #eeeeee;
}

.header-buttons img {
    width: 16px;
    height: 16px;
}
/* === MAIN SECTION === */

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: fit-content;
}

.main-content-text {
    width: 100%;
    max-width: 1400px;
    background-color: #eeeeee;
    color: #000;
    border-radius: 32px;
    padding: 12px 48px;
}

.main-content-text-content {
    display: flex;
    align-items: center;
    gap: 48px;
}

.main-content-text-content .text {
    flex: 1;
    max-width: 65%;
}

.main-content-text h2 {
    margin: 0;
    font-size: 32pt;
    font-weight: 900;
    line-height: 1.2;

}

.main-content-text p {
    margin-top: 16px;
    font-size: 14pt;
    line-height: 1.6;
}

.main-content-text-content img {
    width: 256px;
    height: auto;
    margin-left: auto;
    padding-bottom: 16px;
    flex-shrink: 0;
}

/* === RESPONSIVENESS === */

@media (max-width: 1400px) {
    .main-content {
        width: 80%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 48px 16px;
    }

    .main-content-text {
        padding: 32px;
    }

    .main-content-text-content {
        gap: 32px;
    }

    .main-content-text-content .text {
        max-width: 65%;
    }

    .main-content-text h2 {
        font-size: 26pt;
    }

    .main-content-text-content img {
        width: 220px;
        height: auto;
    }
}

@media (max-width: 1024px) {
    .main-content-text-content img {
        display: none;
    }
    .main-content-text-content .text{
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .main-content {
        width: 90%;
        padding: 32px 16px;
        height: fit-content;
    }

    .main-content-text {
        padding: 24px;
    }

    .main-content-text-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .main-content-text-content .text {
        max-width: 100%;
    }

    .main-content-text-content img {
        width: 180px;
        height: auto;
        align-self: center;
    }

    .main-content-text h2 {
        font-size: 22pt;
    }

    .main-content-text p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .text, .main-content,
    .main-content {
        width: 100%;
        height: fit-content;
        overflow: hidden;
        padding: 24px 12px;
    }

    .main-content-text {
        padding: 16px;
    }

    .main-content-text h2 {
        font-size: 18pt;
    }

    .main-content-text p {
        font-size: 12px;
    }


    .main-content-text-content img {
        display: none;
    }
}


/* === BOXES SECTION === */

.boxes-container1 {
    margin-top: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.boxes-header {
    text-align: center;
    margin-bottom: 32px;
}

.boxes-header h2 {
    font-size: 32pt;
    margin: 0;
}

.boxes-container2 {
    max-width: 1400px;
    display: flex;
    gap: 32px;
    width: 100%;
    padding: 0 16px;
}

.boxes-content {
    border-radius: 32px;
    padding: 32px;
    flex: 1;
    transition: transform 0.2s ease;
}

.boxes-title{
    display: flex;
    flex-direction: row;
}
.boxes-title img{
    filter: invert(1);
    width: 24px;
    height: 24px;
}
.boxes-title h3{
    margin-left: 8px;
}

.boxes-content h3 {
    margin-top: 0;

}

.boxes-content p {
    font-weight: 300;
    max-height: 75px;
    font-size: 14pt;
    color: #cfcfcf;
}

/* === BOX CTA === */

.boxes-arrow {
    margin-top: 24px;
    background-color: #eeeeee;
    color: #000000;
    font-size: 14pt;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.boxes-arrow img{
    width: 16px;
    height: 16px;
}

.boxes-arrow:hover {
    background-color: #eeeeee;
    transform: translateY(-2px);
    transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}
#boxes-more:hover{
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease-in-out,transform 0.2s ease-in-out;
    transform: translateY(-2px);
}
.boxes-more {
    font-weight: 300;
    color: #eeeeee;
    height: fit-content;
}
.boxes-more p:hover {
    color: #ffffff;
    transition: color 0.2s ease-in-out;
}

/* === RESOURCES === */

.resources-section {
    max-width: 960px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    margin-top: 64px;
    text-align: center;
}

.resources-section h2 {
    font-size: 32pt;
    margin-bottom: 16px;
}

.resources-desc {
    font-size: 14pt;
    font-style: italic;
    font-weight: 300;
}

.resources-links {
    list-style: none;
    margin-top: 64px;
    padding: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 16px;
}

.resources-links a {
    font-size: 14pt;
    display: block;
    padding: 16px;
    border-radius: 16px;
    text-decoration: none;
    color: #eeeeee;
    transition: transform 0.15s ease;
}

.resources-links a:hover,
.resources-links a:focus-visible {
    transform: translateY(-2px);
    transition: transform 0.15s ease;
    cursor: pointer;
    text-decoration: underline;
    outline: none;
}
/* === FOOTER === */

footer {
    margin-top: 64px;
    padding: 16px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
footer section{
    margin-bottom: 8px;
}
.footer-content section{
    display: flex;
    flex-direction: row;
}

footer span{
    font-weight: 300;
}

.footer-more ul{
    list-style: none;
    text-decoration: none;
    margin: 0;
    padding: 0;
}

.footer-more a:hover{
    text-decoration: underline;
    cursor: pointer;
}

.footer-more{
    width: 80%;
}

.footer-social{
    width: 20%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 16px;
}

.footer-social img{
    width: 24px;
    height: 24px;
}


/* === RESPONSIVE === */

@media (max-width: 900px) {
    .boxes-container2 {
        flex-direction: column;
    }
    header h1 {
        font-size: 28pt;
    }
    .resources-links {
        flex-direction: column;
    }
    .header-buttons span {
        font-size: 12pt;
    }
    .main-content-text h2{
        font-size: 16pt;
    }
    .main-content-text p{
        font-size: 12pt;
    }
    .boxes-header h2{
        font-size: 24pt;
    }

}
@media (max-width: 600px) {
    header p {
        font-size: 14pt;
    }
    header h1 {
        font-size: 24pt;
    }
}
/*About Page*/
.about-main{
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    text-justify: auto;
    text-align: center;
}
.about-main a{
    text-decoration: underline;
}
.about-main h1{
    font-size: 36pt;
}
.about-main p{
    font-size: 16pt;
}
hr{
    color: #dddddd;
    width: 100%;
    margin-top: 16px;
}
/*HackBoxes*/
.header-main-hackboxes{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: black;
    text-align: center;
    font-size: 32pt;
    width: 100%;
}
.main-content-hackboxes{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}