:root {
    --primary-color: #000000;
    --secondary-color: #FFD700;
    --background-color: #FFFFFF;
    --text-color: #000000;
  }
  
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: rgb(255, 255, 255);
    color: black;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    padding-top: 60px; /* Adjust this value based on your navbar height */
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

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

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    text-align: center;
    z-index: 1000; /* Ensures the navbar stays on top of other elements */
}

.navbar h1 {
    margin: 0;
    font-size: 1.5rem;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    margin-top: 2rem; /* Increase this value if needed */
}

.intro-text {
    text-align: center;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.intro-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.intro-text p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.compressor-box {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    min-height: 500px;
}

.drop-zone {
    grid-column: 1 / -1;
    border: 2px dashed #FFD700;
    border-radius: 5px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.drop-zone:hover, .drop-zone.dragover {
    background-color: rgba(255, 215, 0, 0.1);
}

.preview-section, .result-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

#previewImage {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 5px;
}

.compression-controls {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input[type="range"] {
    width: 100%;
}

button {
    background-color: #FFD700;
    color: black;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #FFC700;
}

footer {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 1rem;
}

#qualityWarning {
    color: red;
    font-weight: bold;
}

@media (max-width: 768px) {
    .compressor-box {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .preview-section, .result-section {
        padding: 1rem 0;
    }

    .intro-text h1 {
        font-size: 2rem;
    }

    .intro-text p {
        font-size: 1rem;
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.mascot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 2rem;
    animation: bounce 2s ease infinite;
}

