:root {
    --primary: #00C853;
    --primary-dark: #00C853;
    --primary-light: #B9F6CA;
    --accent: #00E676;
    --text-primary: rgba(255, 255, 255, 0.87);
    --text-secondary: rgba(255, 255, 255, 0.6);
    --background: #121212;
    --surface: #1E1E1E;
    --error: #CF6679;
    --elevation-1: 0 2px 1px -1px rgba(0,0,0,0.2), 0 1px 1px 0 rgba(0,0,0,0.14), 0 1px 3px 0 rgba(0,0,0,0.12);
    --elevation-2: 0 3px 3px -2px rgba(0,0,0,0.2), 0 3px 4px 0 rgba(0,0,0,0.14), 0 1px 8px 0 rgba(0,0,0,0.12);
    --elevation-3: 0 3px 5px -1px rgba(0,0,0,0.2), 0 6px 10px 0 rgba(0,0,0,0.14), 0 1px 18px 0 rgba(0,0,0,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background: var(--background);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.container {
    text-align: center;
    padding: 2rem;
    background: var(--surface);
    border-radius: 4px;
    width: 100%;
    max-width: 100%;
    margin: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}
.setup-area-description  h2
{
margin-bottom: 15px;
}
.setup-area-description  p
{
margin-bottom: 15px;
line-height: 1.5;
}


h1 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 400;
    position: relative;
    padding-bottom: 1rem;
    transition: all 0.3s ease;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    right: 25%;
    height: 2px;
    background: var(--primary-light);
}

.timer-input {
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.input-group input {
    width: 80px;
    height: 56px;
    font-size: 1.5rem;
    text-align: center;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s;
}

.input-group input:focus {
    border-color: var(--primary);
}

.input-group span {
    font-size: 2rem;
    color: var(--primary);
}

.flip-clock {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 2rem 0;
    transition: all 0.3s ease;
}

.flip-card {
    position: relative;
    width: 100px;
    height: 120px;
    perspective: 1000px;
    background: var(--surface);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    font-weight: 400;
    background: var(--surface);
    border-radius: 4px;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.flip-card-back {
    transform: rotateX(180deg);
}

.top,
.bottom {
    position: absolute;
    width: 100%;
    height: 50%;
    overflow: hidden;
    background: var(--surface);
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    font-weight: 400;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.top {
    top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bottom {
    bottom: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.separator {
    font-size: 3rem;
    color: var(--primary);
    margin: 0 0.5rem;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding-top: 2rem;
}

.btn {
    padding: 0 1.5rem;
    height: 36px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--primary);
    border-radius: 4px;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.0892857143em;
}

.btn:hover:not(:disabled) {
    background: rgba(0, 230, 118, 0.1);
}

.btn:active:not(:disabled) {
    background: rgba(0, 230, 118, 0.2);
}

.btn:disabled {
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.38);
    cursor: not-allowed;
}

/* Countdown active state */
body.countdown-active {
    background: var(--background);
}

body.countdown-active .container {
    background: var(--surface);
    border: 1px solid var(--primary);
    max-width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 0;
}

body.countdown-active .flip-clock {
    transform: scale(2);
    margin: 0;
    padding: 0;
}

body.countdown-active .flip-card {
    width: 150px;
    height: 180px;
    border: 1px solid var(--primary);
}

body.countdown-active .flip-card-front,
body.countdown-active .flip-card-back,
body.countdown-active .top,
body.countdown-active .bottom {
    font-size: 4.5rem;
    border: 1px solid var(--primary);
    /* border: 1px solid rgba(255, 255, 255, 0.1); */
    color: var(--primary);
    /* background-color: #fff; */
    /* color: #fff; */
}

body.countdown-active .separator {
    font-size: 4.5rem;
    color: var(--primary);
}

.control-buttons {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.control-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border: 1px solid var(--primary);
    border-radius: 4px;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.control-btn:hover {
    background: rgba(0, 230, 118, 0.1);
}

.control-btn:active {
    background: rgba(0, 230, 118, 0.2);
}

.pause-btn {
    border-color: #FFC107;
    color: #FFC107;
}

.pause-btn:hover {
    background: rgba(255, 193, 7, 0.1);
}

.pause-btn:active {
    background: rgba(255, 193, 7, 0.2);
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
        margin: 0.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    .flip-card {
        width: 70px;
        height: 90px;
    }

    .flip-card-front,
    .flip-card-back,
    .top,
    .bottom {
        font-size: 2rem;
    }

    .input-group input {
        width: 60px;
        height: 48px;
        font-size: 1.2rem;
    }

    .btn {
        padding: 0 1rem;
        height: 32px;
        font-size: 0.75rem;
    }

    body.countdown-active .flip-clock {
        transform: scale(0.5);
    }

    body.countdown-active .flip-card {
        width: 100px;
        height: 120px;
    }

    body.countdown-active .flip-card-front,
    body.countdown-active .flip-card-back,
    body.countdown-active .top,
    body.countdown-active .bottom {
        font-size: 3rem;
    }

    body.countdown-active .separator {
        font-size: 3rem;
    }
} 