/* ===== Font Loading ===== */
/* Added font-display: swap to prevent invisible text while loading */
@font-face {
  font-family: 'Fairies';
  src: url('./Fairies.otf') format('opentype'); 
  font-display: swap; 
}

/* ===== Main Layout ===== */
main {
  flex-shrink: 0;
}

.main_content {
  width: 90%;      
  max-width: 1000px; 
  margin: 0 auto;  
  height: auto;
  display: block;
  padding: 10px;   
}

/* ===== Responsive Images ===== */
/* Ensures images respect container bounds without layout shifts */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto; 
}

/* ===== Navigation Adjustments ===== */
.vertical-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px; 
  margin: 20px 0;
}

.menu-link {
  display: block;
  width: 100%;
  max-width: 582px; /* Matches your image widths */
}

/* Replaced inline HTML margins with clean CSS classes */
.top-margin { margin-top: 130px; }
.bottom-margin { margin-bottom: 80px; }

/* ===== Brighten & Darken Effects ===== */
.brighten {
  image-rendering: pixelated; 
  transition: filter 0.2s ease; 
  display: block;
}

.brighten:hover {
  filter: brightness(200%) contrast(120%);
}

.darken {
  transition: filter 0.3s ease;
}

.darken:hover {
  filter: brightness(50%);
}

/* ===== Fixed Link Hovers ===== */
.text-link {
  color: red !important;            
  text-decoration: none !important; 
  font-family: 'Fairies', sans-serif;
  font-size: 40px;        
  transition: filter 0.2s ease;
}

.text-link:hover {
  filter: brightness(30%) !important;
}

/* ===== Headings ===== */
h2, h3, h4, h5 {
  position: relative;  
  margin: 10px 0;
  text-align: center;  
  transition: filter 0.2s ease;
}

h3:hover,
h4:hover,
h5:hover {
  filter: brightness(1.5);
}

/* ===== Small Block Element ===== */
.small_1 {
  width: 100%;   
  max-width: 200px; 
  height: auto;   
  display: inline-block;
  margin-right: 6px;
}

/* ===== Media Queries for Larger Screens ===== */
@media screen and (min-width: 768px) {
  .main_content {
    width: 75%; 
  }
  .small_1 {
    width: 19%; 
  }
}

@media screen and (min-width: 1200px) {
  .main_content {
    width: 60%; 
  }
}