.navbar {
  overflow: hidden;
  background-color: #4CAF50;
  display: flex;
  justify-content: center;
}

.navbar a, .navbar .dropdown {
  display: block;
  color: black;
  text-align: center;
  padding: 4px 6px;
  text-decoration: none;
}

.drop {
  display: block;
  color: black;
  text-align: center;
  padding: 4px 6px;
  text-decoration: none;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Base styles for all blocks */
.block, .block1 {
  background-color: #1abc9c;
  height: 300px;
  position: relative;
  box-sizing: border-box;
  padding: 5px;
  margin: 5px;
}

.block .content, .block1 .content {
  overflow-y: auto;
  height: 90%;
}

.block-heading {
  position: sticky;
  top: 0;
  background-color: #1abc9c;
  padding: 5px 0;
  font-weight: bold;
  text-align: center;
}

/* Container styles */
.blocks {
  display: flex;
  flex-wrap: nowrap;  /* Prevent wrapping by default */
  margin: 0 -5px;     /* Compensate for block margins */
}

/* Responsive layout */
@media (min-width: 921px) {
  /* First row - three equal columns */
  .blocks:first-of-type {
    flex-direction: row;
  }
  
  .blocks:first-of-type .block {
    flex: 1;
    max-width: calc(33.33% - 10px);
  }
  
  /* Second row - two equal columns */
  .blocks:last-of-type {
    flex-direction: row;
  }
  
  .blocks:last-of-type .block1 {
    flex: 1;
    max-width: calc(50% - 10px);
  }
}

/* Mobile layout */
@media (max-width: 680px) {
  .blocks {
    flex-direction: column;
  }
  
  .block, .block1 {
    width: calc(100% - 10px);
    margin: 5px;
  }
}

/* Scrollbar styles */
.content::-webkit-scrollbar {
  width: 12px;
}

.content::-webkit-scrollbar-track {
  background-color: #f0f0f0;
}

.content::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 10px;
}

.content::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Global scrollbar styles */
body::-webkit-scrollbar,
html::-webkit-scrollbar {
  width: 12px;
}

body::-webkit-scrollbar-track,
html::-webkit-scrollbar-track {
  background-color: #f0f0f0;
}

body::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 10px;
}

body::-webkit-scrollbar-thumb:hover,
html::-webkit-scrollbar-thumb:hover {
  background: #555;
}