/* Base styles */
body {
  font-family: "Asap", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.container {
  width: 100%;
  /* max-width: 400px; */
  padding: 20px;
  box-sizing: border-box;
  margin: 0 auto;
}

.container>* {
  width: 100%;
}

.result-card-container {
  background-color: #88002e;
  border: 5px solid #88002e;
  padding: 10px;
}

.result-card {
  background-color: white;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  min-height: 100px;
}

h1 {
  font-size: 24px;
  margin: 0;
  color: #333;
}

.result-card-loader-container {
  border: 10px solid #88002e;
  padding: 10px;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  visibility: hidden;
  display: none;
}

.result-card-loader {
  background-color: white;
  padding: 20px;
  text-align: center;
  min-height: 400px;
}

h2.result-loader {
  font-size: 30px;
  margin: 0;
  color: #333;
  text-align: center;
  padding: 2px;
}

.timer {
  display: inline-block;
  font-family: "Asap", sans-serif;
  padding: 10px;
  margin: 10px;
  font-size: 20px;
  background-color: #88002e;
  color: white;
  border-radius: 5px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

h2 {
  font-size: 28px;
  margin: 10px 0 20px;
  color: #88002e;
}

p {
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}

hr.dotted {
  border: none;
  border-top: 2px dotted #ccc;
  margin: 20px 0;
}

hr.straight {
  border: none;
  border-top: 2px solid black;
  margin: 20px 0;
}

.share-section h3 {
  font-size: 18px;
  margin-bottom: 15px;
}

.share-buttons {
  display: flex;
  justify-content: left;
  gap: 10px;
  margin-bottom: 20px;
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 10%;
  border: none;
  background-color: #88002e;
  color: white;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.share-btn.facebook {
  background-color: #3b5998;
}

.share-btn:hover {
  opacity: 0.9;
}

.retake-btn {
  width: 100%;
  padding: 10px;
  background-color: #88002e;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}

.icon {
  font-size: 20px;
}

.trait-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.trait-option {
  display: none;
}

.trait-option+label {
  display: block;
  padding: 20px;
  text-align: center;
  background-color: #ffd700;
  border-radius: 5px;
  cursor: pointer;
  box-sizing: border-box;
}

.trait-option:checked+label {
  background-color: #ffa500;
  font-weight: bold;
}

label,
input,
select {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  box-sizing: border-box;
}

input[type="text"],
input[type="date"] {
  height: 50px;
  font-size: 18px;
  padding: 10px;
  border: 2px solid #ccc;
  border-radius: 5px;
  margin-bottom: 20px;
}

input[type="text"]:focus,
input[type="date"]:focus {
  border-color: #88002e;
  outline: none;
}

label {
  background-color: rgb(233, 229, 229);
  margin: 10px 0;
  text-align: center;
  padding: 20px;
}

input[type="submit"] {
  background-color: #88002e;
  color: white;
  padding: 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 18px;
}

input[type="submit"]:hover {
  background-color: #ab083e;
}

hr.dotted {
  border-top: 3px dotted #bbb;
}

/* Responsive styles */
@media screen and (max-width: 600px) {
  body {
    display: block;
  }

  .container {
    padding: 10px;
    width: 95%;
  }

  .trait-option+label {
    padding: 15px;
    font-size: 14px;
  }

  label {
    padding: 15px;
  }

  input[type="text"],
  input[type="date"] {
    height: 40px;
    font-size: 16px;
  }

  input[type="submit"] {
    padding: 12px;
  }
}

@media screen and (max-width: 400px) {
  body {
    font-size: 14px;
  }

  .container {
    padding: 5px;
    width: 90%;
  }

  .trait-option+label {
    padding: 20px;
    font-size: 12px;
  }

  label {
    padding: 20px;
  }

  input[type="text"],
  input[type="date"] {
    height: 36px;
    font-size: 14px;
  }
}

@media screen and (max-width: 360px) {

  .result-card-loader-container,
  .result-card-loader {
    min-width: auto;
  }

  .trait-grid {
    grid-template-columns: 1fr;
  }

  .share-buttons {
    flex-wrap: wrap;
  }

  .share-btn {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .retake-btn {
    padding: 8px;
    font-size: 14px;
  }

  h2 {
    font-size: 24px;
  }

  p {
    font-size: 14px;
  }

  label {
    padding: 15px;
  }

  input[type="text"],
  input[type="date"] {
    height: 30px;
    font-size: 14px;
  }

  input[type="submit"] {
    padding: 10px;
    font-size: 16px;
  }
}

.quiz-pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.prev-button,
.next-button {
  padding: 8px 16px;
  font-size: 14px;
  border: 1px solid #000;
  border-radius: 5px;
  background-color: transparent;
  color: #000;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  display: flex;
  align-items: center;
}

.prev-button::before,
.next-button::after {
  font-size: 18px;
  line-height: 1;
}

.prev-button::before {
  content: "←";
  margin-right: 5px;
}

.next-button::after {
  content: "→";
  margin-left: 5px;
}

.prev-button:hover,
.next-button:hover {
  background-color: #f0f0f0;
}

.prev-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.prev-button:disabled:hover {
  background-color: transparent;
}

.cover-card {
  text-align: center;
  padding: 20px;
}

.cover-card h2 {
  font-size: 28px;
  color: #88002e;
  margin-bottom: 10px;
}

.cover-card p {
  font-size: 18px;
  margin-bottom: 20px;
}

.cover-card img {
  max-width: 100%;
  margin-bottom: 20px;
}

.start-quiz-btn {
  background-color: #88002e;
  color: white;
  padding: 15px 30px;
  font-size: 18px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.start-quiz-btn:hover {
  background-color: #ab083e;
}



/* Toast Notification Styles */
.toast {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  pointer-events: none;
}

.toast-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  pointer-events: auto;
}

.toast-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.toast-message {
  font-size: 14px;
  line-height: 1.5;
}

.toast-hide {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

@media screen and (max-width: 600px) {
  .toast-content {
    max-width: 300px;
  }
}