@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Asap:ital,wght@0,100..900;1,100..900&family=Danfo&family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Jaro:opsz@6..72&display=swap");

body {
  /* 
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
  font-family: "Roboto Mono", monospace;

  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  font-family: Roboto Mono;
  line-height: 1.6rem; */

  background: #5dcfb8;
  background-image: linear-gradient(
    135deg,
    #5dcfb8 23%,
    #d73811 23%,
    #d73811 46%,
    #e16b06 46%,
    #e16b06 69%,
    #e1ba45 69%,
    #e1ba45 92%,
    #5b3217 92%
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
  font-family: "Roboto Mono", monospace;
  margin: 0;
  min-height: 100vh;
  align-items: center;
  line-height: 1.6rem;
}

/* Set background for website  */
.title {
  color: #ffffff;
}
.dropdown-menu label {
  color: #ffffff;
  border-color: #ffffff;
  border: 1px solid white;
}

.CustomContent {
  color: #ffffff;
  border-color: #ffffff;
  border: 1px solid white;
}
#FontSelector {
  color: #ffffff;
}
#AnimSelector {
  color: #ffffff;
}
#speed {
  color: #ffffff;
}
#footer {
  color: #ffffff;
}
#left-wing {
  color: white;
}

#size {
  color: white;
}

/* End  */

.container {
  display: flex;
  flex-direction: column;
  width: auto;
  padding-inline: 4rem;
}

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

/*outer box*/
.outerbox {
  position: relative; /* Changed to relative */
  display: flex;
  justify-content: center;
  align-items: center;
  border: 3px solid black;
  width: auto;
  height: 25rem;
  background-color: black; /* Initial background color */
  border-radius: 2rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  overflow: hidden; /* Added to prevent overflow */
}

/*LED Text*/
#led-text {
  position: absolute; /* Added to overlay on top of background canvas */
  color: black;
  width: 100%;
  height: 100%;
}

/* Background Canvas */
#backgroundCanvas {
  position: absolute; /* Added to ensure it fills the outer box */
  width: 100%;
  height: 100%;
}

/*Input text and fullscreen button*/
.Input_Fullscreen {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
}

#Input {
  width: 91rem;
  height: 2rem;
  font-family: "Roboto Mono", monospace;
  border: 1px solid black;
  border-radius: 0.3rem;
  padding: 0.3rem;
  transition: all 1s;
}

.FSbutton {
  font-family: "Roboto Mono", monospace;
  height: 2.7rem;
  padding: 0.3rem;
  border: 1px solid black;
  border-radius: 0.3rem;
  font-weight: bold;
  background-color: white;
  transition: all 0.3s;
  margin-left: 1rem;
}

/*Input field effect*/
#Input:not(:placeholder-shown) {
  background-color: whitesmoke;
  font-weight: bold;
}

#Input:focus {
  outline: none;
  box-shadow: 3px 3px 3px grey;
}

/*button effects*/
.FSbutton:hover {
  box-shadow: 3px 3px 3px grey;
}

.FSbutton:active {
  box-shadow: 0px 0px 0px;
  background-color: grey;
  transition-duration: 0.3s;
  color: white;
}

.FSbutton:focus {
  outline: none;
  box-shadow: 3px 3px 3px grey;
}

/*Dropdown Menu*/
.dropdown-menu {
  padding: 0.5rem;
  padding-inline: 4rem;
  margin: 0.6rem;
  width: 92%;
  display: flex;
  flex-direction: column;
  justify-self: center;
}

.dropdown-menu ul {
  list-style-type: "> " !important;
  list-style-position: outside;
}

.dropdown-menu label {
  cursor: pointer;
  /* border: 1px solid black; */
  padding: 0.5rem;
  border-radius: 0.3rem 0.3rem 0 0;
  width: auto;
}

.CustomContent {
  display: flex;
  flex-direction: row;
  padding: 0.5rem;
  /* border: 1px solid black; */
  border-top: 0px;
  max-height: auto;
}

#CustomMenu {
  display: none; /*hide checkbox */
}

#ColorPicker {
  position: relative;
  top: 6px;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  cursor: pointer;
  height: 2rem;
  width: 2rem;
  border: none;
}

#ColorPicker::-webkit-color-swatch {
  border: 2px solid black;
  border-radius: 0.3rem;
}

#ColorPicker::-moz-color-swatch {
  border: 2px solid black;
  border-radius: 0.3rem;
}

.font {
  margin-top: 20px;
}

/*Font Selector*/
#FontSelector {
  border: none;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  border-bottom: 1.5px solid white;
  padding: 0.2rem;
  cursor: pointer;
  width: 140px;
}

#FontSelector:focus {
  outline: none;
  border-bottom: 2px solid skyblue;
}

/*Font Type*/
.danfo {
  font-family: "Danfo", sans-serif;
}

.jaro {
  font-family: "Jaro", sans-serif;
}

.asap {
  font-family: "Asap", sans-serif;
  font-weight: 600;
}

.ibm {
  font-family: "IBM Plex Mono", monospace;
}

#AnimSelector {
  border: none;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  border-bottom: 1.5px solid white;
  padding: 0.2rem;
  cursor: pointer;
  width: 140px;
}

#AnimSelector:focus {
  outline: none;
  border-bottom: 2px solid skyblue;
}

#speed {
  margin-bottom: 10px;
  border: none;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  border-bottom: 1.5px solid white;
  padding: 0.2rem;
  width: 80px;
}

#speed:focus {
  outline: none;
  border-bottom: 2px solid skyblue;
}

footer {
  position: static;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Add the missing value here */
  font-family: "Roboto Mono", monospace;
  padding: 1rem;
}
.SBC {
  display: flex;
  margin-top: 20px;
}
.effect {
  margin-top: 20px;
}

#TCP {
  position: relative;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  height: 2rem;
  width: 2rem;
  border: none;
  bottom: 5px;
  margin-left: 4px;
}

#TCP::-webkit-color-swatch {
  border: 2px solid black;
  border-radius: 0.3rem;
}

#TCP::-moz-color-swatch {
  border: 2px solid black;
  border-radius: 0.3rem;
}
.BS {
  margin-top: 20px;
}

.AS {
  margin-top: 20px;
}

.BA {
  margin-top: 20px;
}

#BGSelector {
  border: none;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  border-bottom: 1.5px solid white;
  padding: 0.2rem;
  width: 140px;
  color: white;
}

#BGSelector:focus {
  outline: none;
  border-bottom: 2px solid skyblue;
}

#size {
  border: none;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  border-bottom: 1.5px solid white;
  padding: 0.2rem;
  width: 70px;
}

#size:focus {
  outline: none;
  border-bottom: 2px solid skyblue;
}

#slispeed {
  position: relative;
  top: 8px;
}
.choose_a-font {
  color: black;
  font-style: normal;
}
.text_animation {
  color: black;
  font-style: normal;
}
.FS {
  margin-top: 20px;
}
.animation {
  margin-top: 20px;
}
.danfo {
  color: black;
}
.jaro {
  color: black;
}
.asap {
  color: black;
}
.ibm {
  color: black;
}
#scroll {
  color: black;
}
#float {
  color: black;
}
#reset {
  color: black;
}
#R {
  color: black;
}
#F {
  color: black;
}

#startBlinking {
  background: linear-gradient(135deg, #6e8efb, #a777e3);
  border: none;
  color: white;
  padding: 4px 14px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 12px;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

#startBlinking:hover {
  background: linear-gradient(135deg, #a777e3, #6e8efb);
  transform: scale(1.1);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

#blinkText {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  display: none;
}
#text-effect {
  color: white;
}

@media (max-width: 1560px) {
  main {
    width: 1600px;
  }
  .outerbox,
  .Input_Fullscreen,
  .dropdown-menu {
    width: 1470px;
  }
  #theme-area {
    margin-top: 1rem;
    padding: 1.4rem 1rem;
    border-radius: 0.4rem;
    background: #eaeaea;
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(4, 1fr);
    height: 38vh;
    width: 100%; /* Changed to 100% for responsiveness */
    max-width: 1470px; /* Ensure it doesn't exceed 1470px */
    box-sizing: border-box;
  }
}

@media (max-width: 1500px) {
  main {
    width: 1540px;
  }
  .outerbox,
  .Input_Fullscreen,
  .dropdown-menu {
    width: 1400px;
  }
  #theme-center {
    position: absolute;
    min-height: 130%;
    min-width: 100%;
    fill: rgb(70, 66, 66);
    background-color: rgba(
      50,
      51,
      50,
      0.5
    ); /* Green background with 50% opacity */
  }
  #theme-area {
    margin-top: 1rem;
    padding: 1.4rem 1rem;
    border-radius: 0.4rem;
    background: #eaeaea;
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(4, 1fr);
    height: 38vh;
    width: 100%; /* Changed to 100% for responsiveness */
    max-width: 1400px; /* Ensure it doesn't exceed 1470px */
    box-sizing: border-box;
  }
}

@media (max-width: 1415px) {
  main {
    width: 1485px;
  }
  .outerbox,
  .Input_Fullscreen,
  .dropdown-menu {
    width: 1350px;
  }
  #theme-area {
    margin-top: 1rem;
    padding: 1.4rem 1rem;
    border-radius: 0.4rem;
    background: #eaeaea;
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(4, 1fr);
    height: 38vh;
    width: 100%; /* Changed to 100% for responsiveness */
    max-width: 1350px; /* Ensure it doesn't exceed 1470px */
    box-sizing: border-box;
  }
}
@media (max-width: 1370px) {
  main {
    width: 1435px;
  }
  .outerbox,
  .Input_Fullscreen,
  .dropdown-menu {
    width: 1300px;
  }
  #theme-area {
    margin-top: 1rem;
    padding: 1.4rem 1rem;
    border-radius: 0.4rem;
    background: #eaeaea;
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(4, 1fr);
    height: 38vh;
    width: 100%; /* Changed to 100% for responsiveness */
    max-width: 1300px; /* Ensure it doesn't exceed 1470px */
    box-sizing: border-box;
  }
}
@media (max-width: 1320px) {
  main {
    width: 1380px;
  }
  .outerbox,
  .Input_Fullscreen,
  .dropdown-menu {
    width: 1245px;
  }
  #theme-area {
    margin-top: 1rem;
    padding: 1.4rem 1rem;
    border-radius: 0.4rem;
    background: #eaeaea;
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(4, 1fr);
    height: 38vh;
    width: 100%; /* Changed to 100% for responsiveness */
    max-width: 1245px; /* Ensure it doesn't exceed 1470px */
    box-sizing: border-box;
  }
}
@media (max-width: 1260px) {
  main {
    width: 1332px;
  }
  .outerbox,
  .Input_Fullscreen,
  .dropdown-menu {
    width: 1190px;
  }
  #theme-area {
    margin-top: 1rem;
    padding: 1.4rem 1rem;
    border-radius: 0.4rem;
    background: #eaeaea;
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(4, 1fr);
    height: 38vh;
    width: 100%; /* Changed to 100% for responsiveness */
    max-width: 1190px; /* Ensure it doesn't exceed 1470px */
    box-sizing: border-box;
  }
}
@media (max-width: 1210px) {
  main {
    width: 1300px;
  }
  .outerbox,
  .Input_Fullscreen,
  .dropdown-menu {
    width: 1160px;
  }
  #theme-area {
    margin-top: 1rem;
    padding: 1.4rem 1rem;
    border-radius: 0.4rem;
    background: #eaeaea;
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(4, 1fr);
    height: 38vh;
    width: 100%; /* Changed to 100% for responsiveness */
    max-width: 1160px; /* Ensure it doesn't exceed 1470px */
    box-sizing: border-box;
  }
}
@media (max-width: 1180px) {
  main {
    width: 1220px;
  }
  .outerbox,
  .Input_Fullscreen,
  .dropdown-menu {
    width: 1080px;
  }
  #theme-area {
    margin-top: 1rem;
    padding: 1.4rem 1rem;
    border-radius: 0.4rem;
    background: #eaeaea;
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(4, 1fr);
    height: 38vh;
    width: 100%; /* Changed to 100% for responsiveness */
    max-width: 1080px; /* Ensure it doesn't exceed 1470px */
    box-sizing: border-box;
  }
}
@media (max-width: 1100px) {
  main {
    width: 1190px;
  }
  .outerbox,
  .Input_Fullscreen,
  .dropdown-menu {
    width: 1050px;
  }
  #theme-area {
    margin-top: 1rem;
    padding: 1.4rem 1rem;
    border-radius: 0.4rem;
    background: #eaeaea;
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(4, 1fr);
    height: 38vh;
    width: 100%; /* Changed to 100% for responsiveness */
    max-width: 1050px; /* Ensure it doesn't exceed 1470px */
    box-sizing: border-box;
  }
}
@media (max-width: 1070px) {
  main {
    width: 1140px;
  }
  .outerbox,
  .Input_Fullscreen,
  .dropdown-menu {
    width: 1000px;
  }
  #theme-area {
    margin-top: 1rem;
    padding: 1.4rem 1rem;
    border-radius: 0.4rem;
    background: #eaeaea;
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(4, 1fr);
    height: 38vh;
    width: 100%; /* Changed to 100% for responsiveness */
    max-width: 1000px; /* Ensure it doesn't exceed 1470px */
    box-sizing: border-box;
  }
}
@media (max-width: 1020px) {
  main {
    width: 1070px;
  }
  .outerbox,
  .Input_Fullscreen,
  .dropdown-menu {
    width: 930px;
  }
  #theme-area {
    margin-top: 1rem;
    padding: 1.4rem 1rem;
    border-radius: 0.4rem;
    background: #eaeaea;
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(4, 1fr);
    height: 38vh;
    width: 100%; /* Changed to 100% for responsiveness */
    max-width: 930px; /* Ensure it doesn't exceed 1470px */
    box-sizing: border-box;
  }
}
@media (max-width: 945px) {
  main {
    width: 1010px;
  }
  .outerbox,
  .Input_Fullscreen,
  .dropdown-menu {
    width: 875px;
  }
  #theme-area {
    margin-top: 1rem;
    padding: 1.4rem 1rem;
    border-radius: 0.4rem;
    background: #eaeaea;
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(4, 1fr);
    height: 38vh;
    width: 100%; /* Changed to 100% for responsiveness */
    max-width: 875px; /* Ensure it doesn't exceed 1470px */
    box-sizing: border-box;
  }
}
@media (max-width: 900px) {
  main {
    width: 1010px;
  }
  .outerbox,
  .Input_Fullscreen,
  .dropdown-menu {
    width: 875px;
  }
  #theme-area {
    margin-top: 1rem;
    padding: 1.4rem 1rem;
    border-radius: 0.4rem;
    background: #eaeaea;
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(4, 1fr);
    height: 38vh;
    width: 100%; /* Changed to 100% for responsiveness */
    max-width: 875px; /* Ensure it doesn't exceed 1470px */
    box-sizing: border-box;
  }
}
@media (max-width: 895px) {
  main {
    width: 975px;
  }
  .outerbox,
  .Input_Fullscreen,
  .dropdown-menu {
    width: 840px;
  }
  #theme-area {
    margin-top: 1rem;
    padding: 1.4rem 1rem;
    border-radius: 0.4rem;
    background: #eaeaea;
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(4, 1fr);
    height: 38vh;
    width: 100%; /* Changed to 100% for responsiveness */
    max-width: 840px; /* Ensure it doesn't exceed 1470px */
    box-sizing: border-box;
  }
}
@media (max-width: 859px) {
  main {
    width: 945px;
  }
  .outerbox,
  .Input_Fullscreen,
  .dropdown-menu {
    width: 810px;
  }
  #theme-area {
    margin-top: 1rem;
    padding: 1.4rem 1rem;
    border-radius: 0.4rem;
    background: #eaeaea;
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(4, 1fr);
    height: 38vh;
    width: 100%; /* Changed to 100% for responsiveness */
    max-width: 810px; /* Ensure it doesn't exceed 1470px */
    box-sizing: border-box;
  }
}
@media (max-width: 835px) {
  main {
    width: 890px;
  }
  .outerbox,
  .Input_Fullscreen,
  .dropdown-menu {
    width: 752px;
  }
  #theme-area {
    margin-top: 1rem;
    padding: 1.4rem 1rem;
    border-radius: 0.4rem;
    background: #eaeaea;
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(4, 1fr);
    height: 38vh;
    width: 100%; /* Changed to 100% for responsiveness */
    max-width: 752px; /* Ensure it doesn't exceed 1470px */
    box-sizing: border-box;
  }
}
@media (max-width: 770px) {
  main {
    width: 835px;
  }
  .outerbox,
  .Input_Fullscreen,
  .dropdown-menu {
    width: 700px;
  }
  #theme-area {
    margin-top: 1rem;
    padding: 1.4rem 1rem;
    border-radius: 0.4rem;
    background: #eaeaea;
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(4, 1fr);
    height: 38vh;
    width: 100%; /* Changed to 100% for responsiveness */
    max-width: 700px; /* Ensure it doesn't exceed 1470px */
    box-sizing: border-box;
  }
}
@media (max-width: 720px) {
  main {
    width: 800px;
  }
  .outerbox,
  .Input_Fullscreen,
  .dropdown-menu {
    width: 660px;
  }
  #theme-area {
    margin-top: 1rem;
    padding: 1.4rem 1rem;
    border-radius: 0.4rem;
    background: #eaeaea;
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(4, 1fr);
    height: 38vh;
    width: 100%; /* Changed to 100% for responsiveness */
    max-width: 660px; /* Ensure it doesn't exceed 1470px */
    box-sizing: border-box;
  }
}
@media (max-width: 673px) {
  main {
    width: 740px;
  }
  .outerbox,
  .Input_Fullscreen,
  .dropdown-menu {
    width: 600px;
  }
  #theme-area {
    margin-top: 1rem;
    padding: 1.4rem 1rem;
    border-radius: 0.4rem;
    background: #eaeaea;
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(4, 1fr);
    height: 38vh;
    width: 100%; /* Changed to 100% for responsiveness */
    max-width: 600px; /* Ensure it doesn't exceed 1470px */
    box-sizing: border-box;
  }
}
@media (max-width: 615px) {
  main {
    width: 690px;
  }
  .outerbox,
  .Input_Fullscreen,
  .dropdown-menu {
    width: 550px;
  }
  #theme-area {
    margin-top: 1rem;
    padding: 1.4rem 1rem;
    border-radius: 0.4rem;
    background: #eaeaea;
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(4, 1fr);
    height: 38vh;
    width: 100%; /* Changed to 100% for responsiveness */
    max-width: 550px; /* Ensure it doesn't exceed 1470px */
    box-sizing: border-box;
  }
}
@media (max-width: 560px) {
  main {
    width: 635px;
  }
  .outerbox,
  .Input_Fullscreen,
  .dropdown-menu {
    width: 500px;
  }
  #theme-area {
    margin-top: 1rem;
    padding: 1.4rem 1rem;
    border-radius: 0.4rem;
    background: #eaeaea;
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(4, 1fr);
    height: 38vh;
    width: 100%; /* Changed to 100% for responsiveness */
    max-width: 500px; /* Ensure it doesn't exceed 1470px */
    box-sizing: border-box;
  }
}
@media (max-width: 515px) {
  main {
    width: 600px;
  }
  #slispeed {
    width: 115px;
  }
  .outerbox,
  .Input_Fullscreen,
  .dropdown-menu {
    width: 460px;
  }
  #theme-area {
    margin-top: 1rem;
    padding: 1.4rem 1rem;
    border-radius: 0.4rem;
    background: #eaeaea;
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(4, 1fr);
    height: 38vh;
    width: 100%; /* Changed to 100% for responsiveness */
    max-width: 460px; /* Ensure it doesn't exceed 1470px */
    box-sizing: border-box;
  }
}
@media (max-width: 475px) {
  main {
    width: 560px;
  }
  #slispeed {
    width: 95px;
  }
  .outerbox,
  .Input_Fullscreen,
  .dropdown-menu {
    width: 423px;
  }
  #theme-area {
    margin-top: 1rem;
    padding: 1.4rem 1rem;
    border-radius: 0.4rem;
    background: #eaeaea;
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(4, 1fr);
    height: 38vh;
    width: 100%; /* Changed to 100% for responsiveness */
    max-width: 423px; /* Ensure it doesn't exceed 1470px */
    box-sizing: border-box;
  }
}
@media (max-width: 445px) {
  main {
    width: 530px;
  }
  .CustomContent {
    font-size: 15px;
    padding: 1px;
  }
  #slispeed {
    width: 72px;
  }
  .outerbox,
  .Input_Fullscreen,
  .dropdown-menu {
    width: 393px;
  }
  #theme-area {
    margin-top: 1rem;
    padding: 1.4rem 1rem;
    border-radius: 0.4rem;
    background: #eaeaea;
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(4, 1fr);
    height: 38vh;
    width: 100%; /* Changed to 100% for responsiveness */
    max-width: 393px; /* Ensure it doesn't exceed 1470px */
    box-sizing: border-box;
  }
}
@media (max-width: 410px) {
  main {
    width: 507px;
  }
  .FSbutton {
    font-size: 13px;
  }
  #slispeed {
    width: 70px;
  }
  #FontSelector {
    font-size: 13px;
  }
  .text-effect {
    font-size: 13px;
  }
  #startBlinking {
    font-size: 13px;
  }
  .CustomContent {
    font-size: 13px;
    padding: 1px;
  }
  #BGSelector {
    font-size: 13px;
  }
  #AnimSelector {
    font-size: 13px;
  }
  .user_guide {
    font-size: 15px;
  }
  #show-themes {
    font-size: 15px;
  }
  .outerbox,
  .Input_Fullscreen,
  .dropdown-menu {
    width: 370px;
  }
  #theme-area {
    font-size: 13px;
    margin-top: 1rem;
    padding: 1.4rem 1rem;
    border-radius: 0.4rem;
    background: #eaeaea;
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(4, 1fr);
    height: 38vh;
    width: 100%; /* Changed to 100% for responsiveness */
    max-width: 370px; /* Ensure it doesn't exceed 1470px */
    box-sizing: border-box;
  }
}
@media (max-width: 385px) {
  main {
    width: 460px;
  }
  .FSbutton {
    font-size: 10px;
  }
  #slispeed {
    width: 80px;
  }
  #FontSelector {
    font-size: 10px;
  }
  .text-effect {
    font-size: 10px;
  }
  #startBlinking {
    font-size: 10px;
  }
  .CustomContent {
    font-size: 10px;
    padding: 1px;
  }
  #BGSelector {
    font-size: 10px;
  }
  #AnimSelector {
    font-size: 10px;
  }
  .outerbox,
  .Input_Fullscreen,
  .dropdown-menu {
    width: 320px;
  }
  #theme-area {
    margin-top: 1rem;
    padding: 1.4rem 1rem;
    border-radius: 0.4rem;
    background: #eaeaea;
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(4, 1fr);
    height: 38vh;
    width: 100%; /* Changed to 100% for responsiveness */
    max-width: 320px; /* Ensure it doesn't exceed 1470px */
    box-sizing: border-box;
  }
}
#text-effect {
  border: none;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  border-bottom: 1.5px solid white;
  padding: 0.2rem;
  cursor: pointer;
  width: 140px;
}
#text-effect:focus {
  outline: none;
  border-bottom: 2px solid skyblue;
}
#text-effect {
  color: white;
}
#wob {
  color: black;
}
.text3D {
  color: black;
}
#FW {
  color: black;
}

/* @media (max-width: 950px) {
  main {
    width: 800px;
  }
  .outerbox,
  .Input_Fullscreen,
  .dropdown-menu {
    width: 650px;
  }
} */

/* @media (max-width: 975px) {
  main {
    width: 930px;
  }
  .outerbox,
  .Input_Fullscreen,
  .dropdown-menu {
    width: 930px;
  }
} */

/* @media (max-width: 930px) {
  body {
    width: 900px;
  }

  main {
    width: 900px;
  }

  .outerbox,
  .Input_Fullscreen,
  .dropdown-menu {
    width: 900px;
  }
} */

/* @media (max-width: 666px) {
  main {
    width: 600px;
  }
  .outerbox,
  .Input_Fullscreen,
  .dropdown-menu {
    width: 500px;
  }
} */

/* @media (max-width: 464px) {
  main {
    width: 430px;
  }
  .outerbox,
  .Input_Fullscreen,
  .dropdown-menu {
    width: 400px;
    overflow: visible;
  }
} */
