/* Existing CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.hidden {
  display: none;
}

body {
  font-family: Arial, sans-serif;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #6478b4;
}

.container {
  background: white;
  width: 95%;
  max-width: 1200px;
  height: 85vh;
  overflow-y: auto; /* Restore vertical scrolling */
  margin-bottom: 70px;
  display: flex;
  justify-content: center; /* Center the content horizontally */
  /* border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  position: relative;
  */
}

#p3 {
  border: 1px solid #ccc;
  border-radius: 10px;
  /* overflow-y: auto; */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

.header {
  text-align: center;
  margin-bottom: 20px;
}

.content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.label {
  display: block;
  background: #cfd8dc;
  padding: 5px;
  border-radius: 5px;
  text-align: center;
  margin-bottom: 10px;
}

.img-wrapper {
  text-align: center;
  margin: 20px 0;
}

.options {
  text-align: center;
  margin-top: 20px;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

button {
  padding: 10px 15px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  background-color: #ededed;
  font-weight: bold;
}

button:hover {
  background-color: #d4d4d4;
}

.lesson {
  margin-bottom: 20px;
  padding: 10px;
  border-bottom: 1px solid #ccc;
}

@media (max-width: 768px) {
  .container {
      width: 95%;
  }
}

/* New CSS for bottom menu */
.bottom-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  background: #fff;
  border-top: 1px solid #ccc;
  padding: 10px 0;
}

.bottom-menu button {
  padding: 10px 15px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  background-color: #ededed;
  font-weight: bold;
}

.bottom-menu button:hover {
  background-color: #d4d4d4;
}

/* Styles to hide and show the bottom menu on smaller screens */
.bottom-menu.show {
  display: flex !important;
}

.bottom-menu.hide {
  display: none;
}

.glow {
  box-shadow: 0px 0px 20px 10px rgba(0, 255, 255, 0.8);
}

.img-next {
  width: 150px;
  transition: width 0.3s ease;
}

.img-next:hover {
  width: 180px;
}

@media print {
  body * {
    visibility: hidden;
  }
  .container, .container * {
    visibility: visible;
  }
  .container {
    position: absolute;
    left: 0;
    top: 0;
  }
}

/* Additional responsive adjustments */
@media (max-width: 600px) {
  .container {
    width: 90%;
    height: auto;
  }

  .content, .label, .img-wrapper, .options, .buttons, .lesson, .bottom-menu {
    padding: 10px;
  }

  button, .bottom-menu button {
    padding: 8px 10px;
    font-size: 14px;
  }

  .img-next {
    width: 100px;
  }

  .img-next:hover {
    width: 120px;
  }

  .bottom-menu {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .container {
    width: 100%;
    height: auto;
    padding: 10px;
  }

  .header {
    font-size: 18px;
  }

  button, .bottom-menu button {
    padding: 6px 8px;
    font-size: 12px;
  }

  .img-next {
    width: 80px;
  }

  .img-next:hover {
    width: 100px;
  }

  .bottom-menu {
    flex-direction: column;
    gap: 8px;
  }
}
