html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  background-color: #1C77C3;
  color: white;
  font-family: sans-serif;
}

.home-page .main-content,
.about-page .main-content {
  transform: none;
  zoom: 100%;
  width: 100% ;
}

/* Full layout structure */
.full-layout {
  display: flex;
  min-height: 100vh;
  width: 100vw;
  box-sizing: border-box; 
} 

/* Side margins */
.side-margin {
  background-color: black;
  width: 200px;
  height: 100vh;
}

/* Main content area */
.main-content {
  flex-grow: 1;
  background-color: #1C77C3;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
}

/* Title image */
.title-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

/* Container holding left menu and TV */
.container {
  display: flex;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 1000px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* Hover image swap */
.hover-swap {
  position: relative;
  display: inline-block;
}

.hover-swap .default,
.hover-swap .hover {
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.3s ease;
}

.hover-swap .default {
  z-index: 1;
  opacity: 1;
}

.hover-swap .hover {
  z-index: 2;
  opacity: 0;
}

.hover-swap:hover .hover {
  opacity: 1;
}

.hover-swap:hover .default {
  opacity: 0;
}

/* Left menu */
.left-menu {
  display: flex;
  flex-direction: column;
  gap: 20px; /* Prevent overlap */
  align-items: center;
}

/* Hover image swap setup */
.tv-link-button {
  position: relative;
  width: 300px;
  height: auto; /* Allows natural height */
  display: block;
  padding: 50px;
}

.tv-link-button .default,
.tv-link-button .hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity 0.3s ease;
}

.tv-link-button .default {
  opacity: 1;
  z-index: 1;
}

.tv-link-button .hover {
  opacity: 0;
  z-index: 2;
}

.tv-link-button:hover .default {
  opacity: 0;
}

.tv-link-button:hover .hover {
  opacity: 1;
}

/* Ensure spacing still works correctly */
.tv-link-button img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
}

/* TV wrapper */
.tv-wrapper {
  width: 500px;
  height: 526.31px; /* Set to match actual TV image height */
  position: relative;
}

.tv-image {
  width: 100%;
  height: auto;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.3s ease;
  opacity: 0;
  z-index: 1;
}

.tv-image.active {
  opacity: 1;
  z-index: 2;
}

/* Bottom link buttons (About / Contact) */
.aboutlinks {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 60px;
  width: 100%;
  flex-wrap: wrap;
}

.bottom-link-button {
  width: 150px;
  height: auto;
  position: relative;
}

.bottom-link-button img {
  width: 100%;
  height: auto;
  display: block;
}

/* About page layout */
/* Manila folder look */
.folder {
  background-color: #F5F3BB; /* soft manila color */
  border: 2px solid #c2b280;
  border-radius: 6px;
  padding-top: 40px;
  width: 90%;
  max-width: 1500px;
  min-height: 800px;
  margin: 20px auto;
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.2);
  position: relative;
}


.folder-tabs {
  display: flex;
  gap: 10px;
  padding: 0 20px;
  height: 40px;
  align-items: flex-end;
  background: transparent; /* No background here */
  position: absolute;
  top: -40px; /* Pull it above the folder */
  left: 20px;
}

.tab {
  position: relative;
  background: #f5d282; /* folder tab color */
  padding: 10px 20px;
  border-radius: 5px 5px 0 0;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  user-select: none;
  transition: background-color 0.3s ease;
}

.tab:hover {
  background-color: #e4c663;
}

.tab a, .tab span {
  color: #333;
  text-decoration: none;
  white-space: nowrap;
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fffef5;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 5px 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  width: max-content;
  z-index: 1000;
}

/* Dropdown links */
.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background-color: #f0e5b8;
}

/* Show dropdown with animation on hover */
.tab.dropdown:hover .dropdown-menu {
  max-height: 500px; /* large enough to fit all items */
  opacity: 1;
}

/* Folder body with content */
.folder-body {
  display: flex;
  gap: 40px;
  padding: 40px;
  flex-wrap: wrap;
}

.left-photo {
  flex-shrink: 0;
  width: 40%;
}

.left-photo img {
  width: 100%;
  height: auto;
}


.about-text {
  position: relative;
  flex-grow: 1;
  max-width: 600px;
  padding: 10px;
  font-size: 16px;
  line-height: 25px; /* Match with background spacing */
  color: #333;
  background: 
    repeating-linear-gradient(
      to bottom,
      #fdfdfd,
      #fdfdfd 24px,
      #c2c2c2 25px
    );
  border: 1px solid #ccc;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
  font-family: 'Patrick Hand', cursive;
}

.abouttext {
  position: absolute;
  top: 0;
  right: 0;
  transform: rotate(15deg) translate(50px);
  width: 60%;
  height: auto;
  
}

.contact-page {
  background-color: #F5F3BB;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.contact-page .contact-wrapper {
  position: relative;
  width: 92vw;       /* responsive width */
  max-width: 92%; /* optional max width */
}

.contact-page .contact-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* Base for all click areas */
.contact-page .click-area {
  position: absolute;
  display: block;
}

/* Responsive areas using % relative to image container */
.click-area.top-left {
  top: 12%;
  left: 5%;
  width: 12%;
  height: 22%;
}

.click-area.center.first {
  top: 35%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 270px;
}

.click-area.center.second {
  top: 57%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 270px;
}
