html {
  overflow-x: hidden;
  height: 100%;
}

body {
  font-family: "Roboto Mono", monospace;
  font-size: 18px;
  background-image: url("../assets/blumblumblum-background.png");
  background-position: center;
  background-repeat: repeat;
  background-size: auto;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-y: hidden;
}

.container {
  font-family: arial;
  font-size: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0;
  text-align: center;
  border-radius: 15px;
  width: 100%;
  min-height: 100%;
  height: auto;
  padding: 20px 0;
  box-sizing: border-box;
  justify-content: space-between;
}

.logo-container {
  background-color: rgb(255, 255, 255, .9);
  padding: 30px 40px;  /* Increased padding to give more space */
  border-radius: 40px;
  margin-bottom: 20px;
  display: inline-block;
  text-align: center;
  width: fit-content;
  max-width: 500px;
  margin-top: 10px;
}

.logo {
  width: 100%;
  height: auto;
  max-width: 350px;
}

ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 0;
  margin: 10px auto;
  position: relative;
  width: 70%;
  max-width: 500px;
}

li {
  position: relative;
  border-radius: 50%;
  padding: 20px;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(255, 255, 255, .9);
  transition: all 0.3s ease;
  margin: 0;
  flex: 0 0 auto;
}

.footer {
  bottom: 0;
  left: 0;
  right: 0;
  font-size: smaller;
  background-color: rgb(255, 255, 255, .9);
  text-align: center;
  border-radius: 30px;
  margin: 10px auto;
  z-index: 2;
  display: block;
  width: 60%;
  max-width: 400px;
}

.links i {
  padding-top: 5%;
  color: #971a1d;
  transition: all 0.3s ease;
}

.social-links li {
  margin: 0;
  display: flex;
}

.social-link:hover i.fa-x-twitter {
  color: black;
}
.social-link:hover i.fa-instagram {
  color: #e1306c;
}
.social-link:hover i.fa-strava {
  color: #fc4c02;
}
.social-link:hover i.fa-github {
  color: #6cc644;
}
.social-link:hover i.fa-spotify {
  color: #1db954;
}
.social-link:hover i.fa-drumstick-bite {
  color: #964b00;
}
.social-link:hover i.fa-camera {
  color: gray;
}

/* Simpler hover effect */
li:hover > a {
  transform: scale(1.1);
}

li:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

li:hover > a {
  transform: scale(1);
}

/* Update mobile view to keep items in a single column */
@media (max-width: 768px) {
  ul {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  
  li {
    margin: 10px 0;
    /* Keep these properties explicitly for mobile */
    background-color: rgb(255, 255, 255, .9);
    border-radius: 50%;
    padding: 20px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .container {
    padding: 20px 0;
  }

  body {
    background-size: cover;
    min-height: 100vh;
    height: 100%;
    position: fixed;
    width: 100%;
  }

  .container {
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* For medium-sized screens, ensure max 3 items per row */
@media (min-width: 769px) and (max-width: 1024px) {
  ul {
    width: 60%;
    max-width: 400px;
  }
}

.logo {
  max-width: 100%;
  height: auto;
}

/* Spotify Dropdown Styles */
.spotify-dropdown-container {
    position: relative;
}

.dropdown-trigger {
    cursor: pointer;
}

.dropdown-trigger i {
    color: #971a1d;
    transition: all 0.3s ease;
}

.dropdown-trigger:hover i {
    color: #1db954;
}

.dropdown-content {
    position: fixed;
    left: calc(100% + 2rem);
    top: 50%;
    transform: translateY(-50%) !important;
    width: 500px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.dropdown-content.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* Mobile styles - override desktop positioning completely */
@media (max-width: 768px) {
    .dropdown-content {
        position: absolute !important;
        left: 50% !important;
        right: auto !important;
        top: 100% !important;
        transform: translateX(-50%) !important;
        width: 90vw;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .dropdown-content.active {
        transform: translateX(-50%) !important;
    }
    
    /* Adjust container for mobile */
    .spotify-dropdown-container {
        position: relative;
        margin-bottom: 20px;
    }
    
    /* Add space below the dropdown when active */
    .spotify-dropdown-container.active {
        margin-bottom: calc(352px + 3rem);
    }
    
    /* Ensure content is scrollable on mobile */
    .spotify-dropdown-container.active + li,
    .spotify-dropdown-container.active ~ .footer {
        margin-top: calc(352px + 2rem);
    }
}

/* Add hover color for music icon */
.social-link:hover i.fa-music {
    color: #1db954;
}

/* Add specific style for the dropdown container to prevent zoom */
.spotify-dropdown-container:hover .dropdown-content {
    transform: translateY(-50%) !important;
}

/* Ensure the music icon still zooms */
.spotify-dropdown-container:hover > a {
    transform: scale(1.1);
}

.spotify-dropdown-container:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.spotify-dropdown-container:hover > a {
    transform: scale(1);
}

/* Add styles for smooth transitions */
.dropdown-content {
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

/* Prevent any transform on the content when container is hovered */
.spotify-dropdown-container:hover .dropdown-content.active {
    transform: translateY(-50%) !important;
}

/* Add specific mobile landscape handling */
@media (max-width: 768px) and (orientation: landscape) {
    .container {
        padding-bottom: 4rem;
    }
    
    .spotify-dropdown-container.active {
        margin-bottom: calc(352px + 4rem);
    }
}