/* Basis-Struktur */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto Mono', monospace;
    background-color: #f2f2f2;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
}

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

h1 {
    font-size: 1.8em;
    margin-bottom: 20px;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 300px;
    width: 100%;
    margin-bottom: 50px;
}

input[type=time], button {
    font-size: 1.2em;
    padding: 15px;
    width: 100%;
    border: none;
    border-radius: 15px;
    outline: none;
    text-align: center;
    transition: all 0.3s;
}

input[type=time] {
    background-color: #fff;
    color: #333;
    border: 2px solid #8a2be2;
}

button {
    background-color: #8a2be2;
    color: #fff;
    cursor: pointer;
}

button:disabled {
    background-color: #b19cd9;
    cursor: not-allowed;
}

button:hover:not(:disabled) {
    background-color: #b19cd9;
}

#countdown {
font-size: 5em;
color: #8a2be2;
font-weight: bold;
text-align: center;
}

#current-time {
font-size: 1.5em;
margin-top: 10px;
color: #555;
text-align: center;
}

/* Dark Mode */
.dark-mode, html.dark-mode {
    background-color: #1e1e1e !important;
    color: #f2f2f2;
}

.dark-mode input[type=time] {
    background-color: #333;
    color: #f2f2f2;
    border-color: #8a2be2;
}

.dark-mode button {
    background-color: #8a2be2;
    color: #f2f2f2;
}

.dark-mode button:hover:not(:disabled) {
    background-color: #b19cd9;
}

/* Darkmode Toggle Button */
.toggle-darkmode {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    border: none;
    outline: none;
    transition: background-color 0.3s, color 0.3s;
    cursor: pointer;
}

.toggle-darkmode:hover {
    background-color: #b19cd9;
}

.dark-mode .toggle-darkmode {
    background-color: #f2f2f2;
    color: #333;
}
