body {
    margin: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: #fff5f8;
    display: flex;
    justify-content: center;
  }
  
  .overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    background-color: rgba(0, 0, 0, 0.22);
    z-index: 1;
  }
  
  .cover {
    display: flex;
    position: relative;
    background-image: url(https://www.library.dartmouth.edu/sites/default/files/dartmouth-baker-berry-library-tower.jpg);
    background-size: cover;
    background-position: center;
    height: 30rem;
    padding: 2.5rem;
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.15);
    max-width: 43.75rem;
    width: 90%;
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
  }
  
  #main-title {
    color: #fff5f8;
    font-size: 3rem;
    z-index: 2;
    position: relative;
  }
  
  .quiz-container {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.15);
    max-width: 43.75rem;
    width: 90%;
    text-align: center;
    margin-bottom: 2rem;
  }
  
  h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #e60073;
  }
  
  .options {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
  }
  
  .options label {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: calc(33.333% - 1rem);
    justify-content: center;
  }
  
  label {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Learnt how to do this from ChatGPT*/
    border-radius: 0.75rem;
    overflow: hidden;
    width: 10rem;
    height: 10rem;
  }
  
  label:hover {
    transform: scale(1.05);
    box-shadow: 0 0.375rem 1.25rem rgba(230, 0, 115, 0.3);
  }
  
  input[type="radio"] {
    display: none;
  }
  
  label img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .text-box {
    width: 12.5rem;
    height: 12.5rem;
    padding: 1rem;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.05rem;
    font-size: 1.25rem;
  }
  
  .options:has(input[type="radio"]:checked)
    label:not(:has(input[type="radio"]:checked)) {
    /* If radio is checked, then make other boxes not checked darker*/
    filter: brightness(0.4);
  }
  
  .done-button {
    background-color: #e60073;
    color: white;
    font-size: 1.25rem; 
    padding: 0.75rem 1.25rem; 
    border: none;
    border-radius: 0.3rem;
    cursor: pointer;
    width: 12.5rem; 
    margin-top: 1.25rem;
  }
  
  .done-button:hover {
    background-color: #d986b0;
  }
  
  
  .result-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  .result-img {
    width: 100%;
    max-width: 25rem;
    border-radius: 0.5rem;
    margin-bottom: 1.25rem;
  }
  
  .result-blurb {
    font-size: 1.2rem;
    padding: 0 1.25rem;
    max-width: 37.5rem;
  }
  
  .modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);  
    display: none;  
    justify-content: center;
    align-items: center;
    z-index: 1050;
    opacity: 0;  
    visibility: hidden;  
    transition: opacity 0.3s ease, visibility 0s 0.3s;
  }
  
  /* Found this all on https://codepen.io/antoncabon/pen/WxQLbM */
  @keyframes bounceIn {
    0% {
      transform: scale(0.5);
      opacity: 0;
    }
    50% {
      transform: scale(1.2);
      opacity: 1;
    }
    75% {
      transform: scale(0.9);
    }
    100% {
      transform: scale(1);
      opacity: 1;
    }
  }
  
  .modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    max-width: 500px;
    width: 90%;
    opacity: 0;  
    transform: scale(0.5); 
    animation: none;
    transition: opacity 0.3s ease;
  }
  
  /* Got help from ChatGPT putting together this final modal animation in blocks that follow */
  .modal.show {
    display: flex;  
    opacity: 1;  
    visibility: visible;  
    transition: opacity 0.3s ease, visibility 0s 0s;
  }
  
  .modal.show .modal-content {
    animation: bounceIn 0.6s ease-out;  
    opacity: 1;  
    transform: scale(1); 
  }
  
  
  @media (max-width: 40rem) {
    .options {
      flex-direction: column;
    }
  
    .options label {
      width: auto;
    }
  
    .options label img {
      width: 9.375rem;
      height: 9.375rem;
      object-fit: cover;
      border-radius: 1rem;
    }
  }