@font-face {
    font-family: 'Gt Alpina';
    src: url('fonts/GT-Alpina-Fine-Standard-Light-Italic-Trial.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
  }

  :root {
    --dark: #7a271e;
    --light: #f4b4ac;
    --light-opac: hsla(50, 19%, 94%, 0.150);
  }
  

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@keyframes grain {
    0%, 100% { background-position: 0% 0%; }
    20% { background-position: 50% 50%; }
    40% { background-position: 25% 25%; }
    60% { background-position: 75% 75%; }
    80% { background-position: 0% 100%; }
}

.grain {
    position: fixed;
    height: 100vh;
    width: 100vw;
    pointer-events: none;
    background-image: url(noise-256w.png);
    mix-blend-mode: soft-light;
    opacity: 0.7;
    animation: grain 0.4s steps(1) infinite;
    z-index: 100;
}

body {
    font-family: "neue-haas-unica", sans-serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.5;
    color: var(--light);
    background-color: var(--dark);
}

h1 {
    font-family: 'Gt Alpina';
    letter-spacing: 1.2px;
    font-size: 40px;
}

h3 {
    font-family: 'Gt Alpina';
    font-size: 24px;
}

/* Container and Card */
.container {
    min-height: 100vh;
    background-color: var(--dark);
    padding: 32px;
    display: flex;
    justify-content: center;
    align-items: start;
    
}

#time {
    text-align: center;
}

.card {
    background: var(--dark);
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
    border: 1px solid var(--light);
}

.card-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--light);
    background-color: var(--light);
    color: var(--dark);
}

.card-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
}

.card-content {
    padding: 32px;
}

/* Input Grid */
.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
}



.input-group label {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 0.25rem;
}

.form-input {
    padding: 0.5rem;
    border: 1px solid var(--light);
    width: 100%;
    font-size: 18px;
}

.form-input:focus {
    outline: none;
    border-color: var(--light);
}

/* Timer Display */
.timer-display {
    text-align: center;
    margin-bottom: 1.5rem;
}

.timer-text {
    font-family: "Courier Prime", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 48px;
    margin-bottom: 0.5rem;
}

.step-name {
    font-family: 'neue-haas-unica';
    font-weight: 400;
    font-style: normal;
    font-size: 24px;
    margin-bottom: 0.5rem;
}

.step-description {
    font-size: 18px;
    color: var(--light);
    margin-bottom: 1rem;
}

input {
    color: var(--light);
    background-color: var(--dark);
}

/* Controls */
.controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.button-container {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-weight: 500;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    gap: 8px;
    background-color: var(--dark);
    color: var(--light);
}

.btn.primary {
    background-color: var(--dark);
    color: var(--light);
}

.btn:hover {
    background-color: var(--light-opac);
}


.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border: hidden;
}


.icon {
    width: 18px;
    height: 18px;
}

/* Progress Steps */
.progress-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}

.progress-step {
    height: 4px;
    background-color: var(--dark);
}

.progress-step.completed {
    background-color: var(--light);
}

.progress-step.current {
    background-color: var(--light);
}

/* Switch/Toggle */
.vibe-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.switch-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.switch-container span {
    font-size: 18px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 3rem;
    height: 1.5rem;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--light-opac);
    transition: 0.4s;
    border-radius: 1.5rem;
}

.slider:before {
    position: absolute;
    content: "";
    height: 1.25rem;
    width: 1.25rem;
    left: 0.125rem;
    bottom: 0.125rem;
    background-color: var(--dark);
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--light);
}

input:checked + .slider:before {
    transform: translateX(1.5rem);
}

/* Alert */
.alert {
    font-family: "neue-haas-unica", sans-serif;
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: var(--dark);
    color: var(--light);
    border: 1px solid var(--light);
}

/* Utility Classes */
.hidden {
    display: none;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .card {
        margin: 0;
    }
    
    .timer-text {
        font-size: 3rem;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .button-container {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}