body{
    background: linear-gradient(to right,rgb(203, 75, 75),rgb(154, 41, 41));
    /* margin: 0; */
  }
  #title{
    display: flex;
    justify-content: center;
    font-family:fantasy;
    color:rgb(255, 177, 60);
    margin: 0; 
    font-size: 50px;
    /* height: 100vh; */
  }
  .emoji_gen{
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  #emoji{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    flex: 1 1 40%;
    max-width: 500px;
    aspect-ratio: 1/1;
    margin: auto;
    top: -10px;
    /* width: 500px;
    height: 500px; */
  }

  .meme-text {
    position: absolute; 
    font-size: 30px;
    font-weight: bold;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    z-index: 5;
    pointer-events: none;
    width: 100%; 
  }

  #topText {
    top: -8%;
    left: 50%;
    transform: translateX(-50%);
  }

  #bottomText {
    bottom: -8%;
    left: 50%;
    transform: translateX(-50%);
  }


  .top_bottom_text {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid orange;
  }

  .top_bottom_text strong {
    font-size: 20px;
    color: #ffcc66;
    margin-bottom: 5px;
  }

  .top_bottom_text input[type="text"] {
    padding: 6px 10px;
    font-size: 16px;
    background: rgb(227, 133, 133);
    color: #ffffff;
    border: 1px solid #555;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
  }

  #settings h2 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #ffe28a;
    font-size: 22px;
  }

  #settings label {
    margin-top: 10px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  #emoji img{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  }
  #Randomize {
    font-size: 30px;
    width: 50%;
    padding: 20px;
    position: relative;
    top: -120px;
    left: 350px;
    color: yellow;
    background: orange;
    cursor: pointer;
    border: none;
    border-radius: 10px;
    text-align: center;
  }
  #Randomize:hover{
    background: rgb(218, 141, 0);
  }
  #Randomize:active{
    color:red;
  }
  #emoji_output{
    background: rgb(234, 82, 82);
    display: flex;
    flex-wrap: nowrap;
    /* flex-wrap: wrap; */
    justify-content: space-between;
    /* flex-direction: row;
    align-items: center; */
    gap: 40px;
    padding: 20px;
  }
  #settings {
    display: flex; 
    width: 50%;
    max-height: 550px; 
    overflow-y: auto;  
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    color: white;
    font-family: sans-serif;
    flex-direction: column;
  }


  input[type="range"] { /*for some reason slider was getting stuck*/
  position: relative;
  width: 200px;
  z-index: 10;
  }
  #sliders_wrap{
    display: flex;
    margin: 20px;
    flex-direction: row;
  }

  #randomness_sliders,#emotion_mix {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  select{
    color:rgb(255, 177, 60);
    font-size: 30px;
    font-weight:bold;
  }
  #emotion_mix {
    display: none;
  }

  #face{
    z-index: 0;
  }

  #mouth{
    z-index: 2;
  }

  #eyebrows{
    z-index: 3;
  }

  #eyes{
    z-index: 4;
  }

  #other{
    z-index: 5;
  }