html, body {
    margin:0;
    padding:0;
    box-sizing: border-box;
    background-image: url("./images/gpt_bg_2.png");
    background-size: cover;           /* Makes sure the image covers the entire screen */
    background-position: center;      /* Centers the image */
    background-repeat: no-repeat;     /* Prevents tiling */
    height: 100vh;                    /* Ensures the background covers the viewport height */
    overflow-x: hidden; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

main {
    margin:0;
    padding:0;
    display:flex;
    flex-direction:column;
    justify-content: center;
    align-items: center;
    margin: 10px auto;
    margin-bottom:0;
    width:1000px;
    height:900px;
    padding-bottom:50px;
}
.logo {
    width:auto;
    height:auto;
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top:150px;
}

.logo_img {
    width:250px;
    height:auto;
}

h1 {
    font-family: "Crete Round", Arial serif;
    font-size: 7rem;
    font-weight: 500;
}
.sub_text {
    display:inline-block;
    width:100%;
    height:50px;
    font-family: "inter";
    font-size: 2.5rem;
    font-weight: 400;
    margin-top:50px;
    margin-bottom:50px;
    text-align:center;
}

.language_select {
    margin-bottom:25px;
    width:auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items:center;
}

.button {
    width:200px;
    height:75px;
    display:inline-flex;
    justify-content: center;
    align-items: center;
    background-color:black;
    color: white;
    border-radius: 10px;
    font-size:2rem;
    font-family: "inter";
    text-decoration: none;
    border-style:none;
}




a {
    text-decoration: none;
    color: inherit; /* Inherit color from parent */
}



/* Add a fade animation */
@keyframes fadeInOut {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.sub_text {
    animation: fadeInOut 5s ease-in-out infinite; /* 5000ms transition */
}


/* --code for smaller screens-- */

/* Media query for screens smaller than 1000px */
@media (max-width: 999px) {

    main {
        width: 90%; /* Make the main container width responsive */
        height: auto; /* Allow height to adjust automatically */
        padding: 0 10px; /* Add padding for smaller screens */
    }

    .logo {
        margin-top:10px;
    }

    .logo_img {
        width: 180px; /* Reduce logo size */
    }

    h1 {
        font-size: 5rem; /* Reduce the font size of the title */
    }

    .sub_text {
        font-size: 2rem; /* Smaller font for the subtext */
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .language_select {
        width: 100%; /* Make the buttons section take full width */
        flex-direction: column; /* Stack buttons vertically */
        align-items: center;
        gap: 20px;
    }

    .button {
        width: 250px; /* Adjust button width */
        height: 60px; /* Adjust button height */
        font-size: 1.8rem; /* Adjust button font size */
    }
}

/* Media query for mobile screens */
@media (max-width: 600px) {

    .logo {
        margin-top:10px;
    }

    .logo_img {
        width: 150px;
    }

    h1 {
        font-size: 4rem;
    }

    .sub_text {
        font-size: 1.5rem;
    }

    .button {
        width: 200px;
        height: 55px;
        font-size: 1.5rem;
    }
}


/* Make sure the content fits the viewport height for mobile devices */
@media (max-width: 999px) {
    main {
        min-height: 100vh; /* Ensure the main content fits the entire screen */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-top: 0;
        padding-bottom: 0;
    }
}

@media (max-width: 600px) {
    main {
        min-height: 100vh; /* Ensure the main content fits the entire screen */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-top: 0;
        padding-bottom: 0;
    }
}