/* Base Styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
}

header {
  background-color: rgb(14, 1, 46);
  color: azure;
  text-align: center;
  padding: 20px 0;
}

header p {
  font-size: 2.5rem;
  margin: 0;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

/* Images Section */
#images {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 150px; /* Fixed height to prevent shifting */
}

.images {
  border-radius: 50%;
  margin: 0 15px;
  cursor: pointer;
  max-width: 150px;
  height: auto;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.images:hover {
  transform: scale(1.1);
  border: 5px solid #030303;
}

/* Scores Section */
#counts {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.c {
  text-align: center;
  margin: 0 30px;
}

/* Result Box */
#result {
  background-color: rgb(20, 20, 20);
  color: white;
  font-size: 1.5rem;
  border-radius: 30px;
  padding: 10px 20px;
  text-align: center;
  min-width: 200px;
  max-width: 90%;
  word-wrap: break-word;
  transition: all 0.3s ease;
}

/* Footer */
footer {
  background-color: rgb(56, 56, 84);
  color: azure;
  text-align: center;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* Medium Devices (≤768px) */
@media (max-width: 768px) {
  header p {
    font-size: 2rem;
  }

  #images {
    height: 150px; /* Fixed height for medium devices */
  }

  .images {
    max-width: 120px;
    margin: 0 10px;
  }

  #counts {
    flex-direction: column;
  }

  .c {
    margin: 10px 0;
  }

  #result {
    font-size: 1.3rem;
  }

  footer {
    font-size: 0.9rem;
  }
}

/* Small Devices (≤480px) */
@media (max-width: 480px) {
  header p {
    font-size: 1.5rem;
  }

  #images {
    height: 150px; /* Fixed height for small devices */
  }

  .images {
    max-width: 90px;
    margin: 0 8px;
  }

  #counts {
    flex-direction: column;
  }

  .c {
    margin: 8px 0;
  }

  #result {
    font-size: 1.1rem;
  }

  footer {
    font-size: 0.8rem;
  }
}
/* Extra Small Devices (≤330px) */
@media (max-width: 330px) {
  header p {
    font-size: 1.3rem; /* Smaller header font */
  }

  #images {
    height: 120px; /* Slightly smaller height for images */
  }

  .images {
    max-width: 70px; /* Smaller images */
    margin: 0 5px; /* Less spacing */
  }

  #counts {
    flex-direction: column;
  }

  .c {
    margin: 5px 0;
  }

  #result {
    font-size: 1rem; /* Adjust result font size */
    padding: 8px 15px;
  }

  footer {
    font-size: 0.7rem; /* Smaller footer font */
  }
}
