/* Background settings for the body */
body {
  background-image: url('../images/paperbackground.jpeg'); 
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  margin: 0;
  height: 100vh;
  overflow: auto; /* Prevents scrolling if content overflows */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Wrapper for the heading and covers */
.heading-container {
  position: relative;
  width: 90vw;  /* Responsive width (relative to viewport) */
  height: 90vw; /* Responsive height to maintain circle */
  max-width: 800px;  /* Maximum width for large screens */
  max-height: 800px; /* Maximum height for large screens */
  margin: 0 auto;
  border-radius: 60%; /*circular shape */
  overflow: visible; /* Ensure visibility */
  z-index: 2;
}

/* Center "NUFF SAID" heading */
#headercover {
  position: absolute;
  z-index: 2;
  width: 40%;  /* Responsive size */
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Covers (images surrounding the header) ***************************************************************************/
.cover {
  width: 20%;  /* Responsive width */
  height: 20%;
  object-fit: contain;
}

/* Clickable cover links */
.cover-link {
  position: absolute;
  width: 27%;
  height: 23%;
  text-decoration: none;
  cursor: pointer;
  z-index: 3;
}

/* Ensure hover and default images have the same size */
.cover-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

/* Default image */
.cover-link img.default {
  opacity: 1;
  transition: opacity 0.2s ease;
}

/* Hover image hidden initially */
.cover-link img.hover {
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Swap images on hover */
.cover-link:hover img.hover {
  opacity: 1;
}

.cover-link:hover img.default {
  opacity: 0;
}

/* Positions for category links (calculated to maintain circular layout) */
#collegelink {
  top: 14%;
  left: 60%;
  transform: translate(-50%, 0);
}

#fitnesslink {
  top: 45%;
  left: 85%;
  transform: translate(-50%, -50%);
}

#nutritionlink {
  bottom: 5%;
  left: 73%;
  transform: translate(-50%, -50%);
}

#korealink {
  bottom: 13%;
  left: 38%;
  transform: translate(-50%, 0);
}

#codelink{
  top: 15%;
  left: 27%;
  transform: translate(-50%, 0);
}

#selflink {
  top: 54%;
  left: 15%;
  transform: translate(-50%, -50%);
}


/*SOCIALS*************************************************************************************************/
.socials {
  position: absolute;
  bottom: 10px; /* Keeps it near the bottom */
  left: 50%; /* Centers it horizontally */
  transform: translateX(-50%); /* Adjusts for centering */
  z-index: 3;
  padding: 10px 0;
}


.socials a {
  text-decoration: none;
  margin: 0 2px; /* Add spacing between icons */
}

.socials img {
  width: 30px; /* Adjust icon size */
  height: 30px; /* Keep aspect ratio consistent */
  display: inline-block;
  transition: transform 0.3s ease;
}

.socials img:hover {
  transform: scale(1.2); /* Slight zoom on hover */
}

/* Responsive for mobile screens *******************************************************************************************************/
@media (max-width: 800px) {
  .heading-container {
    width: 90vw;  /* Slightly larger for smaller screens */
    height: 90vw;
  }

  #headercover {
    width: 35%;  /* Larger text center for mobile */
  }

  .cover-link {
    width: 22%;  /* Increase clickable area */
    height: 22%;
  }

  #collegelink {
    top: 10%;
    left: 48%;
    transform: translate(-50%, 0);
  }
  
  #codelink{
    top: 24%;
    left: 21%;
    transform: translate(-50%, 0);
  }
  
  #fitnesslink {
    top: 28%;
    left: 75%;
    transform: translate(-50%, -50%);
  }
  
  #korealink {
    bottom: 14%;
    left: 50%;
    transform: translate(-50%, 0);
  }
  
  #selflink {
    top: 57%;
    left: 15%;
    transform: translate(-50%, -50%);
  }
  
  #nutritionlink {
    bottom: 25%;
    left: 80%;
    transform: translate(-50%, -50%);
  }

  .socials img {
    width: 10px; /* Adjust icon size */
    height: 10px; /* Keep aspect ratio consistent */
  }
  
  .socials {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
  }

}

/* Responsive for very small devices */
@media (max-width: 480px) {
  .cover-link {
    width: 24%;
    height: 24%;
  }

  .socials img {
    width: 15px; /* Adjust icon size */
    height: auto; /* Keep aspect ratio consistent */
  }

  /* Wrapper for the heading and covers */
.heading-container {
  position: relative;
  width: 90vw;  /* Responsive width (relative to viewport) */
  height: 90vw; /* Responsive height to maintain circle */
  max-width: 800px;  /* Maximum width for large screens */
  max-height: 800px; /* Maximum height for large screens */
  margin: 0 auto;
  border-radius: 60%; /* Keeps circular shape */

}

/* Center "NUFF SAID" heading */
#headercover {
  position: absolute;
  z-index: 2;
  width: 43%;  /* Responsive size */
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Covers (images surrounding the header) */
.cover {
  width: 12%;  /* Responsive width */
  height: 12%;
  object-fit: contain;
}

  #collegelink {
    top: 10%;
    left: 45%;
    transform: translate(-50%, 0);
  }
  
  #fitnesslink {
    top: 27%;
    left: 80%;
    transform: translate(-50%, -50%);
  }
  
  #korealink {
    bottom: 8%;
    left: 50%;
    transform: translate(-50%, 0);
  }
  
  #codelink{
    top: 23%;
    left: 18%;
    transform: translate(-50%, 0);
  }  

  #selflink {
    top: 67%;
    left: 15%;
    transform: translate(-50%, -50%);
  }
  
  #nutritionlink {
    bottom: 20%;
    left: 82%;
    transform: translate(-50%, -50%);
  }

  .socials {
    left: 70%;
  }

  .socials img {
    width: 15px; /* Adjust icon size */
    height: 15px; /* Keep aspect ratio consistent */
  }
}

/* Responsive for tablets */
@media (min-width: 768px) and (max-width: 1024px) {
  .heading-container {
    width: 85vw;
    height: 85vw;
  }

  .cover-link {
    width: 20%;
    height: 20%;
  }

  #headercover {
    width: 45%;
  }

  .socials img {
    width: 25px; /* Adjust icon size */
    height: 25px; /* Keep aspect ratio consistent */
    display: inline-block;
  }

  .socials {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
  }
}
