* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Special Elite', monospace;
    background-color: #b1ac9f;
    color: #2E2C2F;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: #FDF6E3;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.04);
    padding: 40px;
    max-width: 600px;
    width: 100%;
}

header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px dashed rgba(0, 0, 0, 0.2);
    padding-bottom: 20px;
}

.modeSelector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 25px;
}

.modeBtn {
    padding: 10px 16px;
    background: #EDE7D8;
    color: #2E2C2F;
    border: 1px dashed rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    font-family: 'Special Elite', monospace;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.modeBtn:hover {
    background: #E7A877;
}

.modeBtn.active {
    background: #E7A877;
    color: #FDF6E3;
}

h1 {
    font-size: 36px;
    color: #2E2C2F;
    font-weight: bold;
    letter-spacing: 1px;
}

.inputArea {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
    background: #EDE7D8;
    padding: 25px;
    border-radius: 6px;
    border: 1px dashed rgba(0, 0, 0, 0.3);
}

.inputArea h3 {
    font-size: 16px;
    color: #E7A877;
    font-weight: bold;
    text-align: center;
    letter-spacing: 1px;
}

.input-group {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-wrapper label {
    font-size: 12px;
    color: #2E2C2F;
    font-weight: bold;
    text-align: center;
}

#hoursInput,
#minutesInput,
#secondsInput {
    padding: 8px 10px;
    border: 1px dashed rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    background: #FDF6E3;
    font-family: 'Special Elite', monospace;
    font-size: 14px;
    color: #2E2C2F;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-align: center;
}

#hoursInput:focus,
#minutesInput:focus,
#secondsInput:focus {
    outline: none;
    border-color: #E7A877;
    box-shadow: 0 0 0 3px rgba(231, 168, 119, 0.2);
}

#hoursInput::placeholder,
#minutesInput::placeholder,
#secondsInput::placeholder {
    color: rgba(46, 44, 47, 0.5);
}

#Start {
    padding: 12px 24px;
    background: #E7A877;
    color: #2E2C2F;
    border: 1px dashed rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    font-family: 'Special Elite', monospace;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

#Start:hover {
    background: #2E2C2F;
    color: #FDF6E3;
    transform: translateY(-2px);
}

#Start:active {
    background: #A3B18A;
    transform: scale(0.98);
}

#timerArea {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.timer {
    background: #EDE7D8;
    border: 2px dashed rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s;
}

.time {
    color: #E7A877;
    font-size: 60px;
    font-weight: bold;
    letter-spacing: 1px;
    line-height: 1;
    font-family: 'Courier New', monospace;
}

.time.timeout {
    color: #A3B18A;
}

.timer.active {
    border-color: #E7A877;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.08), 0 0 0 3px rgba(231, 168, 119, 0.2);
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #FDF6E3;
    padding: 40px;
    border-radius: 6px;
    border: 2px dashed rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content h2 {
    font-size: 28px;
    color: #E7A877;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.modal-content p {
    font-size: 16px;
    color: #2E2C2F;
    margin-bottom: 30px;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.stopBtn {
    padding: 12px 24px;
    background: #E7A877;
    color: #2E2C2F;
    border: 1px dashed rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    font-family: 'Special Elite', monospace;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.stopBtn:hover {
    background: #2E2C2F;
    color: #FDF6E3;
    transform: translateY(-2px);
}

.stopBtn:active {
    transform: scale(0.98);
}

@media (max-width: 600px) {
    .container {
        padding: 25px;
    }
    h1 {
        font-size: 28px;
    }
    .input-group {
        grid-template-columns: 1fr;
    }
    .timer {
        padding: 40px 50px;
    }
    .time {
        font-size: 48px;
    }
    .modal-content {
        max-width: 90%;
        padding: 30px;
    }
}