* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Noto Sans';
}

body {
  min-height: 100vh;
}

h1, h4 {
  text-align: center;
}

h1 {
  color: #41416A;
}

/* Main display */
.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-height: 100%;
  max-width: 100%;
  margin: 20px 20px;
  padding: 0px 0px 20px 0px;
  box-sizing: border-box;
}

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

.home-mini {
  max-height: 60px;
  padding-left: 10px;
  padding-right: 15px;
}

.home-background {
  max-height: 100%; 
  max-width: 20%;
  padding: 20px 0px 20px 0px;
}

.progress-button {
  padding: 10px 20px 10px 20px;
  margin: 10px 20px 10px 20px;
  font-size: large;
  color: #FFFFFF;
  background-color: #41416A;
  border: 2px solid #41416A;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 5px rgba(65, 65, 106, 0.5); /* Ring border effect */
}

.progress-button:hover {
  background-color: #282846; /* Darken button color on hover */
  border-color: #282846; /* Match border color on hover */
  box-shadow: 0 0 0 10px rgba(65, 65, 106, 0.3); /* Increase ring size on hover */
}

.progress-button:active {
  background-color: #1e1e34; /* Darkest shade for active state */
  border-color: #1e1e34; /* Match border color on active state */
  box-shadow: 0 0 0 10px rgba(65, 65, 106, 0.3), inset 0 0 5px rgba(0, 0, 0, 0.5); /* Increase ring size on active state and add inner shadow */
}

/* Question display */
#question-container {
  display: none;
}

.question-background {
  height: 50vh;
  width: 40vw;
  margin-top: 20px;
  border: 2px solid transparent;
  border-radius: 15px;
  background-image: linear-gradient(white, white), 
                    linear-gradient(to right, #41416A, #41416A);
  background-origin: border-box;
  background-clip: content-box, border-box;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.36);
}

#choices-container {
  display: flex;
  flex-direction: row;
  margin: 20px 20px 0px 20px;
  text-align: center;
  justify-content: center;
}

.choice-marker {
  text-align: center;
  justify-content: center;
  padding: 10px 20px;
  margin: 10px;
}

#choices-list {
  list-style-type: none;
  padding: 0;
}

.choice-item {
  display: inline-block;
  padding: 10px 20px;
  margin: 10px;
  font-size: large;
  color: #FFFFFF;
  background-color: transparent;
  border: 2px solid #41416A;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 5px rgba(65, 65, 106, 0.5); /* Ring border effect */
}

.choice-item:hover {
  color: #282846;
  background-color: #282846; /* Darken button color on hover */
  border-color: #282846; /* Match border color on hover */
  box-shadow: 0 0 0 10px rgba(65, 65, 106, 0.3); /* Increase ring size on hover */
}

.choice-button:active {
  color: #1e1e34;
  background-color: #1e1e34; /* Darkest shade for active state */
  border-color: #1e1e34; /* Match border color on active state */
  box-shadow: 0 0 0 10px rgba(65, 65, 106, 0.3), inset 0 0 5px rgba(0, 0, 0, 0.5); /* Increase ring size on active state and add inner shadow */
}

.choice-item.selected {
  background-color: #41416A;
  color: #41416A;
}

.choice-marker-phone {
  display: none;
}

.button-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

/* Results display */
.stats-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.stats {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0px 0px 0px;
  font-size: 18px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.stats th:nth-child(1),
.stats td:nth-child(1) {
  width: 10%;
}

.stats th:nth-child(2),
.stats td:nth-child(2) {
  width: 45%;
}

.stats th:nth-child(3),
.stats td:nth-child(3) {
  width: 45%;
}

.stat-pic {
  height: 30px;
}

.stats thead tr {
  background-color: #41416A;
  color: #ffffff;
  text-align: center;
}

.stats th, .stats td {
  padding: 12px 15px;
}

.stats tbody tr {
  border-bottom: 1px solid #dddddd;
}

.stats tbody tr:first-of-type {
  font-size: larger;
  font-weight: 900;
}

.stats tbody tr:last-of-type {
  border-bottom: 2px solid #41416A;
}

.stats tbody tr:hover {
  background-color: #f1f1f1;
  cursor: pointer;
}

.stats tbody tr.active-row {
  font-weight: bold;
  color: #41416A;
}

#more-stats tr:first-of-type {
  font-size: large;
  font-weight: 500;
}

#more-stats tr:last-of-type {
  border-bottom: 2px solid #41416A;
}

#show-more-button {
  text-decoration: none;
  font-size: large;
  background-color: transparent;
  color: #41416A;
  border: 1px solid transparent;
}

#show-more-button:hover {
  color: #41416A;
  border-bottom: 1px solid #41416A;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Footer display */
.share-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px;
}

.share-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px 0px 40px 0px;
}

.share-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 15px;
}

.share {
  width: 50px;
  height: 50px;
  padding: 0;
}

.share-img {
  width: 100%;
  height: 100%;
}

.twitter-share-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background-color: #1DA1F2; /* Twitter Blue */
  color: #FFFFFF;
  text-decoration: none;
  border: 2px solid #1DA1F2;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-size: 16px;
}

.twitter-share-button .twitter-logo, .instagram-share-button .instagram-logo, .copy-share-button .copy-logo, .threads-share-button .threads-logo {
  width: 24px;
  height: 24px;
  margin-right: 10px;
  fill: #FFFFFF;
}

.twitter-share-button:hover {
  background-color: #FFFFFF;
  color: #1DA1F2;
  border-color: #1DA1F2;
}

.twitter-share-button:hover .twitter-logo {
  fill: #1DA1F2;
}

.instagram-share-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background-color: #E4405F; /* Instagram Pink */
  color: #FFFFFF;
  text-decoration: none;
  border: 2px solid #E4405F;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-size: 16px;
}

.instagram-share-button:hover {
  background-color: #FFFFFF;
  color: #E4405F;
  border-color: #E4405F;
}

.instagram-share-button:hover .instagram-logo {
  fill: #E4405F;
}

.copy-share-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background-color: #41416A; /* Instagram Pink */
  color: #FFFFFF;
  text-decoration: none;
  border: 2px solid #41416A;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-size: 16px;
}

.copy-share-button:hover {
  background-color: #FFFFFF;
  color: #41416A;
  border-color: #41416A;
  cursor: pointer;
}

.copy-share-button:hover .copy-logo {
  fill: #41416A;
}

.threads-share-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background-color: #000000;
  color: #FFFFFF;
  text-decoration: none;
  border: 2px solid #000000;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-size: 16px;
}

.threads-share-button:hover {
  background-color: #FFFFFF;
  color: #000000;
  border-color: #000000;
  cursor: pointer;
}

.threads-share-button:hover .threads-logo {
  fill: #000000;
}

.footer {
  background-color: #8b8bc9;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0px 40px 0px;
}

.links-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.author {
  text-decoration: none;
  color: black;
  border-bottom: 1px solid #ffffff00;
  margin: 10px 20px;
  padding-top: 10px;
}

.author:hover {
  color: white;
  border-bottom: 1px solid #ffffff;
  transition: all 0.3s ease;
}

p {
  text-align: center;
  padding: 0px 10px 30px 10px;
}

/* Mobile devices */
@media screen and (max-width: 750px) { 
  h1 {
    font-size: 22px;
  }

  h4 {
    margin: 0px 30px;
  }

  .container {
    margin: 1px;
  }

  .home-background {
    max-height: 100%; 
    max-width: 60%;
  }

  .question-background {
    height: 20vh;
    width: 80vw;
  }

  #choices-container {
    font-size: 12px;
    margin: 20px 10px 0px 10px;
  }

  .choice-item {
    padding: 5px 15px;
    margin: 10px;
  }

  .choice-marker {
    display: none;
  }

  .choice-marker-phone {
    display: block;
    justify-content: center;
    padding: 0px 10px 15px 10px;
  }

  .share-buttons {
    flex-direction: column;
  }

  .twitter-share-button, .instagram-share-button, .copy-share-button, .threads-share-button {
    padding: 8px 16px;
    font-size: 14px;
  }

  .twitter-share-button .twitter-logo, .instagram-share-button .instagram-logo, .copy-share-button .copy-logo, .threads-share-button .threads-logo {
    width: 20px;
    height: 20px;
    margin-right: 8px;
  }

  .links-container {
    flex-direction: column;
  }
}

/* iPad/tablet Support */
@media screen and (orientation: portrait) and (min-width: 500px) and (max-width: 749px) { 
  .question-background {
    height: 30vh;
    width: 70vw;
  }
}

@media screen and (orientation: portrait) and (min-width: 751px) { 
  .question-background {
    height: 30vh;
    width: 70vw;
  }
}

@media screen and (orientation: landscape) and (max-height: 450px) { 
  .question-background {
    height: 40vh;
    width: 35vw;
  }
}

@media screen and (orientation: landscape) and (min-height: 451px) and (min-width: 700px) and (max-width: 1400px) { 
  .question-background {
    height: 40vh;
    width: 50vw;
  }
}
