html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-y: hidden !important; /* Prevent scroll on the body */
  max-height: 100vh;
}

/* Reset margins, padding, and borders */
html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul,
li,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
  padding: 0;
  border: 0;
}

/* Set default font properties */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul,
li,
figure,
figcaption,
blockquote,
dl,
dd {
  font-size: 100%;
  font-weight: normal;
}

/* Remove list styles */
ol,
ul {
  list-style: none;
}

/* Set a basic font family */
html {
  font-family: sans-serif;
}

/* Reset images to display in their original size */
img {
  max-width: 100%;
  height: auto;
}

/* Reset anchor elements to avoid any unwanted styling */
a {
  text-decoration: none;
  color: inherit;
}

/* Apply box-sizing to include padding and border in the element's total width and height */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove the outline on focused elements when they are also active or clicked */
:active,
:focus {
  outline: 0;
  border: none;
}

/* Reset table styles */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

body {
  background-color: black;
}

#terminal {
  margin: 20px;
  margin-right: 0px;
  width: calc(100vw - 40px);
}

* {
  font-family: courier-new, courier, monospace;
  font-weight: 400;
  font-size: 15px;
  line-height: 17px;
  color: white;
}

.exit {
  position: absolute;
  font-size: 25px!important;
  width: 100vw;
  background-color: black;
  z-index: 2;
  bottom: 0!important;
  padding-bottom: 20px;
  padding-top: 20px;
}

.exit {
  left: 20px;
}

.shop {
  top: 20px;
  left: 20px;
  font-size: 25px;
}

.cont {
  width: 100vw;
  height: 100vh;
  display: flex;
  overflow-x: hidden; /* Hide horizontal overflow at the container level */
}

.left {
  position: fixed;
  width: 350px; /* Or your specified width */
  height: 100%;
  padding: 20px;
  box-sizing: border-box; /* Include padding and border in the element's dimensions */
  display: flex;
  flex-direction: column;
  justify-content:end;
  z-index: 2; /* Ensure it stays above the scrollable content */
}

.scroll-container {
  overflow-x: auto; /* Enable horizontal scrolling */
  margin-left: 350px; /* Offset for the .left div, adjust as necessary */
  white-space: nowrap !important; /* Keep items in a single line */
  height: 100vh;
  width: calc(
    100vw - 350px
  ); /* Full viewport width minus the .left div width */
  position: relative; /* Ensures absolute positioning is relative to this container */
  padding: 0; /* Ensure no padding is adding space */
  display: flex;
  flex-direction: row;
}

.right {
  overflow-x: auto; /* Enable horizontal scrolling */
  white-space: nowrap; /* Keep items in a single line */

  width: calc(
    300vw - 350px
  ); /* Full viewport width minus the .left div width */
  height: 100vh;
  box-sizing: border-box;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  display: flex;
  flex-direction: row;
  position: absolute;
}

.dil{
  box-sizing: border-box;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  width: calc(100vw);
  height: 100vh;
}

.info {
  font-size: 20px;  
  text-align: right;
}

/* Additional CSS to ensure the second .right div starts outside the viewport */
.right:nth-child(2) {
  position: absolute;
  left: calc(300vw - 350px); /* Start from the right edge of the viewport */
}

/* Additional CSS to ensure the third .right div starts outside the viewport */
.right:nth-child(3) {
  position: absolute;
  left: calc(600vw - 350px); /* Start from the right edge of the viewport */
}

/* Additional CSS to ensure the fourth .right div starts outside the viewport */
.right:nth-child(4) {
  position: absolute;
  left: calc(900vw - 350px); /* Start from the right edge of the viewport */
}

/* Additional CSS to ensure the fifth .right div starts outside the viewport */
.right:nth-child(5) {
  position: absolute;
  left: calc(1200vw - 350px); /* Start from the right edge of the viewport */
}

.scroll-container::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome, Safari, and Opera */
}


/* Media query for screen width under 1350px */
@media (max-width: 1350px) {
  .left,
  .scroll-container,
  .right,
  .scroll-container {
    width: calc(300vw - 200px); /* Adjust width for responsive layout */
  }

  .scroll-container {
    margin-left: 200px; /* Adjust margin-left for .scroll-container */
  }

  .left {
    width: 200px; /* Adjust width for .left */
  }

  .info{
    margin: 0px -15px;
  }

  .next {
    margin-left: -200px;
  }


  #terminal {
    font-size: 15px;
    max-height: 80vh!important;
  }

  .terminal{
    max-height: 80vh!important;
  }
}



@media (max-width: 650px) {
    .cont{
        display: flex;
        flex-direction: column;
        height: 100vh;
        justify-content: space-evenly;
    }
    .left, .scroll-container{
        width: 100vw;
    }
    .left{
        height: 150px;
        position: static;
        padding: 20px;
    }
    .info{
      margin: 0;
    }
    .order-button-container {
        margin-bottom: 5px;
    }
    .order-btn {
        padding: 6px 15px;
        font-size: 10px;
        min-width: 140px;
    }
    .scroll-container{
        height: calc(100vh - 150px)!important;
        bottom: 0px;
        margin: 0px;
    }
    .next{
        margin: 0;
    }

    .right{
        width: 100vw;
        height: calc(300vh - 150px);
    }
    
    .scroll-container, .right{
      flex-direction: column;
    }

    .dil{
      width: 100vw;
      height: calc(100vh);
    }

    .right:nth-child(2){
      left: 0;
      position: absolute;
      top: calc(300vh - 150px); /* Kaprfakr */
    }
    
    .right:nth-child(3){
      left: 0;
      position: absolute;
      top: calc(600vh - 150px); /* Happy Hours */
    }
    
    .right:nth-child(4){
      left: 0;
      position: absolute;
      top: calc(900vh - 150px); /* Sekretař */
    }
    
    .right:nth-child(5){
      left: 0;
      position: absolute;
      top: calc(1200vh - 150px); /* Melounař */
    }
    

    .scroll-container, .right {
        overflow-x: hidden; /* Disable horizontal scrolling */
        overflow-y: auto; /* Enable vertical scrolling */
        white-space: normal; /* Allow content to wrap and be scrollable vertically */
        margin-left: 0; /* Remove the margin-left offset */
        width: 100vw; /* Set width to 100% of the viewport width */
        height: auto; /* Adjust height to be automatic based on content */
      }
    
      .right {
        width: 100vw; /* Adjust .right width to be 100% of its container for vertical layout */
        position: absolute; /* Adjust position to relative for stacking */
        left: 0; /* Reset left position */
      }

   
}

@media (max-width: 540px) {
  .xterm-rows span{
    font-size: 10px!important;
  }
}

.black{
    background-color: black;
    height: 100vh;
    width: 35px;
    position: absolute;
    right: 0px;
    top: 0px;
    z-index: 2;
}

/* Order button styling */
.order-button-container {
    margin-bottom: 10px;
}

.order-btn {
    background: #00ff00;
    border: 1px solid #00ff00;
    color: #000000;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    font-family: courier-new, courier, monospace;
    text-align: center;
    min-width: 180px;
}

.order-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
    color: #000000;
    text-decoration: none;
}

.order-btn:active {
    transform: translateY(-1px);
}