body {
    font-family: Arial, sans-serif;
    background-color: #1b1f23;
    color: #e0e0e0;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    box-sizing: border-box;
    overflow-y: auto;
}

#calcForm {
    background: #2b2f34;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    max-width: 90%;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #4a5c47;
}

/* Adjust the form width for larger screens (desktop) */
@media (min-width: 1024px) {
    #calcForm {
        max-width: 20%; /* Form is narrower on desktop */
    }
}

#calcForm input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #3a3e43;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    background-color: #1f2226;
    color: #e0e0e0;
}

#calcForm button {
    background-color: #4a5c47;
    color: #f4d03f;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
}

#calcForm button:hover {
    background-color: #617a5d;
}

.banner-desktop {
    display: block;
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.banner-mobile {
    display: none;
}

@media (max-width: 600px) {
    #calcForm {
        padding: 15px;
    }

    #calcForm input {
        font-size: 13px;
    }

    #calcForm button {
        font-size: 14px;
        padding: 10px;
    }

    .banner-desktop {
        display: none !important;
    }

    .banner-mobile {
        display: block !important;
        max-width: 100%;
        height: auto;
        margin-bottom: 20px;
    }
}

#result-container {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    width: 100%;
    align-items: center;
}

#result {
    background: #283038;
    padding: 15px;
    border: 1px solid #4a5c47;
    border-radius: 4px;
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
    box-sizing: border-box;
}

#chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
    height: 300px;
}

.gross-total {
    font-size: 18px;
    font-weight: bold;
    color: #f4d03f;
    margin-bottom: 10px;
}

.chart-note {
    font-size: 12px;
    color: #a8b6a1;
    margin-top: 5px;
    text-align: center;
}

.countdown {
    text-align: center;
    width: 100%;
}

.countdown h1 {
    font-size: 24px;
    color: #f4d03f;
    margin-bottom: 20px;
}

.time {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.time div {
    font-size: 20px;
}

.label {
    font-size: 14px;
    color: #f4d03f;
}

.revision-history {
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
    border-collapse: collapse;
    font-size: 12px;
    color: #d1d1d1;
}

.revision-history th,
.revision-history td {
    border: 1px solid #3a3e43;
    padding: 8px;
    text-align: left;
}

.revision-history th {
    background-color: #2b2f34;
    font-weight: bold;
    color: #f4d03f;
}
