body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(225deg, #88f700, #ff04ff);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.container {
    text-align: center;
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 600px;
    animation: fadeIn 2s ease-in-out;
}

h1 {
    margin-bottom: 20px;
    color: #4CAF50;
    font-size: 2.5em;
}

.timeInfo {
    margin-top: 30px;
    font-size: 1.2em;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.timeInfo div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f5f5f5;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#theTime {
    font-size: 3em;
    margin: 20px 0;
    display: block;
    font-weight: bold;
    background: linear-gradient(45deg, #4CAF50, #9C27B0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.time-unit {
    display: inline-block;
    background-color: #f0f0f0;
    padding: 5px 8px;
    border-radius: 8px;
    font-weight: bold;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 25px;
}

.time-label {
    color: #666;
    font-size: 0.8em;
    margin-left: 2px;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.mainButtons {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

button {
    padding: 15px 25px;
    margin: 10px;
    border: none;
    cursor: pointer;
    color: white;
    border-radius: 10px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    animation: pulse 2s infinite;
    flex: 1;
    font-size: 1em;
}

button:disabled {
    opacity: 0.5;
    animation: none;
    cursor: not-allowed;
}

#startTime {
    background-color: #4CAF50;
    animation: float 3s ease-in-out infinite;
}

#stopTime {
    background-color: #9C27B0;
    animation: float 3s ease-in-out infinite;
}

#resetTime {
    background-color: #2196F3;
    animation: float 3s ease-in-out infinite;
}

button:hover:not(:disabled) {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.format-toggle {
    background-color: #ff0077;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    margin-left: 10px;
    cursor: pointer;
    font-weight: bold;
}
.format-toggle:hover {
    background-color: #ff8000;
}