
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  color: #333;
}

/* Header */
.header {
  background-color: #333;
  color: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  width: 100%;
  z-index: 1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header h1 {
  font-size: 1.4rem;
  margin: 0;
}

.header .ig-link {
  display: flex;
  align-items: center;
  padding-right: 4%;
}

.header .ig-link img {
  height: 3.75rem;
  width: 3.75rem;
  margin-left: 1.25rem;
  transition: transform 0.3s ease;
}

.menu-icon {
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* Sidebar otv */
.menu-toggle {
  display: none;
}

.container {
  display: flex;
  width: 100%;
  margin-top: 3.75rem;
}

/* Sidebar */
.sidebar {
  width: 15.625rem; 
  background-color: #f4f4f4;
  padding: 1rem;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  height: calc(100vh - 3.75rem);
  overflow-y: auto;
  position: fixed;
  left: -15.625rem;
  top: 3.75rem;
  transition: left 0.3s ease;
}

.sidebar h2 {
  text-align: center;
  margin-bottom: 1.25rem;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar ul li {
  margin-bottom: 0.625rem;
}

.sidebar ul li a {
  text-decoration: none;
  color: #555;
  padding: 0.625rem;
  display: block;
  border-radius: 0.3125rem;
  transition: background-color 0.3s;
}

.sidebar ul li a:hover {
  background-color: #ddd;
}

.sidebar footer {
  text-align: center;
  font-size: 0.875rem;
  color: #777;
  margin-top: 1.25rem;
}

/*main*/
.main-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 3.75rem);
  padding-left: 15.62rem; 
  transition: all 0.3s ease;
  width: 100%;
}

/*galerija */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding: 1.25rem;
  margin-top: 1.25rem;
  width: 90%;
  max-width: 1200px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 0.625rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  background-color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.gallery-image {
  height: 18.75rem;
  width: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0.625rem 0.625rem 0 0;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 3.75rem;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  border-radius: 0.625rem;
}

.close {
  position: absolute;
  top: 1.25rem;
  right: 2.1875rem;
  color: #fff;
  font-size: 2.5rem;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close:hover {
  color: #bbb;
}

/* Windows */
.windows-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.625rem;
  margin-top: 62.5rem;
  width: 90%;
  max-width: 1200px;
}

.embed-container {
  width: 90%;
  height: 31.25rem;
  background: white;
  border-radius: 0.9375rem;
  overflow: hidden;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.embed-container h2 {
  text-align: center;
  margin-bottom: 0.625rem;
}

.embed-container iframe {
  width: 100%;
  height: 90%;
  border: none;
}


/* Sidebar */
.menu-toggle:checked ~ .container .sidebar {
  left: 0;
}

.menu-toggle:checked ~ .container .main-content {
  margin-left: 12.5rem;
  margin-right: 3.125rem;
}

/* Responsive */
@media (max-width: 768px) {
  .main-content {
    margin-left: 0;
    width: 100%;
    padding-left: 0;
  }

  .menu-toggle:checked ~ .container .sidebar {
    width: 100%;
    left: 0;
  }

  .menu-toggle:checked ~ .container .main-content {
    margin-left: 0;
    margin-right: 0;
  }

  .windows-container {
    flex-direction: column;
    align-items: center;
    margin-top: 5rem;
  }

  .embed-container {
    width: 95%;
    height: 25rem;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .header h1 {
    font-size: 1.25rem;
  }

  .header .ig-link img {
    height: 2.8125rem;
    width: 2.8125rem;
  }
  
  .sidebar {
    text-align: center;
    font-size: 1.6rem;
  }
  
  .game-area {
    height: 20rem;
  }
  
  @keyframes fall {
    to {
      transform: translateY(20rem);
    }
  }
}

@media (max-width: 480px) {
  .header h1 {
    font-size: 1.1rem;
  }
  
  .header .ig-link img {
    height: 2.5rem;
    width: 2.5rem;
    margin-left: 0.5rem;
  }
  
  .gallery-image {
    height: 15rem;
  }
  
  .embed-container {
    height: 20rem;
  }
  
  .game-area {
    height: 15rem;
  }
  
  @keyframes fall {
    to {
      transform: translateY(15rem);
    }
  }
}