/* General reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 95vh;
  background: url('images/kamala.webp') no-repeat center center fixed;
  background-size: cover;
  font-family: Arial, sans-serif;
  flex-direction: column;
  padding: 20px 0;
}

.arrow-icon {
  width: 25px;
  height: 25px;
  display: inline-block;
  margin-left: 5px;
  vertical-align: middle;
}

.title {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 10px;
}

.game-title {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 10px;
  font-size: 60px;
  color: white;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.game-container {
  position: relative;
  width: 1344px;
  height: 422px;
  border: 6px solid #000;
  overflow: hidden;
  background: url('images/whitehouse.webp') no-repeat center center;
  background-size: cover;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
}

.kamala {
  width: 100px;
  height: 150px;
  background: url('images/kamala.png') no-repeat center center;
  background-size: contain;
  position: absolute;
  bottom: 0;
  left: 50px;
  transform: translateX(-50%);
}

.trump-supporters {
  height: 130px;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
  position: absolute;
  bottom: 0;
}

.votes {
  width: 50px;
  height: 30px;
  background: url('images/vote.png') no-repeat center center;
  background-size: contain;
  position: absolute;
}

/* Box Containers */
.box-container {
  width: 800px;
  padding: 20px;
  margin: 10px;
  border: 3px solid #fff;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  color: #fff;
}

.instructions-box {
  font-size: 20px;
  line-height: 1.5;
}

.score-box {
  font-size: 30px;
}

/* Button images */
.start-image, .game-over {
  display: block;
  width: 400px;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.coupon-image {
  display: none;
  width: 1100px;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Hover animations */
.start-image:hover, .game-over:hover {
  transform: translate(-50%, -50%) scale(1.1);
  transition: transform 0.2s ease-in-out;
}

@media (max-width: 1400px) {
  .game-container {
    width: 95%;
    height: 0;
    padding-bottom: 29.8%; /* Maintains aspect ratio */
  }

  .kamala, .trump-supporters, .votes {
    background-size: contain;
  }
}

@media (max-width: 840px) {
  .box-container {
    width: 95%;
    max-width: 800px;
  }
}

@media (max-width: 768px) {
  body {
    height: auto;
  }

  .title, .game-title {
    width: 90%;
    max-width: 500px;
  }

  .game-title {
    font-size: 30px;
    margin-bottom: 15px;
  }

  .game-container {
    width: 95%;
    height: 0;
    padding-bottom: 56.25%; /* This creates a 16:9 aspect ratio, making it taller */
    max-height: none; /* Remove any max-height restriction */
  }

  .kamala {
    width: 7.5%;
    height: 26.6%; /* Adjusted to maintain proportions in taller container */
    min-width: 40px;
    min-height: 60px;
  }

  .trump-supporters {
    height: 23.1%; /* Adjusted to maintain proportions in taller container */
    min-height: 52px;
  }

  .votes {
    width: 3.7%;
    height: 5.3%; /* Adjusted to maintain proportions in taller container */
    min-width: 20px;
    min-height: 12px;
  }

  .instructions-box {
    font-size: 16px;
  }

  .score-box {
    font-size: 24px;
  }

  .start-image, .game-over {
    width: 80%;
    max-width: 300px;
  }

  .coupon-image {
    width: 90%;
    max-width: 500px;
  }

  .arrow-icon {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .game-title {
    font-size: 24px;
  }

  .instructions-box {
    font-size: 14px;
  }

  .score-box {
    font-size: 20px;
  }

  .arrow-icon {
    width: 15px;
    height: 15px;
  }
}