body {
  margin: 0;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Dropdown Button */
.dropbtn {
    background-color: #3498DB;
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}
  
/* Dropdown button on hover & focus */
.dropbtn:hover, .dropbtn:focus {
    background-color: #2980B9;
}

/* Dropdown Button */
.clearbtn {
  background-color: #f11515;
  color: white;
  padding: 16px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

/* Dropdown button on hover & focus */
.clearbtn:hover, .clearbtn:focus {
  background-color: #b30e0e;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
    position: relative;
    display: inline-block;
}
  
/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content .comicbtn {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content .comicbtn:hover {
    background-color: #ddd;
}

/* Show the dropdown menu */
.show {
    display: block;
}

/* Container for comic images to align side by side */
#comicContainer {
  display: flex;
  justify-content: center; /* Center the images horizontally */
  width: 100%;
  column-gap: 10px;
  height: auto;
  flex-direction: row;
}

/* Comic images should maintain their aspect ratio */
#comicImg, #comicImg2 {
  max-width: 48%; /* Ensure both images fit within the container */
  height: auto; /* Maintain the aspect ratio */
  object-fit: contain; /* Prevent distortion */
}

/* Ensure the image does not exceed the screen size */
#comicImg {
  max-height: 100vh; /* Maximum height is the full viewport */
  max-width: 100%; /* Prevent overflow horizontally */
}

#comicImg2 {
  max-height: 100vh; /* Ensure second image does not exceed the viewport height */
  max-width: 100%;
  display: none; /* Initially hide the second comic image */
}

#comicArea {
  display: none;
}

/* Next & previous buttons */
#prevBtn, #nextBtn {
  cursor: pointer;
  position: absolute;
  top: 0%;
  width: 50%;
  height: 100%;
  color: rgba(0, 0, 0, 0);
  background-color: rgba(0, 0, 0, 0);
  border-style: none;
  transition: 0.6s ease;
  user-select: none;
}

#exitBtn {
  cursor: pointer;
  position: absolute;
  top: 0%;
  width: 100px;
  height: 100px;
  font-size: 0;
  background: transparent;
  border-style: none;
  transition: 0.6s ease;
  user-select: none;
}

/* Position the "next button" to the right */
#nextBtn {
  right: 0;
}

#exitBtn:hover {
  color: rgba(255,255,255,1);
  background-color: rgba(0,0,0,1);
  font-size: 20;
}

.slidecontainer {
  position: relative;
  z-index: 10;
  width: 99%; /* Width of the outside container */
}

/* The slider itself */
.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 25px;
  background: #d3d3d3;
  outline: none;
  opacity: 0.7;
  -webkit-transition: .2s;
  transition: opacity .2s;
}

/* Mouse-over effects */
.slider:hover {
  opacity: 1;
}

/* The slider handle */
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  background: #04AA6D;
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  background: #04AA6D;
  cursor: pointer;
}

/* Responsive design for small screens */
@media only screen and (max-width: 768px) {
  #comicImg, #comicImg2 {
    max-width: 100%; /* Images take full width on small screens */
  }
  
  #comicImg2 {
    display: none; /* Hide the second image on small screens */
  }
}

/* For larger screens, keep height proportional */
@media only screen and (min-width: 768px) {
  #comicImg, #comicImg2 {
    height: auto;
    object-fit: contain; /* Maintain aspect ratio even on larger screens */
  }
}
