/* Load Fonts */
@font-face {
  font-family: 'Aileron';
  src: url('Fonts/Aileron-Regular.eot'); /* IE9 Compat Modes */
  src: url('Fonts/Aileron-Regular.eot?#iefix') format('embedded-opentype'), /* IE6–IE8 */
       url('Fonts/Aileron-Regular.woff2') format('woff2'), /* Super modern browsers */
       url('Fonts/Aileron-Regular.woff') format('woff'), /* Pretty modern browsers */
       url('Fonts/Aileron-Regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('Fonts/Aileron-Regular.svg#Aileron') format('svg'); /* Legacy iOS */
  font-weight: 400;
  font-style: normal;
}

/* Base Styles */
body {
  margin: 0;
  background-image: url('background1.gif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #000000;
  font-family: 'Aileron', sans-serif;
  padding: 4rem 1rem;
}

.content {
  margin: 0 auto;
  max-width: 90ch;
  width: 100%;
  padding: 2rem;
  background-color: #fdf2e3;
  border: 3px solid #da6319;
  box-sizing: border-box;
  text-align: left;
  color: #000000;
}

.content h1 {
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  color: #da6319;
}

.content p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  font-weight: 400;
  color: #000000;
}



/* Love Letter Grid */
.loveletter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  max-width: 1000px;
  margin: 0 auto;
}

.loveletter-grid button {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.loveletter-grid img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.loveletter-grid img:hover {
  transform: scale(1.02);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.85);
}

.modal.hidden {
  display: none;
}

.modal img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 6px;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.img-container {
  max-width: 100%;
  width: 100%;
  overflow: hidden;
  padding: 1rem;
  box-sizing: border-box;
}

.img-container img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 10px;
}

/* Gif Styling */
.gif-inside {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 2rem;
  object-fit: contain;
}

/* Links */
.links {
  margin-top: 1.8rem;
}

a {
  color: rgba(218, 99, 25);
}

.links a {
  text-decoration: none;
  color: #000000;
  padding: 0 4px;
  transition: background-color 0.2s ease;
}

.links a:hover {
  background-color: rgba(218, 99, 25, 0.5);
  border-radius: 2px;
}