:root {
  --fill-duration: 10s; /* Match this with JS */
  --beer-color: #f39c12;
}

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

body {
    font-family: "Arial", sans-serif;
    background-color: black;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.left-background {
    background: url(kippis.png) no-repeat;
    background-size: contain;
    position: absolute;
    top: 20px;
    left: 20px;
    width: 400px;
    height: 400px;
}

.right-background {
    background: url(oslo-madrid.png) no-repeat;
    background-size: contain;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 400px;
    height: 400px;
}

.middle-background {
    margin: 0 auto;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 800px;
    padding: 20px;
}

.title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.title {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-align: center;
}


/* Countdown Timer */
.countdown-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.countdown {
    font-size: 6rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    font-variant-numeric: tabular-nums;
}

.timer-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Beer Glass Section */
:root {
  --fill-duration: 10s; /* Match this with JS */
  --beer-color: #f39c12;
}

.beer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 50px;
}

.glass {
  width: 100px;
  height: 150px;
  border: 4px solid #bdc3c7;
  border-top: 0;
  border-radius: 0 0 15px 15px;
  position: relative;
  overflow: hidden;
  background-color: #ecf0f1;
}

.beer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0; /* Starts empty */
  background-color: var(--beer-color);
  animation: fillBeer var(--fill-duration) linear forwards;
}

/* Bubbles on top */
.bubbles {
  position: absolute;
  top: -10px;
  width: 100%;
  height: 20px;
  background-color: #fff;
  border-radius: 50%;
  filter: blur(2px);
}

@keyframes fillBeer {
  0% { height: 0%; }
  100% { height: 100%; }
}

.timer {
  font-family: Arial, sans-serif;
  font-size: 24px;
  margin-top: 20px;
  font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .countdown {
        font-size: 4rem;
    }

    .pizza-wheel {
        width: 100px;
        height: 100px;
    }

    .glass-wrapper {
        width: 80px;
        height: 160px;
    }

    .liquid {
        width: 64px;
    }
}

/* Animation for empty state */
@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}
