/* css openbaar */
.box-title {
    text-align: center;
    font-size: 150%;
}

.box2-infotxt{
    text-align: center;

}
/* header */
/* Header wrapper full width */
.header-wrapper {
  margin: 0;
  padding: 8px 0 32px;
  background: #fff;
  color: #009cdc;
  position: relative;
  overflow: hidden;
  z-index: 10;
  font-family: "Permanent Marker", cursive; /* font 1 */
}

.header-inner {
  max-width: 100vw;
  width: 100% !important;
  margin: 0 auto;
  padding: 0 12px;
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap !important;  
}

/* Logo */
.menu-logo img {
  max-width: 200px;
  width: auto;
  height: auto;
}

/* Navigation */
.top-nav {
  flex: 0 1 auto;      
  min-width: 0;
  display: flex;
  justify-content: flex-end;
}

.top-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  
}

.top-nav li {
  margin-left: 10px;
  white-space: nowrap;
}

.top-nav a {
  color: #009cdc;
  font-size: 24px;
  text-decoration: none;
  white-space: nowrap;
  margin-left: 10px;
}

/* Search Box */
#searchForm {
  margin-left: 24px;
  font-size: 24px;
  color: black;
  display: flex;
  align-items: center;
  gap: 8px;         
}

.top-nav input[type="text"] {
  margin-left: auto;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  min-width: 250px;
  font-size: 20px;
  transition: width 0.3s ease;
}

/* Responsive styles -1024 px */
@media (max-width: 1024px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .menu-logo img {
    max-width: 150px;
  }

  .top-nav ul {
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
  }

  .top-nav li {
    margin: 8px 0;
  }

  .top-nav input[type="text"] {
    min-width: 180px;
  }
}



@media (max-width: 768px) {
  .header-inner {
    align-items: center; /* Center logo and nav for smaller screens */
    padding: 10px 12px;
  }

  .menu-logo img {
    max-width: 150px; /* Smaller logo on small screens */
  }

  .top-nav ul {
    flex-direction: column; /* Stack nav items vertically */
    align-items: center;
  }

  .top-nav li {
    margin-left: 0;
    margin-bottom: 10px;
  }

  .top-nav input[type="text"] {
    min-width: 180px; /* Reduce the size of the search input */
  }
}

@media (max-width: 480px) {
  .menu-logo img {
    max-width: 120px;
  }
  .top-nav input[type="text"] {
    min-width: 150px;
  }
}
/* footer */
.footer-wrapper {
  background-color: rgb(0, 115, 162);
  color: white;
  padding: 32px 0;
  font-family: "Josefin Sans", sans-serif; /* 2de font*/
}

.footer-container {
  max-width: 100dvw;
  margin: 0 auto;
  padding: 0 12px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.footer-col {
  flex: 1 1 33%;
  padding: 12px;
}

.footer-col img {
  max-width: 25%;
  height: auto;
   margin-bottom: 12px; 
}

.footer-col h3 {
  margin-bottom: 8px;
  margin-left: 60dvw;
  margin-right: 5dvw;

}

.footer-times {
  display: flex;
  margin-left: 60dvw;
  margin-right: 5dvw;  
}

.footer-times div {
  margin-bottom: 8px;
}
.footer-creds {
  margin-top: 1em; 
  font-size: 0.8em; 
  color: #ccc; 
  text-align: center;
  max-width: 100%;
  padding: 0 12px;
  font-family: 'Permanent Marker', cursive;
}
/* Responsive Adjustments for smaller screens */
@media (max-width: 768px) {
  .footer-row {
    justify-content: center; /* Center columns on small screens */
    text-align: center; /* Ensure text inside columns is centered */
  }

  .footer-col {
    flex: 1 1 100%; /* Each column takes 100% width */
    padding: 10px;
    text-align: center; /* Align the content inside the column */
    display: flex;
    flex-direction: column; /* Stack the elements vertically */
    align-items: center; /* Center elements horizontally */
  }

  .footer-col img {
    max-width: 40%; /* Make image slightly bigger on mobile */
    height: auto;
    margin-bottom: 16px; /* Add space below the image */
  }

  .footer-col h3 {
    margin-bottom: 8px; /* Space between heading and times */
    margin-right: 2%;
  }

  .footer-times {
    margin-right: 2%;
    display: block; /* Stack the times vertically */
    margin-top: 16px; /* Add some space between image and times */
    text-align: center; /* Center times text */
  }

  .footer-times div {
    margin-right: 2%;
    margin-bottom: 12px; /* More space between the time items */
  }
    .footer-creds {
    font-size: 0.75em;
    margin-top: 1.5em;
    padding: 0 10px;
  }
}

@media (max-width: 480px) {
  .footer-col img {
    
    max-width: 50%; /* Make image bigger on very small screens */
    margin-bottom: 12px; /* Space for better layout */
  }

  .footer-times div {
    margin-right: 2%;
    margin-bottom: 8px; /* Less margin between time items */
  }
  .footer-creds {
    font-size: 0.7em;
    margin-top: 1.5em;
    padding: 0 8px;
  }
  
}
/* Main page */
html, body {
    overflow: auto; 
}
.container {
    display: flex;
    height: 100dvh;
    margin-bottom: 1%;
    margin-top: 1%;
    flex-direction: row;  /* Default: Display items side by side */
    overflow-y: auto;
}

.box1 {
    background-color: #00b7ff;
    width: 20dvw;
    min-height: 100dvh;  /* Default box1 height */
    overflow-y: auto;  /* Scroll if content overflows */
    box-sizing: border-box; 
   /* Hide scrollbar in Firefox */
    scrollbar-width: none; 
    -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar in WebKit (Chrome, Safari, new Edge) */
.box1::-webkit-scrollbar {
    display: none;
}

.box2 {
    background-color: #00b7ff;
    margin-left: 2%;
    width: 78dvw;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
   /* Hide scrollbar in Firefox */
    scrollbar-width: none; 
    -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar in WebKit (Chrome, Safari, new Edge) */
.box2::-webkit-scrollbar {
    display: none;
}

/* Media Queries for Responsiveness */

/* For medium and smaller screens (Tablets and below) */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;  /* Stack Box 1 and Box 2 vertically on smaller screens */
        align-items: center;  /* Center align the boxes */
    }

    .box1 {
        width: 90%;  /* Make box1 a bit smaller on smaller screens */
        min-height: 40dvh;  /* Set a smaller height for Box 1 */
        max-height: 50dvh;  /* Prevent Box 1 from becoming too tall */
        margin-bottom: 20px;  /* Add spacing between Box 1 and Box 2 */
        
        display: flex;                /* Center the box horizontally on the page */
        flex-direction: column;       /* Stack content vertically */
        align-items: center;          /* Center box1 content horizontally as a block */
        text-align: left;             /* Left-align text inside the box */
        margin: 0 auto;               /* Center the box horizontally in the page */
        padding: 20px;
        box-sizing: border-box;
        margin: 0 auto 15px;


    }


    .box2 {
        width: 90%;  /* Box 2 will take full width as well, but smaller than the original width */
    }
}

/* For mobile devices (portrait and smaller) */
@media (max-width: 768px) {
    .box1 {
        min-height: 30dvh;  /* Further reduce Box 1 height */
        max-height: 40dvh;  /* Box 1 should be even smaller */
        margin-bottom: 15px;  /* Add smaller spacing between the boxes */
        text-align: center;

        display: flex;                /* Center the box horizontally on the page */
        flex-direction: column;       /* Stack content vertically */
        align-items: center;          /* Center box1 content horizontally as a block */
        text-align: left;             /* Left-align text inside the box */
        margin: 0 auto;               /* Center the box horizontally in the page */
        padding: 20px;
        box-sizing: border-box;
        margin: 0 auto 15px;
    }

    
    .box2 {
        width: 90%;  /* Box 2 will still take full width */
    }
}

/* For very small screens (phones in portrait) */
@media (max-width: 480px) {
    .box1 {
        min-height: 25dvh;  /* Make Box 1 even smaller */
        max-height: 35dvh;  /* Prevent Box 1 from becoming too large */
        margin-bottom: 10px;  /* Smaller spacing between boxes */
        
        display: flex;                /* Center the box horizontally on the page */
        flex-direction: column;       /* Stack content vertically */
        align-items: center;          /* Center box1 content horizontally as a block */
        text-align: left;             /* Left-align text inside the box */
        margin: 0 auto;               /* Center the box horizontally in the page */
        padding: 20px;
        box-sizing: border-box;
        margin: 0 auto 15px;

    }

    
}





/* Grid layout for new comics (4*X) on openbaar/index */
.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);  /* Create 4 equal columns on large screens */
  gap: 60px;  /* Space between grid items */
  height: auto;
  padding: 20px; /* Add padding to prevent grid from touching the edges */
  box-sizing: border-box; /* Include padding in the total width calculation */
}

/* Grid items (individual comic cards) */
.grid-item {
  margin-top: 20px;
  padding: 10px;
  text-align: center;
  width: 100%; /* Make the item take full width inside its grid cell */
  height: auto; /* Adjust based on image aspect ratio */
  display: block;
  margin: auto;
  box-sizing: border-box;
}

/* Images inside the grid items */
.grid-item img {
  width: 150px;  /* Fixed width */
  height: 200px; /* Fixed height */
  object-fit: contain; /* Ensure image does not stretch, maintains aspect ratio */
}

/* Responsive adjustments for tablets and small screens */
@media (max-width: 1024px) {
  .grid-container {
    grid-template-columns: repeat(3, 1fr); /* 3 columns for medium screens (tablets) */
    gap: 30px; /* Reduce gap for medium screens */
  }
}

@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for small screens (like phones in portrait mode) */
    gap: 20px; /* Reduce gap further */
  }

  .grid-item {
    height: auto; /* Ensure the height adjusts dynamically for small screens */
  }
}

@media (max-width: 480px) {
  .grid-container {
    grid-template-columns: 1fr; /* 1 column for very small screens (phones in portrait mode) */
    gap: 15px; /* Smaller gap on very small screens */
  }

  .grid-item {
    height: auto; /* Adjust dynamically based on content */
  }
}


/* Table for search results in detail collection */
.grid-table {
  width: 70dvw; 
  border-collapse: collapse;
  border: 1px solid black;
  margin: 0 auto 2%; /* Center the table and add space at the bottom */
  margin-left: 2%;
  margin-right: 2%;
  padding: 20px; /* Add padding around the table to create space from the border */
  box-sizing: border-box; /* Include padding in the total width calculation */
}

/* Table header and cells */
.grid-table th,
.grid-table td {
  padding: 12px; /* Add padding inside the cells to space out content from borders */
  border: 1px solid black;
  text-align: left;
  word-wrap: break-word; /* Prevent long text from breaking the layout */
}

/* Optional wrapper to manage overflow on small screens */
.grid-table-wrapper {
  overflow-x: auto; /* Allow horizontal scrolling on smaller screens */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling for iOS devices */
}

/* Responsive adjustments for tablets and small screens */
@media (max-width: 768px) {
  .grid-table {
    width: 100%; /* Ensure table takes full width on smaller screens */
    margin-left: 0; /* Remove margin-left on smaller screens */
    padding: 10px; /* Adjust padding for smaller screens */
  }

  .grid-table th, 
  .grid-table td {
    padding: 8px; /* Adjust padding for smaller screens */
    font-size: 14px; /* Reduce font size for better fit */
  }

  /* Allow horizontal scrolling on very small screens */
  .grid-table-wrapper {
    overflow-x: auto; /* Ensure table can be scrolled horizontally */
  }
}

@media (max-width: 480px) {
  .grid-table th, 
  .grid-table td {
    padding: 6px; /* Less padding on very small screens */
    font-size: 12px; /* Further reduce font size */
  }

  .grid-table-wrapper {
    overflow-x: scroll; /* Ensure scrolling is enabled */
  }
}



/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 600px) {
  .topnav a:not(:first-child), .dropdown .dropbtn {
    display: none;
  }
  .topnav a.icon {
    float: right;
    display: block;
  }
}

/*  */
@media screen and (max-width: 600px) {
  .topnav.responsive {position: relative;}
  .topnav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
  .topnav.responsive .dropdown {float: none;}
  .topnav.responsive .dropdown-content {position: relative;}
  .topnav.responsive .dropdown .dropbtn {
    display: block;
    width: 100%;
    text-align: left;
  }
}

