body,
html {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  text-align: center;
  background-image: url("img/background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

h1 {
  letter-spacing: 1px;
  color: #ffff00;
  font-family: "Valorant Font", sans-serif;
  font-weight: 800;
  font-size: 48px;
  text-shadow: 1px 1px 10px #ff0000;
  z-index: 10;
}

.rivera {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  left: 0;
  right: 0;
  bottom: 0;
  top: -30%;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 1);
  color: transparent;
  font-family: "Valorant Font", sans-serif;
  text-shadow: -2px -2px 100px rgba(255, 0, 0, 0.25);
  font-size: 15vw;
  pointer-events: none;
}

.scoreboard {
  backdrop-filter: blur(3px);
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.overtop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.score-container {
  display: flex;
  justify-content: space-around;
  margin-top: 30px;
  flex-direction: column;
  z-index: 20;
  margin: 0;
}

.above-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  margin: 0 150px;
}

.input-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  gap: 20px;
}

#turns-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 50px;
  margin: 0 90px;
  padding: 60px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  box-sizing: border-box;
}

.card {
  background: linear-gradient(135deg, #010112 80%, #700909 120%);
  border-radius: 24px;
  padding: 32px 5px;
  min-width: 200px;
  max-width: 300px;
  position: relative;
  color: #fff;
}

.card.red {
  border: 2px solid #ff0033;
  box-shadow: 0 0 20px #ff0033;
}

.card.red::before {
  box-shadow: 0 0 40px 10px #ff0033;
}

.card.blue {
  border: 2px solid #00bfff;
  box-shadow: 0 0 20px #00bfff;
}

.card.blue::before {
  box-shadow: 0 0 40px 10px #00bfff;
}

.card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.turn-each {
  display: flex;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.turn-each h2 {
  font-size: 2.2em;
  color: #fff;
  letter-spacing: 2px;
  margin: 0 0 4px 0;
  font-weight: 900;
}

.turn-number {
  font-size: 2.5em;
  color: #fff;
  font-weight: bold;
}

.turn-team {
  font-size: 2em;
  margin: 12px 0 8px 0;
  letter-spacing: 1.5px;
  font-weight: 700;
  width: 100%;
  text-align: center;
  text-transform: uppercase;
}

.turn-team.red {
  color: #ff0033;
  text-shadow: 0 0 10px #ff0033, 0 0 2px #fff;
}

.turn-team.blue {
  color: #00bfff;
  text-shadow: 0 0 10px #00bfff, 0 0 2px #fff;
}

.turn-clock {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.turn-time {
  font-family: "Valorant Font", sans-serif;
  font-size: 2.5em;
  font-weight: bold;
}

.turn-clock p {
  font-family: "Poppins", sans-serif;
  font-size: 1.5em;
  color: #fff;
  margin: 0;
  letter-spacing: 1px;
}

button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  font-size: 1.5em;
  font-family: "Poppins", sans-serif;
  color: #fff;
  background: #181c20;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

button.team-button {
  width: 150px;
  height: 60px;
  border: none;
  border-radius: 35px;
}

button.control-button {
  aspect-ratio: 1/1;
  border: none;
  border-radius: 50%;
  min-width: 48px;
  min-height: 48px;
}

button.stop {
  background: #ff0033;
  border: 2px solid #ff0033;
  color: #fff;
  box-shadow: 0 0 18px #ff0033, 0 0 2px #ff0033 inset;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
}

button.stop:hover,
button.stop:focus,
button.stop.active {
  background: #fff;
  color: #ff0033;
  border-color: #ff0033;
  box-shadow: 0 0 32px #ff0033, 0 0 8px #ff0033 inset;
  outline: none;
}

button.mulai {
  background: #00bfff;
  border: 2px solid #00bfff;
  color: #fff;
  box-shadow: 0 0 18px #00bfff, 0 0 2px #00bfff inset;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
}

button.mulai:hover,
button.mulai:focus,
button.mulai.active {
  background: #fff;
  color: #00bfff;
  border-color: #00bfff;
  box-shadow: 0 0 32px #00bfff, 0 0 8px #00bfff inset;
  outline: none;
}

button.stop.inactive,
button.mulai.inactive {
  opacity: 0.9;
  filter: grayscale(10%) brightness(0.7);
  box-shadow: none;
  transition: opacity 0.2s, filter 0.2s, box-shadow 0.2s;
}

button.red {
  background: #ff0033;
  border: 2px solid #ff0033;
  color: #fff;
  box-shadow: 0 0 18px #ff0033, 0 0 2px #ff0033 inset;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
}

button.red:hover,
button.red:focus,
button.red.active {
  background: #fff;
  color: #ff0033;
  border-color: #ff0033;
  box-shadow: 0 0 32px #ff0033, 0 0 8px #ff0033 inset;
  outline: none;
}

button.blue {
  background: #00bfff;
  border: 2px solid #00bfff;
  color: #fff;
  box-shadow: 0 0 18px #00bfff, 0 0 2px #00bfff inset;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
}

button.blue:hover,
button.blue:focus,
button.blue.active {
  background: #fff;
  color: #00bfff;
  border-color: #00bfff;
  box-shadow: 0 0 32px #00bfff, 0 0 8px #00bfff inset;
  outline: none;
}

button.red.inactive,
button.blue.inactive {
  opacity: 0.9;
  filter: grayscale(10%) brightness(0.7);
  box-shadow: none;
  transition: opacity 0.2s, filter 0.2s, box-shadow 0.2s;
}

.modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-content {
  background: #fff;
  padding: 20px;
  border: none;
  border-radius: 10px;
  text-align: center;
}

.keypad button {
  width: 70px;
  height: 70px;
  margin: 10px;
  border: none;
  border-radius: 15px;
  font-size: 1.5em;
}

.keypad .control-row {
  display: flex;
  width: 100%;
  gap: 10px;
  margin-top: 10px;
}

.keypad button.control-input {
  flex: 1 1 0;
  width: auto;
  height: 70px;
  font-size: 1.5em;
  border-radius: 15px;
}

.detik-display {
  font-family: "Valorant Font", sans-serif;
  width: 250px;
  height: 100px;
  backdrop-filter: blur(3px) brightness(2);
  border-left: 5px solid #fff;
  border-right: 5px solid #fff;
  font-size: 3em;
  color: #fff;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
}

.black {
  color: black;
  background-color: #fff;
  width: 100%;
}

.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

@font-face {
  font-family: "Valorant Font";
  src: url("fonts/Valorant Font.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@media (max-width: 900px) and (orientation: landscape) {
  body,
  .scoreboard {
    width: 100vw;
    height: 100vh;
    margin: 0;
    gap: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    font-size: 12px;
  }

  .score-container {
    width: 100%;
    flex-direction: column;
    /* align-items: center; */
    justify-content: space-around;
  }

  h1 {
    font-size: 36px;
  }

  .above-row,
  .input-container,
  .controls {
    margin: 0 20px;
    gap: 10px;
    flex-wrap: wrap;
  }

  button {
    font-size: 1.2em;
    position: relative;
    overflow: hidden;
  }

  button.team-button {
    width: 70px;
    height: 30px;
  }

  button.control-button {
    width: 24px;
    height: 24px;
  }

  #turns-container {
    gap: 20px;
    margin: 15px 0;
    padding: 20px 30px;
    max-width: 100vw;
    overflow-x: auto;
    box-sizing: border-box;
  }

  .card {
    margin: 0;
    min-width: 140px;
    max-width: 180px;
    padding: 16px 4px;
    font-size: 0.9em;
  }

  .card-content {
    padding: 0;
  }

  .turn-each h2,
  .turn-number,
  .turn-team,
  .turn-time {
    font-size: 1.2em !important;
  }

  .detik-display {
    width: 120px;
    height: 50px;
    font-size: 1.5em;
    padding: 0;
  }

  .keypad button,
  .keypad button.control-input {
    width: 40px;
    height: 40px;
    font-size: 1em;
    margin: 4px;
    border-radius: 10px;
  }

  .modal-content {
    width: 60vw;
    padding: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 24px;
  }

  .keypad {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .detik-display {
    width: 120px;
    height: 50px;
    font-size: 1.5em;
    padding: 0;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    align-self: center;
  }

  .black {
    font-size: 5em;
    padding: 10px;
    border-radius: 10px;
    margin-top: 10px;
  }

  .turn-clock p {
    font-size: 1.2em;
  }
}

button.fullscreen {
  position: fixed;
  top: 50px;
  right: 50px;
  padding: 10px 20px;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 100;
}

:fullscreen button.fullscreen {
  display: none;
}
