@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

:root {
    --bg-dark: #050505;
    --amber: #ffb100;
    --amber-glow: rgba(255, 177, 0, 0.4);
    --metal-dark: #1a1a1a;
    --metal-light: #2a2a2a;
    --fade-width: 20px;
}

body {
    background: var(--bg-dark) url('../img/bg.png') no-repeat center center fixed;
    background-size: cover;
    color: var(--amber);
    font-family: 'Share Tech Mono', monospace;
    margin: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-shadow: 0 0 10px var(--amber-glow);
}

.booth-container {
    position: relative;
    height: 100vh;
    aspect-ratio: 1080 / 1080;
    background: url('../img/dialpad.png') no-repeat center center;
    background-size: contain;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;


    mask-image: linear-gradient(to right,
            transparent 0%,
            black var(--fade-width),
            black calc(100% - var(--fade-width)),
            transparent 100%);

    -webkit-mask-image: linear-gradient(to right,
            transparent 0%,
            black var(--fade-width),
            black calc(100% - var(--fade-width)),
            transparent 100%);
    transition: background 0.3s ease;
}

.booth-container.off-hook {
    background-image: url('../img/dialpad_off.png');
}

.display-panel {
    position: absolute;
    top: 14.8%;
    left: 39.8%;
    width: 20.5%;
    height: 8.3%;
    background: #050505;
    border: 1px solid #333;
    box-shadow: inset 0 0 10px rgba(255, 177, 0, 0.1), 0 0 5px rgba(255, 177, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.8rem, 2vh, 1.5rem);
    letter-spacing: 2px;
    color: var(--amber);
    z-index: 5;
    overflow: hidden;
}

.dial-pad {
    position: absolute;
    top: 31%;
    left: 36%;
    width: 30%;
    height: 40%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 5% 5%;
    z-index: 5;
}

.dial-btn {
    width: 100%;
    height: 100%;
    background: rgba(255, 177, 0, 0.01);
    border: 1px solid rgba(255, 177, 0, 0);
    border-radius: 10%;
    cursor: pointer;
    transition: all 0.1s ease;
}

.dial-btn:hover {
    background: rgba(255, 177, 0, 0.05);
    border: 1px solid rgba(255, 177, 0, 0.2);
}

.dial-btn:active {
    background: rgba(255, 177, 0, 0.1);
    box-shadow: 0 0 10px var(--amber-glow);
}

.dial-btn::after {
    content: "";
    /* Remove text, use image */
}

.dial-btn:hover {
    background: rgba(255, 177, 0, 0.05);
    border-color: rgba(255, 177, 0, 0.2);
}

.dial-btn:active {
    background: rgba(255, 177, 0, 0.15);
    box-shadow: 0 0 15px var(--amber-glow);
    transform: scale(0.95);
    border-color: var(--amber);
}

.dial-btn:active::after {
    color: var(--amber);
}

.controls {
    position: absolute;
    bottom: 50px;
    display: flex;
    gap: 20px;
}

.action-btn {
    padding: 10px 20px;
    background: #111;
    border: 1px solid var(--amber);
    color: var(--amber);
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--amber);
    color: #000;
}

.captions-panel {
    position: absolute;
    bottom: 12%;
    width: 50%;
    min-height: 50px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 177, 0, 0.3);
    border-left: 5px solid var(--amber);
    padding: 15px 25px;
    font-size: 1.1rem;
    color: var(--amber);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: pre-wrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.captions-panel.visible {
    opacity: 1;
}

/* Flicker Animation */
@keyframes flicker {
    0% {
        opacity: 0.97;
    }

    5% {
        opacity: 0.95;
    }

    10% {
        opacity: 0.9;
    }

    15% {
        opacity: 0.95;
    }

    20% {
        opacity: 0.98;
    }

    25% {
        opacity: 0.95;
    }

    100% {
        opacity: 1;
    }
}

.flicker {
    animation: flicker 0.1s infinite;
}