/* Global Styles */
html {
  overflow-x: hidden; /* Disable horizontal scroll */
  overflow-y: auto; /* Allow vertical scroll */
}

body {
  font-family: 'RocknRollOne', sans-serif;
  background-color: #f0f0f0; /* Default background */
  color: #333;
  margin: 0;
  text-align: center;
  background-image: linear-gradient(rgba(2, 38, 32, 0.90), rgba(10, 126, 163, 0.75)), url('images/pattern-triforce.png');
  overflow-x: hidden; /* Disable horizontal scroll */
  overflow-y: auto; /* Allow vertical scroll */
}

/* Ensure header is relatively positioned */
header {
  position: relative;  /* Needed for absolute positioning of child elements */
  width: 100%;
  padding: 0px 0;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.85); /* Semi-transparent black */
  color: #f7f1e1; /* Off-white (cream) text color */
}

/* Add Zelda insignia (the repeating ribbon) */
header::after {
  content: "";
  position: absolute;
  bottom: -31px;  /* Align it to the very bottom of the header */
  left: 0;
  width: 100%;  /* Make it span the entire width of the header */
  height: 60px;  /* Adjust the height to match the logo's size */
  background-image: url('images/hyrule_rule.png');  /* Zelda insignia (ribbon) image */
  background-repeat: repeat-x;  /* Repeat horizontally across the width */
  background-position: bottom center;  /* Position it at the bottom and center */
  background-size: auto 60px;  /* Adjust the size if needed, make sure height is 60px */
  z-index: 1;  /* Ensure it's above any background but below other content */
}

/* Position the language selector to the right */
.language-selector {
  padding: 10px 30px;
  text-align: right;  /* Vertically center the flags */
  z-index: 10; /* Above other elements */
}

#languageIcon {
  cursor: pointer;
  width: 3rem; 
  height: auto;  /* Maintain aspect ratio */
  transition: transform 0.2s ease;
}


#languageIcon:hover {
  transform: scale(1.1);  /* Zoom the image slightly on hover */
}


footer {
  padding: 15px 0;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.85); /* Semi-transparent black for header */
  width: 100%;
  color: #f7f1e1; /* Off-white (cream) text color */
}

header a, footer a {
  text-decoration: none;
  color: inherit;
}

header h1 {
  font-family: 'HyliaSerif', sans-serif;
  font-size: 2.5rem;
  margin: 0;
  color: #b99f65; /*Gold*/
}

textarea, button, select {
  padding: 10px;
  margin: 10px;
  font-size: 1.2em;
}

/* Button Styles */
button, select {
  padding: 12px 20px;  /* Add more padding for larger buttons */
  margin: 10px;
  font-size: 1.2em;
  font-family: 'ReggaeOne', sans-serif;
  background-color: #28a745;  /* Green background for buttons */
  color: white;  /* White text color */
  cursor: pointer;
  border: none;
  border-radius: 8px;  /* Rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);  /* Subtle shadow effect */
  transition: all 0.3s ease;  /* Smooth transition for color, box-shadow */
}

/* Button Hover Effect */
button:hover, select:hover {
  background-color: #218838;  /* Darker green on hover */
  transform: translateY(-2px);  /* Slight lift effect */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);  /* More pronounced shadow */
}

/* Button Focus Effect */
button:focus, select:focus {
  outline: none;  /* Remove the default outline */
  box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.5);  /* Green glow on focus */
}

/* Disable button style */
button:disabled, select:disabled {
  background-color: #d6d6d6;  /* Grey background for disabled buttons */
  color: #999;  /* Lighter text */
  cursor: not-allowed;  /* Show disabled cursor */
  box-shadow: none;  /* Remove shadow when disabled */
}

textarea {
  border-radius: 5px;
  border: 1px solid #ccc;
  padding: 10px;
  font-size: 1em;
  width: 90%;
}

#translatedText {
  font-family: 'RocknRollOne', sans-serif;
  font-size: 2.5em;
  color: #333;
  word-wrap: break-word;  /* Allow breaking words with no space */
  word-break: break-word; /* Force word break */
  overflow-wrap: break-word; /* More reliable word breaking */
  white-space: normal; /* Allow line breaks */
  max-width: 100%; /* Prevent overflow */
}

/* Page Content Styles */
.content {
  max-width: 75%;
  margin: 30px auto;
  padding: 0px;
}

.section {
  margin-bottom: 30px;
  background-color: #f7f1e1; /* Off-white (cream) background */
  border: 2px solid #c5a200; /* Gold borders around each block */
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-wrap: wrap; /* Allow items to wrap to next line */
  justify-content: space-between; /* Space between content */
}

.section img {
    margin-left: 10px;
}

.text-block {
  flex: 1 1 48%;
  margin-bottom: 10px;
  padding: 15px;
  background-color: #f7f1e1; /* Off-white (cream) background */
  border: 1px solid #c5a200; /* Gold border */
  border-radius: 8px;
  box-sizing: border-box;
}

h2, h3 {
  font-family: 'ReggaeOne', sans-serif;
  font-size: 1.5rem;
  color: #004c4c; /* Dark turquoise for header text */
}

.text-block p {
  font-family: 'RocknRollOne', sans-serif;
  font-size: 1.1rem;
  color: #333333; /* Dark grey for the paragraph text */
}

/* Link Hover Effect */
a {
  color: #0066cc; /* Base color for links */
  text-decoration: none; /* Remove default underline */
  transition: all 0.3s ease; /* Smooth transition for color and underline */
}

/* Link Hover Effect */
a:hover {
  filter: brightness(60%); /* Darken the color slightly on hover */
  text-decoration: underline; /* Underline on hover */
  text-decoration-color: inherit; /* Make the underline inherit the text color */
  text-decoration-thickness: 3px; /* Thicker underline */
  transform: translateY(-2px); /* Lift effect on hover */
}
/* Overlay background */
.overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

/* Overlay content (centering the image) */
.overlay-content {
  position: relative;
  text-align: center;
  max-width: 100%;  /* Ensure the content doesn’t exceed screen width */
  max-height: 100%; /* Ensure the content doesn’t exceed screen height */
  overflow: hidden; /* Prevent overflow */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Image styling */
#hylianMapImage {
  max-width: 90%;  /* Limit the width to 90% of the screen width */
  max-height: 90vh; /* Limit the height to 90% of the viewport height */
  object-fit: contain; /* Ensures the image maintains its aspect ratio */
  border: 2px solid white;
  border-radius: 10px;
}

/* Close the overlay when clicked */
.overlay.open {
  display: flex;
}

/* Close Icon Styles */
.close-icon {
  position: absolute;
  opacity: 0.65;
  top: 1%;    /* 2% from the top of the overlay */
  right: 5%;  /* 2% from the right of the overlay */
  width: 4%;  /* Width of the close icon is 8% of the overlay's width */
  height: auto;  /* Keep the aspect ratio intact */
  object-fit: contain;  /* Ensures image scales properly */
  cursor: pointer;  /* Pointer cursor on hover */
  z-index: 1100;  /* Keep it above other content */
  transition: opacity 0.3s ease;  /* Smooth transition effect */
}

/* Close Icon Hover Effect */
.close-icon:hover {
  opacity: 1;
  transform: translateY(-4%);  /* Move the icon up*/
}

/* Overlay Content - Centering and styling */
.overlay-content {
  position: relative;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
}

/* Spinner styling */
.loading-indicator {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  display: none; /* Hidden by default */
}

.spinner {
  border: 4px solid rgba(255, 255, 255, 0.3); /* Light border */
  border-top: 4px solid #3498db; /* Blue color for the spinning part */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

/* Spinner animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Style the button */
.eye-btn {
  font-family: 'HylianSymbols', sans-serif;
  font-size: 24px; /* Adjust size of the emoji */
  background-color: #403F3F;
  border: none;
  cursor: pointer;
  padding: 10px; /* Add padding to make it circular */
  width: 30px; /* Set equal width and height for a perfect circle */
  height: 30px; /* Equal height to make it round */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%; /* Makes it a perfect circle */
  transition: background-color 0.3s ease;
}

/* Hover effect for the button */
.eye-btn:hover {
  background-color: #A69F9F; /* Light background on hover */
}

/* Tooltip Styles */
.tooltip-element {
  position: relative; /* To position the tooltip relative to this element */
  cursor: pointer; /* Change cursor to pointer on hover */
}

/* Tooltip appearance on hover */
.tooltip-element:hover::after {
  font-family: 'RocknRollOne', sans-serif;
  content: attr(data-tooltip); /* Get tooltip content from data-tooltip attribute */
  position: absolute;
  bottom: 100%; /* Position the tooltip above the element */
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 5px;
  font-size: 12px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}

/* Hide the tooltip when not hovered */
.tooltip-element::after {
  opacity: 0;
  visibility: hidden;
}

.linebeck {
    width: 64px;
    height: auto;
}

.kofi {
    width: auto;
    height: 40px;
    transition: all 0.3s ease;
}

.kofi:hover {
  filter: brightness(80%);  /* Darker green on hover */
  transform: translateY(-2px);  /* Slight lift effect */
}

/* Mobile Styles */
@media (max-width: 768px) {
  /* Make .content take up the full width with no padding or margin */
  .content {
    padding: 12px 10px;   /* Small padding left/right to avoid touching edges */
    margin: 0;    /* Remove margin */
    max-width: 100%;  /* Full width */
    box-sizing: border-box; /* Prevent horizontal scrolling */
  }

  /* Ensure .section takes up full width and stacks elements vertically */
  .section {
    flex-direction: column;  /* Stack text and images vertically */
    max-width: 100%;             /* Full width for sections */
    padding: 10px;           /* Small padding inside sections */
    margin: 10px 0;          /* Add margin for vertical space */
  }

  /* .text-block should take 100% of the width, no padding or margin */
  .text-block {
    max-width: 100%;    /* Full width for text-block */
    padding: 10px;  /* Optional: Small padding for content spacing */
    margin: 10px 0; /* Vertical margin between blocks */
    box-sizing: border-box; /* Ensure padding is included in the width calculation */
  }

  /* Ensure images are full width on mobile */
  .section img {
    width: 100%;    /* Images take up full width */
    margin: 0 0 20px 0;  /* Space below the image */
    display: block;   /* Ensure images are block-level */
  }

    .close-icon {
      position: absolute; /* Ensure it's positioned */
      z-index: 1100;  /* Make sure it's on top */
          width: 8%;  /* Width of the close icon is 8% of the overlay's width */
          height: auto;  /* Keep the aspect ratio intact */
    }

    .close-icon:hover {
      opacity: 1;
      transform: translateY(-4%);
      z-index: 1200;  /* Ensure hover state is above other content */
    }
}

/* Mobile Styles for width < 412px */
@media (max-width: 412px) {
  /* Target the select dropdown directly */
  select {
    width: 70%;  /* Reduce the width of the dropdown */
    font-size: 1em; /* Adjust the font size */
    padding: 8px 12px; /* Adjust padding if needed */
  }
}

/* Disclaimer styling */
.disclaimer {
  font-family: 'RocknRollOne', sans-serif;  /* Use your site's default font family */
  font-size: 0.9em;  /* Make the text slightly smaller to keep it subtle */
  color: #ccc;  /* Light gray color for the disclaimer text */
  margin-top: 20px;  /* Add some space above the disclaimer */
  padding: 10px 0;   /* Padding for spacing */
  text-align: center;  /* Center the text */
  background-color: rgba(0, 0, 0, 0.75);  /* Semi-transparent background */
  border-top: 1px solid #f7f1e1;  /* Light border at the top */
}

.disclaimer p {
  margin: 0;  /* Remove default margin for better spacing */
}

.disclaimer strong {
  font-weight: bold;  /* Bold the Nintendo and "Disclaimer" text for emphasis */
}

p.symbol{
    font-family: 'HylianSymbols', sans-serif;
    font-size: 2em;  /* Make the text slightly smaller to keep it subtle */
    line-height: 0.01;  /* Tighten the line height */
    margin: 0; /* Remove any default margin */
    padding: 0; /* Remove any padding */
}

.mirror-text {
  transform: scaleX(-1);
  direction: rtl; /* Optional: may help with text alignment for some languages */
}

/* Font Faces */
@font-face {
  font-family: 'Albw Botw Hylian';
  src: url('fonts/AlbwBotwHylian-Regular.woff2') format('woff2'),
       url('fonts/AlbwBotwHylian-Regular.woff') format('woff'),
       url('fonts/AlbwBotwHylian-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  size-adjust: 90%; 
}

@font-face {
  font-family: 'TP Hylian - GCN';
  src: url('fonts/TPHylian-GCNRegular.woff2') format('woff2'),
       url('fonts/TPHylian-GCNRegular.woff') format('woff'),
       url('fonts/TPHylian-GCNRegular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  size-adjust: 150%; 
}

@font-face {
  font-family: 'Hero Hylian';
  src: url('fonts/HeroHylianRegular.woff2') format('woff2'),
       url('fonts/HeroHylianRegular.woff') format('woff'),
       url('fonts/HeroHylianRegular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  size-adjust: 190%; 
}

@font-face {
  font-family: 'Ancient Hylian';
  src: url('fonts/AncientHylian-English.woff2') format('woff2'),
       url('fonts/AncientHylian-English.woff') format('woff'),
       url('fonts/AncientHylian-English.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  size-adjust: 140%; 
}

@font-face {
  font-family: 'SS Ancient Hylian';
  src: url('fonts/SSAncientHylian.woff2') format('woff2'),
       url('fonts/SSAncientHylian.woff') format('woff'),
       url('fonts/SSAncientHylian.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  size-adjust: 110%;
}

@font-face {
  font-family: 'Gerudo';
  src: url('fonts/GerudoTypographyRegular.woff2') format('woff2'),
       url('fonts/GerudoTypographyRegular.woff') format('woff'),
       url('fonts/GerudoTypographyRegular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  size-adjust: 130%;
}

@font-face {
  font-family: 'BotW Sheikah';
  src: url('fonts/BotWSheikahRegular.woff2') format('woff2'),
       url('fonts/BotWSheikahRegular.woff') format('woff'),
       url('fonts/BotWSheikahRegular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  size-adjust: 125%;
}

@font-face {
  font-family: 'Mudoran';
  src: url('fonts/MudoranRegular.woff2') format('woff2'),
       url('fonts/MudoranRegular.woff') format('woff'),
       url('fonts/MudoranRegular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  size-adjust: 140%;
}

/*Styling fonts*/
@font-face {
  font-family: 'RocknRollOne';
  src: url('fonts/RocknRollOne-Regular.woff2') format('woff2'),
       url('fonts/RocknRollOne-Regular.woff') format('woff'),
       url('fonts/RocknRollOne-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ReggaeOne';
  src: url('fonts/ReggaeOne-Regular.woff2') format('woff2'),
       url('fonts/ReggaeOne-Regular.woff') format('woff'),
       url('fonts/ReggaeOne-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'MinishCap';
  src: url('fonts/MinishCap--v10.woff2') format('woff2'),
       url('fonts/MinishCap--v10.woff') format('woff'),
       url('fonts/MinishCap--v10.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HyliaSerif';
  src: url('fonts/HyliaSerifBeta-Regular.woff2') format('woff2'),
       url('fonts/HyliaSerifBeta-Regular.woff') format('woff'),
       url('fonts/HyliaSerifBeta-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
    font-family: 'HylianSymbols';
    src: url('fonts/HylianSymbols.woff2') format('woff2'),
         url('fonts/HylianSymbols.woff') format('woff'),
         url('fonts/HylianSymbols.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
}



