@font-face {
  font-family: aspekta; /* set name */
src: url(fonts/AspektaVF.woff2); /* url of the font */  
}

:root {
  --neutral: #66666E;
  --light: #E6E6E9;
  --dark: #1C1018;
  --black: #000000;
  --dark-trans: rgba(0, 0, 0, 0.2);
  --light-trans: rgba(255, 255, 255, 0.12);
  --light-trans-mid: rgba(255, 255, 255, 0.6);
  --light-trans-light: rgba(255, 255, 255, 0.05);
  --yellow: #C3F73A;
  --dark-yellow: #caec75;
  --yellow-trans: rgba(195,247,58, 0.5);
}

body {
    display: flex;
    justify-content: center;
    margin: 0;
    min-height: 100vh;
    font-family: aspekta;
    color: var(--light);
    background-color: var(--light-trans-mid);
}

h1 {
    font-size: clamp(4rem, 15vw, 10em);
    font-family: "JetBrains Mono", monospace;
    font-variant-numeric: tabular-nums;
    font-weight: 300;
    color: var(--yellow);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 450;
    color: var(--light-trans-mid);
}

button {
    padding: clamp(12px, 2vw, 20px) clamp(16px, 3vw, 28px);
    font-size: clamp(1rem, 2.5vw, 1.75rem);
    margin: 0 clamp(6px, 1vw, 12px);
    border-radius: clamp(12px, 2.5vw, 20px);
    background-color: var(--light-trans-mid);
    box-shadow: inset 0 -4px 8px var(--dark-trans);
    border: inset 1px solid var(--dark-trans);
    color: var(--dark);
    cursor: pointer;
    font-family: "JetBrains Mono", monospace;
    transition: 0.3s;
    transition-timing-function: ease;
}

button:hover {
    background-color: var(--yellow);
}

button:active {
    transform: scale(0.95);
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    position: relative;
}

#panel {
    flex-direction: row;
    margin: 0;
    width: 100%;
    min-height: 100vh;
}

.column {
    display: flex; 
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    min-height: 100vh;
    width: 100%;
    padding: clamp(1rem, 3vw, 2rem) clamp(0.5rem, 2vw, 1rem);
}

#home-section {
    background-color: var(--dark);
    border-right: 1px solid var(--light-trans-light);
}

#guest-section {
    background-color: var(--dark);
    border: 0;
}

.button-row {
    margin: clamp(1.5rem, 4vw, 3.5rem) 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(0.5rem, 2vw, 1rem);
}

.title {
    margin-top: clamp(1.5rem, 4vw, 3rem);
    margin-bottom: clamp(0.5rem, 1.5vw, 1rem);
    display: inline-block;
    padding: clamp(0.5rem, 2vw, 1rem) clamp(0.75rem, 2vw, 1.5rem);
    min-height: clamp(1rem, 2vw, 1.5rem);
    cursor: text;
    outline: none;
    transition: background-color 0.2s ease;
    max-width: 420px;
    width: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: break-all;
    box-sizing: border-box;
}

.title:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.title:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

.title:empty:before {
    content: attr(data-placeholder);
    color: var(--light-trans-mid);
}

.score {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: clamp(200px, 40vw, 320px);
    width: min(90%, 400px);
    max-width: 400px;
    border: 1px solid var(--light-trans);
    margin: clamp(0rem, 1vw, 0.5rem) 0;
    background-color: var(--black);
    border-radius: clamp(20px, 4vw, 32px);
    box-shadow: inset 0 -4px 56px var(--light-trans);
    text-shadow: 0 0 56px var(--yellow-trans);
}

#footer {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    z-index: 99;
    position: absolute;
    height: 100vh;
    width: clamp(150px, 20vw, 200px);
    pointer-events: none;
}

#footer > * {
    pointer-events: auto;
}

#timer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: clamp(1.5rem, 4vw, 3.5rem) 0;
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2.5rem);
    border-radius: clamp(35px, 6vw, 56px);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-family: "JetBrains Mono", monospace;
    font-variant-numeric: tabular-nums;
    background-color: var(--dark);
    color: var(--light);
    border: 1px solid var(--light-trans);
    box-shadow: 0px 4px 24px var(--dark-trans);
}

#minutes, #seconds {
    min-width: clamp(40px, 6vw, 64px);
    display: flex;
    flex-direction: row;
    justify-content: center;
}

#play-btn {
    margin: auto 0 24px 0;
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2rem);
    border-radius: clamp(25px, 4vw, 40px);
    font-family: aspekta;
    font-size: clamp(1rem, 2.5vw, 1.75rem);
    background-color: var(--yellow);
    color: var(--dark);
    border: 1px solid var(--dark-trans);
    transition: 0.3s;
    transition-timing-function: ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: clamp(160px, 28vw, 200px);
}

#play-btn:hover {
    background-color: var(--dark-yellow);
    color: var(--dark);
}

#play-btn:active {
    transform: scale(0.95);
}

#play-icon {
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    display: inline-flex;
    align-items: center;
    line-height: 1;
    vertical-align: middle;
}

#play-text {
    margin-left: clamp(1rem, 2.5vw, 1.25rem);
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

#reset-btn {
    margin: 0 0 clamp(1.5rem, 4vw, 3.5rem) 0;
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2rem);
    border-radius: clamp(25px, 4vw, 40px);
    font-family: aspekta;
    font-size: clamp(1rem, 2.5vw, 1.75rem);
    background-color: var(--black);
    color: var(--light);
    border: 1px solid var(--light-trans);
    transition: 0.3s;
    transition-timing-function: ease;
    width: clamp(160px, 28vw, 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#reset-icon {
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    display: inline-flex;
    align-items: center;
    line-height: 1;
    vertical-align: middle;
}

#reset-text {
    margin-left: clamp(1rem, 2.5vw, 1.25rem);
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

#reset-btn:hover {
    background-color: var(--dark);
}

#reset-btn:active {
    transform: scale(0.95);
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    #panel {
        flex-direction: column;
    }
    
    .column {
        min-height: 50vh;
        padding: clamp(1rem, 4vw, 2rem) clamp(0.5rem, 3vw, 1rem);
    }
    
    #home-section {
        border-right: 0;
        border-bottom: 1px solid var(--light-trans-light);
    }
    
    #footer {
        position: fixed;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: clamp(0.75rem, 3vw, 1.5rem);
        background: linear-gradient(to top, var(--dark) 0%, transparent 100%);
        gap: clamp(1rem, 4vw, 2rem);
    }
    
    #timer {
        margin: 0;
        font-size: clamp(1.25rem, 5vw, 2rem);
        padding: clamp(0.5rem, 2vw, 0.75rem) clamp(1rem, 3vw, 1.5rem);
    }
    
    #play-btn {
        margin: 0;
        padding: clamp(0.5rem, 2vw, 0.75rem) clamp(1rem, 3vw, 1.5rem);
        font-size: clamp(0.875rem, 3vw, 1.25rem);
    }
    
    #reset-btn {
        margin: 0;
        padding: clamp(0.5rem, 2vw, 0.75rem) clamp(1rem, 3vw, 1.5rem);
        font-size: clamp(0.875rem, 3vw, 1.25rem);
    }
    
    .button-row {
        flex-direction: row;
        width: 100%;
        max-width: 100%;
    }
    
    button {
        flex: 1;
        min-width: 80px;
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: clamp(3rem, 20vw, 6rem);
    }
    
    .score {
        min-height: clamp(150px, 50vw, 250px);
        width: min(95%, 350px);
    }
    
    .button-row {
        gap: clamp(0.25rem, 2vw, 0.5rem);
    }
    
    button {
        padding: clamp(10px, 3vw, 16px) clamp(12px, 4vw, 20px);
        font-size: clamp(0.875rem, 4vw, 1.25rem);
        margin: 0;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .score {
        width: min(85%, 350px);
        min-height: clamp(250px, 35vw, 300px);
    }
    
    #footer {
        width: clamp(180px, 18vw, 200px);
    }
}

@media (orientation: landscape) and (max-height: 600px) {
    .column {
        min-height: 100vh;
        padding: clamp(0.5rem, 2vw, 1rem) clamp(0.5rem, 2vw, 1rem);
    }
    
    .title {
        margin: clamp(0.5rem, 2vw, 1rem) 0;
    }
    
    .score {
        min-height: clamp(120px, 30vh, 200px);
        margin: clamp(0.5rem, 2vw, 1rem) 0;
    }
    
    .button-row {
        margin: clamp(0.5rem, 2vw, 1rem) 0;
    }
    
    h1 {
        font-size: clamp(3rem, 12vh, 6rem);
    }
}