@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

body {
    font-family: 'Montserrat', sans-serif;
    height: 100vh;
    overflow-x: hidden;
    margin: 0;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 300% 300%;
    animation: gradient 8s ease-in-out infinite;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.col-md-8 {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.title {
    font-size: 2em;
    font-weight: 250;
    margin-bottom: 1.5rem;
}

.upload-area {
    border: 2px dashed var(--bs-border-color);
    border-radius: 15px;
    padding: 2.5rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
}

.upload-area:hover {
    background: rgba(0, 0, 0, 0.6);
}

.hidden {
    display: none !important;
}

.input-description {
    margin: 1.5rem 0;
    width: 100%;
}

.input-description input {
    min-width: 400px;
    max-width: 100%;
    margin: 0 auto;
    display: block;
    padding: 10px;
    font-size: 1.1em;
    font-weight: 200;
    border: 1px solid rgba(97, 75, 204, 1);
    border-radius: 5px;
    box-sizing: border-box;
    text-align: left;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

@media (max-width: 600px) {
    .input-description input {
        min-width: 300px;
    }
}

.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; /* Adjust the spacing between the buttons */
    margin-top: 0px;
    flex-wrap: nowrap; /* Prevent wrapping */
}

.start-over-button button,
.master-button button {
    padding: 0.75rem 3.75rem;
    font-size: 1.2em;
    border-radius: 25px;
    border: 1px solid rgba(97, 75, 204, 1);
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s;
}

.start-over-button button:hover,
.master-button button:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.start-over-button button {
    margin-top: 20px;
}

.progress {
    height: 0.75rem;
}

#status {
    word-break: break-word; /* Ensures long words break */
    word-wrap: break-word; /* Older browser compatibility */
    overflow-wrap: break-word; /* Forces wrapping for long words */
    max-width: 400px; /* Keeps the width within the container */
    box-sizing: border-box; /* Includes padding and border in width */
    margin: 20px 0;
    color: white;
    font-weight: 500;
    border-radius: 10px;
    border: 1px solid rgba(97, 75, 204, 1);
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s;
    padding: 10px; /* Ensures readability with some padding */
}

#status a {
    color: inherit;
    text-decoration: underline;
}


@media (max-width: 600px) {
    .title {
        font-size: 1.8em;
    }
    
    .upload-area {
        padding: 2rem;
        font-size: 1.2em;
    }
    
    .master-button button, .start-over-button button {
        font-size: 1.2em;
        padding: 1rem 3.75rem;
    }
}
