
@media only screen and (orientation: landscape) {
  /* Styles for normies */

  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
  }

  .title {
    font-weight: bold;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 100px;
    text-align: center;
    margin-top: 20px;
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 20px;
  }

  .section {
    flex: 1;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px
  }

  .subtitle {
    text-align: center;
    font-weight: bold;
    font-family: 'Roboto Slab', serif;
    font-size: 24px;
    z-index: 1;
    visibility: visible;
  }

  .section-two {
    flex: 1;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px
  }

  .thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    width: calc(100% - 40px); /* Subtract the margin width from the container width */
    margin-left: auto;
    margin-right: auto;
    grid-gap: 10px;
    margin-top: 20px;
  }

  .thumbnail-img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    transition: box-shadow 0.3s ease;
  }

  .thumbnail-img:hover {
    box-shadow: 0 0 0px 3px rgba(0, 0, 0, 1);
  }

  .image-container {
    margin-top: 20px;
    display: grid;
    align-items: center;
    justify-items: center;
  }

  .image-container img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 5px;
  }

  #chosen-image {
    z-index: 1;
  }

  #edited-image {
    z-index: 2;
  }

  .hidden {
    display: none;
  }

  #loading {
    position: absolute;
    font-weight: normal;
    font-family: 'Roboto Slab', serif;
    font-size: 24px;
    color:rgb(255, 255, 255);
    z-index: 3;
    visibility: hidden;
  }

  .wide-box {
    height: 75px;
    width: 100%;
    border: 2px solid #000;
    border-radius: 5px;
  }

  .color-image {
    width: 50px;
    height: 50px;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 5px;
    margin-right: 5px;
    border-radius: 100%;
  }

  .selected {
    box-shadow:
      0 0 0px 2px rgb(255, 255, 255, 1),
      0 0 0px 4px rgba(0, 0, 0, 1);
      
  }

  .scroll-container {
    overflow-x: auto;
    white-space: nowrap;
  }

  .category-container {
    text-align: center;
    display: inline-block;
  }

  .category-container select {
    font-weight: bold;
    font-family: 'Roboto Slab', serif;
    padding: 10px;
  }

  .hide-me {
    visibility: hidden;
  }

  .text {
    font-family: 'Roboto Slab', serif;
    padding: 10px;
  }

  .text-box {
    width: 300px;
    height: 150px;
    font-family: 'Roboto Slab', serif;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
  }

  #Send {
    font-weight: bold;
    opacity: 0.5;
    cursor: not-allowed;
    font-family: 'Roboto Slab', serif;
    margin: 20px;
    background-color: #ffffff; /* Set the background color */
    color: rgb(0, 0, 0); /* Set the text color */
    padding: 10px 20px; /* Set padding */
    border: 2px solid #000;
    border-radius: 5px; /* Apply border radius */
  }

  #Send:hover {
    background-color: #000000; /* Change background color on hover */
    color: rgb(255, 255, 255); /* Set the text color */
  }

  #Back {
    margin: 20px;
    font-weight: bold;
    opacity: 1;
    cursor: pointer;
    font-family: 'Roboto Slab', serif;
    background-color: #ffffff; /* Set the background color */
    color: rgb(0, 0, 0); /* Set the text color */
    padding: 10px 20px; /* Set padding */
    border: 2px solid #000;
    border-radius: 5px; /* Apply border radius */
  }

  #Back:hover {
    background-color: #000000; /* Change background color on hover */
    color: rgb(255, 255, 255); /* Set the text color */
  }

  .gif {
    width: 350px;
    height: 300px;
    border: 2px solid black;
    border-radius: 5px; /* Apply border radius */
    padding: 10px;
  }

  .explanation {
    display: flex;
    justify-content:center;
    text-align: left;
    margin-left: 30px;
    margin-right: 30px;
    margin-top: 0px;
    margin-bottom: 50px;
    font-family: 'Roboto Slab', serif;
    font-size: 24px;
    white-space: pre-line;
  }

  #ex-text {
    margin-left: 50px;
  }
}






@media only screen and (min-width: 1100px) {
  /* Styles for smartphones */
  .thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-gap: 10px;
    margin-top: 20px;
  }
}










@media only screen and (orientation: portrait) {
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
  }

  /* Styles for smartphones */
  .title {
    font-weight: normal;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 152px;
    text-align: center;
    margin-left: 15px;
    margin-right: 15px;
    margin-top: 15px;
    margin-bottom: 15px;
  }

  .section {
    flex: 1;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 15px
  }
  
  .subtitle {
    text-align: center;
    font-weight: normal;
    font-family: 'Roboto Slab', serif;
    margin-top: 0px;
    margin-bottom: 0px;
    font-size: 70px;
    z-index: 1;
    visibility: visible;
  }

  .section-two {
    flex: 1;
    margin-top: 50px;
    margin-left: 15px;
    margin-right: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px
  }
  
  .thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    width: calc(100% - 30px); /* Subtract the margin width from the container width */
    margin-left: auto;
    margin-right: auto;
    grid-gap: 10px;
    margin-top: 20px;
  }
  
  .thumbnail-img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    transition: box-shadow 0.3s ease;
  }
  
  .thumbnail-img:hover {
    box-shadow: 0 0 0px 3px rgba(0, 0, 0, 1);
  }
  
  .image-container {
    margin-top: 20px;
    display: grid;
    align-items: center;
    justify-items: center;
  }
  
  .image-container img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 15px;
  }
  
  #chosen-image {
    z-index: 1;
  }
  
  #edited-image {
    z-index: 2;
  }
  
  .hidden {
    display: none;
  }
  
  #loading {
    position: absolute;
    font-weight: normal;
    font-family: 'Roboto Slab', serif;
    font-size: 50px;
    color:rgb(255, 255, 255);
    z-index: 3;
    visibility: hidden;
  }
  
  .wide-box {
    height: 150px;
    width: 100%;
    box-shadow: 0 0 0px 6px rgba(0, 0, 0, 1);
    border-radius: 15px;
    margin-top: 12px;
    margin-bottom: 20px;
  }
  
  .color-image {
    width: auto;
    height: 110px;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 15px;
    margin-right: 15px;
    border-radius: 100%;
  }
  
  .selected {
    box-shadow:
      0 0 0px 3px rgb(255, 255, 255, 1),
      0 0 0px 9px rgba(0, 0, 0, 1);
      
  }
  
  .scroll-container {
    overflow-x: auto;
    white-space: nowrap;
  }

  .category-container {
    text-align: center;
    margin-top: 0px;
    margin-bottom: 20px;
    display: inline-block;
  }
  
  .category-container select {
    font-weight: normal;
    width: 350px;
    height: 100px;
    font-size: 40px;
    font-family: 'Roboto Slab', serif;
    padding: 12px;
    border-radius: 15px;
    border: transparent;
  }

  .hide-me {
    visibility: hidden;
  }

  .text {
    font-size: 40px;
    font-family: 'Roboto Slab', serif;
    padding: 10px;
  }

  .text-box {
    width: 90%;
    height: 40%;
    font-size: 40px;
    font-family: 'Roboto Slab', serif;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 15px;
  }
  
  #Send {
    font-weight: normal;
    width: 270;
    height: 100px;
    opacity: 0.5;
    cursor: not-allowed;
    font-size: 40px;
    font-family: 'Roboto Slab', serif;
    margin: 20px;
    background-color: #000000; /* Set the background color */
    color: rgb(255, 255, 255); /* Set the text color */
    padding: 10px 20px; /* Set padding */
    border: 3px solid #000;
    border-radius: 15px; /* Apply border radius */
  }

  #Back {
    margin: 20px;
    font-weight: normal;
    width: 100%;
    height: 100px;
    opacity: 1;
    cursor: pointer;
    font-size: 40px;
    font-family: 'Roboto Slab', serif;
    background-color: #000000; /* Set the background color */
    color: rgb(255, 255, 255); /* Set the text color */
    border-radius: 15px; /* Apply border radius */
    border: hidden;
  }

  .gif {
    width: 350px;
    height: 300px;
    border: 4px solid black;
    border-radius: 12px; /* Apply border radius */
    padding: 10px;
  }

  .explanation {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: left;
    margin-left: 30px;
    margin-right: 30px;
    margin-top: 0px;
    margin-bottom: 50px;
    font-family: 'Roboto Slab', serif;
    font-size: 40px;
    white-space: pre-line;
  }

  #ex-text {
    margin-left: 0px;
  }


}

