/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: Arial, sans-serif;
  background-color: #111;
  color: #fff;
  overflow-y: scroll;
}

/* 3D Scene */
#three-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none; /* Ensure clicks pass through */
}

.overlay {
  position: relative;
  z-index: 3; /* Higher than #three-canvas */
  width: 100%;
  overflow-y: auto;
  height: 100vh;
}


/* Sections */
#sections {
  display: flex;
  flex-direction: column;
}

section {
  padding: 80px 20px; /* Increased padding for spacing */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

section h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

section p {
  font-size: 1.2rem;
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Image Grid */
.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.images-grid img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.images-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.3);
}

/* Menu */
.menu {
  position: fixed;
  top: 20px;
  left: 20px;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 10px;
  border-radius: 5px;
  z-index: 9999;
}

.burger {
  font-size: 1.2rem; /* Reduced size for mobile */
  cursor: pointer;
  color: white;
}

.menu-items {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 40px;
  left: 0;
  background-color: rgba(0, 0, 0, 0.9);
  border-radius: 5px;
  padding: 10px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.menu-items.animated {
  opacity: 1;
  transform: translateY(0);
}

.menu-items.hidden {
  display: none;
}

.menu-items a {
  padding: 10px 20px;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  margin-bottom: 5px;
}

.menu-items a:hover {
  background-color: #444;
}

/* Logo */
.logo {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: 150px;
}

/* Audio Player */
#audio-player {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 3;
  padding: 10px;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.player-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.track-info {
  font-size: 0.8rem;
  color: #ccc;
  text-align: center;
  margin-bottom: 5px;
}

.player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.audio-controls {
  flex: 1;
}

.skip-button,
.expand-arrow {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.skip-button:hover,
.expand-arrow:hover {
  color: #aaa;
}

/* Playlist */
#playlist {
  margin-top: 10px;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.9);
  border-radius: 5px;
  max-height: 200px;
  overflow-y: auto;
  width: 100%;
}

#playlist.hidden {
  display: none;
}

.playlist-folder {
  font-weight: bold;
  color: #fff;
  margin-top: 10px;
  font-size: 1rem;
  text-transform: uppercase;
}

.playlist-item {
  color: #ccc;
  padding: 5px;
  cursor: pointer;
}

.playlist-item:hover {
  background-color: #444;
  color: #fff;
}

/* Lullabies Gallery */
.lullabies-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.lullabies-gallery button {
  background-color: #444;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.lullabies-gallery button:hover {
  background-color: #666;
  transform: scale(1.05);
}

/* PDF Downloads */
.pdf-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.pdf-downloads button {
  background-color: #444;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.pdf-downloads button:hover {
  background-color: #666;
  transform: scale(1.05);
}

/* Mobile Apps Section */
#mobile-apps {
  padding: 60px 20px;
  text-align: center;
}

.app-container {
  max-width: 600px;
  margin: 0 auto;
}

.app-link {
  display: inline-block;
  padding: 10px 20px;
  font-size: 1rem;
  color: #fff;
  background-color: #444;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.app-link:hover {
  background-color: #666;
}

/* VR Experiments Section */
#vr-experiments {
  padding: 60px 20px;
  text-align: center;
}

.vr-project {
  margin-bottom: 40px;
}

.vr-video {
  max-width: 100%;
  width: 400px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.3);
}
.vr-project {
  margin-bottom: 40px;
  text-align: center;
}

.vr-project h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #fff;
}

.vr-project p {
  font-size: 1.1rem;
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 20px;
  padding: 0 10px; /* Add padding for better readability */
}

.steam-widget {
  width: 100%;
  max-width: 646px; /* Set max-width to prevent it from exceeding the design */
  margin: 0 auto; /* Center the widget */
  overflow: hidden; /* Prevent overflow on smaller screens */
}

.steam-widget iframe {
  width: 100%; /* Responsive width */
  height: 190px; /* Keep consistent height */
  border: none; /* Remove borders */
}
#contact {
  padding: 60px 20px;
  text-align: center;
}

#contact h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

#contact p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.form-group {
  margin-bottom: 15px;
}

label {
  font-size: 1rem;
  color: #ccc;
  display: block;
  margin-bottom: 5px;
}

input, textarea {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #444;
  border-radius: 5px;
  background-color: #222;
  color: #fff;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #666;
}

button {
  padding: 10px 20px;
  font-size: 1rem;
  color: #fff;
  background-color: #444;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #666;
}
#contact {
    padding: 60px 20px;
    text-align: center;
}

#contact h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

#contact form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

#contact input,
#contact textarea {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #222;
    color: #fff;
    outline: none;
}

#contact textarea {
    height: 100px;
    resize: none;
}

#contact button {
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    background-color: #444;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#contact button:hover {
    background-color: #666;
}

#form-status {
    margin-top: 15px;
    font-size: 1rem;
    color: #fff;
}
/* Music Section Subsections */
#music-videos,
#sheet-music {
    text-align: center;
}

#music-videos h2,
#sheet-music h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
}

#music-videos p,
#sheet-music p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 20px;
}

.video-links {
    font-size: 1rem;
    line-height: 1.8;
}

.video-link {
    color: #4fa1ff;
    text-decoration: none;
}

.video-link:hover {
    text-decoration: underline;
}

/* Button Styling for PDFs */
.pdf-downloads button {
    display: block;
    margin: 10px auto;
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #444;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pdf-downloads button:hover {
    background-color: #666;
}
#sheet-music {
    text-align: center; /* Center align the text */
    margin-top: 40px;
}

#sheet-music p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 20px;
    text-align: center; /* Ensure paragraph is centered */
}
#listen-button-container {
  z-index: 10; /* Ensure it's above the overlay */
  position: relative;
  text-align: center;
  margin: 20px 0;
}

#listen-button {
  z-index: 11;
  position: relative;
  padding: 10px 20px;
  font-size: 1.2rem;
  background-color: #444;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#listen-button:hover {
  background-color: #666;
}

#chatbot-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #444;
    color: #fff;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: background-color 0.3s;
}
#chatbot-icon:hover {
    background-color: #666;
}
#chatbot-window {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 300px;
    height: 400px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow: hidden;
}
#chatbot-window.hidden {
    display: none;
}
#chatbot-header {
    background: #333;
    color: #fff;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#chatbot-header h3 {
    margin: 0;
    font-size: 1.2rem;
}
#chatbot-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}
#chatbot-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    color: #fff;
    font-size: 0.9rem;
}
#chatbot-messages .user {
    text-align: right;
    color: #ccc;
}
#chatbot-messages .bot {
    text-align: left;
    color: #fff;
}
#chatbot-input {
    display: flex;
    padding: 10px;
    background: #222;
}
#chatbot-text {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 5px;
    background: #333;
    color: #fff;
}
#chatbot-send {
    background: #444;
    border: none;
    color: #fff;
    padding: 8px;
    margin-left: 5px;
    border-radius: 5px;
    cursor: pointer;
}
#chatbot-send:hover {
    background: #666;
}
#chatbot-new-session {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    margin-right: 10px;
}
.video-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.video-link {
    display: block;
    width: 200px;
    height: 112px; /* Aspect ratio for YouTube thumbnails */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.video-link:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}
.email-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1.2rem;
    color: #fff;
    background-color: #444;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.email-link:hover {
    background-color: #666;
    transform: scale(1.05);
}


/* Responsive adjustments */
@media (max-width: 768px) {
  section {
    padding: 80px 20px;
  }

  section h1 {
    font-size: 2rem;
  }

  section p {
    font-size: 1rem;
  }
  .vr-project h2 {
    font-size: 1.8rem; /* Slightly smaller heading on mobile */
  }

  .vr-project p {
    font-size: 1rem;
  }

  .steam-widget iframe {
    height: 160px; /* Reduce height for smaller screens */
  }

  .burger {
    font-size: 1.2rem;
  }

  .audio-controls {
    height: 40px;
  }
}
