/* Define custom fonts */

@font-face {
    font-family: 'Lato-Regular';
    src: url('/Lato-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'PlayfairDisplay-VariableFont';
    src: url('/PlayfairDisplay-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


/* Define custom colors */

:root {
    --eggshell: #f4f1deff;
    --burnt-sienna: #e07a5fff;
    --delft-blue: #3d405bff;
    --cambridge-blue: #81b29aff;
    --sunset: #f2cc8fff;
}


/* Reset default margin and padding */

body,
h1,
h2,
button {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Lato-Regular", Arial, sans-serif;
    /* Use the linear gradient background */
    background: rgb(255, 255, 255);
    background: linear-gradient( 130deg, rgba(255, 255, 255, 1) 27%, rgba(244, 241, 222, 1) 52%, rgba(248, 228, 195, 1) 65%, rgba(242, 204, 143, 1) 76%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* Ensure the page takes up at least the full viewport height */
    padding: 5%;
    /* Add 5% padding to all sides */
}

h1 {
    font-family: "PlayfairDisplay-VariableFont", serif;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    /* Add margin space below h1 */
    color: var(--delft-blue);
    font-size: 24px;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
    /* Add slight shadow */
}

h2 {
    font-family: "PlayfairDisplay-VariableFont", serif;
    text-align: center;
    color: var(--delft-blue);
    font-size: 18px;
    margin-top: 10px;
}


/* Rest of your CSS styles... */

#uploadButton,
#challengeUploadButton {
    padding: 10px 20px;
    background-color: var(--burnt-sienna);
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

#uploadButton:hover,
#challengeUploadButton:hover {
    background-color: var(--cambridge-blue);
}

input[type="file"] {
    display: none;
}

#messageContainer {
    text-align: center;
    color: var(--delft-blue);
    margin-top: 20px;
    font-size: 16px;
}


/* Add styles for the progress bar and message container */

#progressContainer {
    width: 80%;
    text-align: center;
    margin: 0 auto;
    margin-top: 20px;
    border-radius: 10px;
    background-color: var(--eggshell);
    padding: 10px;
    position: relative;
}

#progressBackground {
    width: 100%;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

#progressBar {
    height: 20px;
    background-color: var(--delft-blue);
    width: 0%;
    border-radius: 10px;
    transition: width 0.3s ease;
    position: relative;
}

#progress {
    height: 100%;
    color: #fff;
    font-weight: bold;
}

#progressText {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: bold;
    /* Set initial color to match other text elements */
    color: whitesmoke;
    transition: left 0.3s ease;
    /* Add transition for left property */
}

.centered-box {
    border-radius: 10px;
    background-color: var(--eggshell);
    padding: 10px;
    text-align: center;
    margin-top: 20px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    text-align: center;
    font-family: 'Lato-Regular', Arial, sans-serif;
    /* Use custom font */
    border-radius: 10px;
    /* Add some border radius for rounded corners */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    /* Add a subtle shadow */
}

.close {
    position: absolute;
    right: 10px;
    top: 10px;
    color: #888;
    cursor: pointer;
    font-size: 20px;
    /* Increase the close button size */
}


/* Style the OK button within the modal */

#nameSubmitButton {
    padding: 10px 20px;
    background-color: var(--burnt-sienna);
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    width: 100%;
}

#nameSubmitButton:hover {
    background-color: var(--cambridge-blue);
}


/* Apply spacing and centering for the input field */

#userNameInput {
    font-family: 'PlayfairDisplay-VariableFont', serif;
    /* Use custom serif font */
    padding: 10px;
    /* Add padding for spacing */
    width: 100%;
    /* Take the full width */
    box-sizing: border-box;
    /* Include padding in width calculation */
    margin-top: 10px;
    /* Add margin space above the input field */
}


/* Media query for screens with a width of 768px or higher */

@media (min-width: 768px) {
    body {
        font-size: 18px;
    }
    h1 {
        font-size: 32px;
    }
    h2 {
        font-size: 24px;
    }
    #uploadButton,
    #challengeUploadButton {
        margin-top: 30px;
        /* Increased spacing between buttons */
    }
    .centered-box {
        margin-top: 30px;
        /* Increased spacing for the message container */
    }
}