body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  background-color: #ffffff;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

.header {
  display: flex;
  align-items: center;
  padding: 20px 20px;
}

.text-container {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  position: absolute;
  top: 30px;
  right: 20px;
  max-width: 100vw; /* prevent it from going off-screen */
  overflow: hidden;  /* clip anything that tries to escape */
}

.text {
  display: flex;
  align-items: center;
  height: 25px;               /* logos will scale with viewport height */
  max-width: 60vw;           /* total width of the logo row */
  flex-shrink: 1;
  gap: 5px;
  font-size: min(2.0vw, 20px);
  font-family: monospace;
  overflow: hidden;
}

.divider {
  font-weight: bold;
  font-size: 2vh;
  align-self: center;
}

.logo-container {
  width: 50%;
  max-width: 460px;
  height: auto;
  position: absolute;
  top: 10px;
  left: 10px;
  margin: 0; /* Adds some space from the edge */
}

.logo {
  width: 50%;
  max-width: 460px;
  height: auto;
  position: absolute;
  top: 10px;
  left: 10px;
  margin: 0; /* Adds some space from the edge */
}

.custom-line {
  border: 0;
  border-top: 2px solid black;
  width: 100%;
  margin-top: min(5vw, 45px); /* 5% of viewport width */
  margin-bottom: 0;
}

.menu-container {
  display: grid;
  position: relative;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  max-width: 100%;
  margin-top: 10px;
}

.menu {
  width: 120px;
  height: 50px;
  margin: 0 auto;
  background-color: #d0d0d0;
  color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 5px;
  font-size: 16px;
  font-weight: normal;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid black;
  position: relative;
}

.menu.active {
  transform: scale(0.95);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  background-color: #ffffff;
  border: 1px solid black;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
  width: 130%;
  margin-top: 10px;
}

.item {
  padding: 2px;
  font-size: 14px;
  font-weight: normal;
  color: #000000;
  cursor: pointer;
  text-align: center;
}

.item:hover {
  background-color: #f0f0f0;
}

.menu.active .dropdown {
  display: block;
}

.workflow {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
}
      
.pulse {
  animation: pulse-animation 1.0s infinite;
}

@keyframes pulse-animation {
  0% { opacity: 1; transform: scale(1.00); }
  50% { opacity: 1; transform: scale(1.20); }
  100% { opacity: 1; transform: scale(1.00); }
}

.workflow img {
  width: 75px;
  height: 75px;
}

.workflow .arrow {
  height: 18px;      /* make arrow small */
  width: auto;       /* keep aspect ratio */
}
  
.text-block {
  /* display: none; Hide initially */
  width: 76%; /* Adjust the width */
  /* max-width: 1000px; /* Limit the maximum width */
  margin-top: 115px; /* Push it lower down the page */
  padding-top: 10px; /* Adjust padding for inner spacing */
  padding-left: 20px; /* Adjust padding for inner spacing */
  border: 1px solid black; /* Change border color and thickness */
  border-radius: 10px; /* Add rounded corners */
  background-color: #f0f0f0; /* Background color */
  color: black; /* Text color */
  font-family: Arial, sans-serif; /* Change the font */
  font-size: 14px; /* Adjust text size */
  font-weight: normal; /* Make text bold */
  text-align: left; /* Center the text */
}

.text-block.active {
  display: block;
}

.description {
  background-color: #f0f0f0;
  border: 1px solid black;
  width: 755px; 
  height: 250px;
  padding: 10px 15px 10px 15px;
  font-family: monospace;
  font-size: 14px;
  line-height: 1.3;
  white-space: pre-wrap;
  border-radius: 8px; 
  color: #000; 
  margin-right: auto;
  box-sizing: border-box;
}

/* style="background-color: #f0f0f0; border: 2px solid #000; width: 540px; height: 180px;
          padding: 10px 15px 10px 15px; font-family: monospace; font-size: 14px; line-height: 1.3;
          white-space: pre-wrap; border-radius: 8px; color: #000; margin-right: auto; box-sizing: border-box;" */

.button {
  width: 120px;
  height: 40px;
  font-size: 14px;
  background-color: white;
  border-radius: 8px;
  border: 1px solid black;
  cursor: pointer;
  margin-right: 20px;
  flex-shrink: 0;
}

.output {
  background-color: white;
  padding: 10px;
  border: 1px solid black;
  overflow: auto;
  max-height: 300px;
  width: 72vw;
  white-space: pre-wrap;
}



.frame {
  width: 78%;
  height: 600px;
  border: 1px solid black;
  border-radius: 10px;
  margin-top: 40px;
  margin-bottom: 200px;
  overflow: auto;
}

.information {
    font-family: monospace;
    font-size: 16px; /* Adjust as needed */
    padding: 20px;
    text-align: center;
}


/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
 
  .menu-container {
    grid-template-columns: repeat(5, 1fr); /* Reduce to 4 columns for tablets */
    gap: 15px; /* Reduce gap between icons */
  }

  .menu {
    width: 110px;
    height: 45px;
    font-size: 16px;
  }



  .item {
   padding: 2px;
   font-size: 14px;
   font-weight: normal;
   color: #000000;
   cursor: pointer;
   text-align: center;
  }

  .workflow {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
  }

  .workflow img {
    width: 70px;
    height: 70px;
  }

  .workflow .arrow {
    height: 16px;      /* make arrow small */
    width: auto;       /* keep aspect ratio */
  }

  .text-block {
    font-size: 14px; /* Reduce font size */
    /* display: none; */ /* Hide initially */
    width: 77%; /* Adjust the width */
  }

  .text-block.active {
    display: block;
  }

  .information {
    font-size: 14px;
  }

  .frame {
    width: 79%;
    height: 600px;
    border: 1px solid black;
    border-radius: 10px;
    margin-top: 40px;
    overflow: auto;
  }

}

@media (max-width: 920px) {
 
  .menu-container {
    grid-template-columns: repeat(5, 1fr); /* Reduce to 3 columns */
    gap: 10px;
  }

  .menu {
    width: 100px;
    height: 40px;
    font-size: 16px;
    font-weight: normal;
  }

  .item {
    padding: 2px;
    font-size: 12px;
    font-weight: normal;
    color: #000000;
    cursor: pointer;
    text-align: center;
  }

  .workflow {
    display: flex;
    gap: 7px;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
  }

  .workflow img {
    width: 65px;
    height: 65px;
  }

  .workflow .arrow {
    height: 14px;      /* make arrow small */
    width: auto;       /* keep aspect ratio */
  }

  .text-block {
    font-size: 14px; /* Reduce font size */
    /* display: none; */ /* Hide initially */
    width: 78%; /* Adjust the width */
    margin-top: 105px; /* Push it lower down the page */
  }

  .text-block.active {
    display: block;
  }

  .information {
    font-size: 14px;
  }

  .frame {
    width: 80%;
    height: 600px;
    border: 1px solid black;
    border-radius: 10px;
    margin-top: 40px;
    overflow: auto;
  }

}



@media (max-width: 840px) {


  .logo {
    width: 50%;
    min-width: 180px;
    height: auto;
    position: absolute;
    top: 12px;
    left: 10px;
    margin: 0; /* Adds some space from the edge */
  }

  .custom-line {
    border: 0;
    border-top: 2px solid black;
    width: 100%;
    margin-top: 5vw; /* 5% of viewport width */
    margin-bottom: 0;
  }

  .menu-container {
    grid-template-columns: repeat(5, 1fr); /* Reduce to 3 columns */
    gap: 10px;
  }

  .menu {
    width: 100px;
    height: 40px;
    font-size: 16px;
    font-weight: normal;
  }


  /* Keep the rest of your styles unchanged */
  .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    background-color: #ffffff;
    border: 1px solid black;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
    width: 130%;
    margin-top: 10px;
  }

  .item {
    padding: 2px;
    font-size: 0.75rem;
    font-weight: normal;
    color: #000000;
    cursor: pointer;
    text-align: center;
  }

  .workflow {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
  }

  .workflow img {
    width: 60px;
    height: 60px;
  }

  .workflow .arrow {
    height: 12px;      /* make arrow small */
    width: auto;       /* keep aspect ratio */
  }

  .text-block {
    /* display: none; */ /* Hide initially */
    width: 80%; /* Adjust the width */
    /* max-width: 1000px; /* Limit the maximum width */
    margin-top: 105px; /* Push it lower down the page */
    padding-top: 10px; /* Adjust padding for inner spacing */
    padding-left: 20px; /* Adjust padding for inner spacing */
    border: 1px solid black; /* Change border color and thickness */
    border-radius: 10px; /* Add rounded corners */
    background-color: #f0f0f0; /* Background color */
    color: black; /* Text color */
    font-family: Arial, sans-serif; /* Change the font */
    font-size: 0.875rem; /* Adjust text size */
    font-weight: normal; /* Make text bold */
    text-align: left; /* Center the text */
  }

  .text-block.active {
    display: block;
  }

  .information {
    font-size: 0.75rem;
  }

  .frame {
    width: 83%;
    height: 600px;
    border: 1px solid black;
    border-radius: 10px;
    margin-top: 40px;
    overflow: auto;

    position: relative;
    display: block; /* Remove if already block */

  }

}

@media (max-width: 720px) {


  .logo {
    width: 50%;
    min-width: 180px;
    height: auto;
    position: absolute;
    top: 14px;
    left: 10px;
    margin: 0; /* Adds some space from the edge */
  }

  .custom-line {
    border: 0;
    border-top: 2px solid black;
    width: 100%;
    margin-top: 5vw; /* 5% of viewport width */
    margin-bottom: 0;
  }

  .menu-container {
    grid-template-columns: repeat(5, 1fr); /* Reduce to 3 columns */
    gap: 10px;
  }

  .menu {
    width: 100px;
    height: 40px;
    font-size: 16px;
    font-weight: normal;
  }

  /* Keep the rest of your styles unchanged */
  .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    background-color: #ffffff;
    border: 1px solid black;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
    width: 130%;
    margin-top: 10px;
  }

  .item {
    padding: 2px;
    font-size: 0.75rem;
    font-weight: normal;
    color: #000000;
    cursor: pointer;
    text-align: center;
  }

  .workflow {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
  }

  .workflow img {
    width: 55px;
    height: 55px;
  }

  .workflow .arrow {
    height: 10px;      /* make arrow small */
    width: auto;       /* keep aspect ratio */
  }

  .text-block {
    /* display: none; */ /* Hide initially */
    width: 80%; /* Adjust the width */
    /* max-width: 1000px; /* Limit the maximum width */
    margin-top: 105px; /* Push it lower down the page */
    padding-top: 10px; /* Adjust padding for inner spacing */
    padding-left: 15px; /* Adjust padding for inner spacing */
    border: 1px solid black; /* Change border color and thickness */
    border-radius: 10px; /* Add rounded corners */
    background-color: #f0f0f0; /* Background color */
    color: black; /* Text color */
    font-family: Arial, sans-serif; /* Change the font */
    font-size: 0.875rem; /* Adjust text size */
    font-weight: normal; /* Make text bold */
    text-align: left; /* Center the text */
  }

  .text-block.active {
    display: block;
  }

  .information {
    font-size: 0.6875rem;
  }

  .frame {
    width: 83%;
    height: 600px;
    border: 1px solid black;
    border-radius: 10px;
    margin-top: 40px;
    overflow: auto;

    position: relative;
    display: block; /* Remove if already block */

  }

}

.rotate-warning {
  display: none;
}

@media screen and (max-width: 639px) {
  .rotate-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: white;
    color: black;
    font-family: monospace;
    font-size: 1.0rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 9999;
    padding: 1rem;
  }

  .rotate-warning img.rotate-icon {
    width: 200px;   /* adjust as needed */
    height: auto;  /* keeps aspect ratio */
    margin-bottom: 1rem;
  }

  .rotate-warning p {
    margin: 0.2em 0;
  }

  /* Optionally hide other content */
  body > *:not(.rotate-warning) {
    display: none !important;
  }
}
