@font-face {
    font-family: 'party';
    src: url('EdwardianScriptITC.woff2') format('woff2'),
        url('EdwardianScriptITC.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #01B21F;
}

.container {
  position: relative;
  display: inline-block;
}

.base-img-wrapper {
  height: 325px;
  width: 100%;
  background-image: 
    linear-gradient(to bottom, 
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0) 80%,
      rgba(0, 0, 0, .3) 100% 
    ),
    url("kennedybanner.png");
  background-size: cover;
  background-position: center; 
}

.overlay-img {
  position: absolute;
  left: 50%;
  top: 325px;
  transform: translate(-50%, -50%);
  max-width: calc(100vw - 40px);
  height: auto;
  transition: .2s ease;
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.5));
}

.overlay-img.active {
  transform: translate(-50%, -50%) scale(1.01); 
  filter: drop-shadow(0 8px 8px rgba(255, 255, 255, 0.5));
}

.overlay-img:hover {
  transform: translate(-50%, -50%) scale(1.01); 
  filter: drop-shadow(0 8px 8px rgba(255, 255, 255, 0.5));
}
      
.content {
  font-family: Helvetica, Arial, sans-serif;
  flex-grow: 1;
  background-image: url("kennedytile.png");
  color: white;
  margin: 40px;
  margin-top: 70px;
  padding: 40px;
  box-sizing: border-box;
  width: calc(100% - 80px);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.7);
}

.content h1 {
  flex-basis: 100%;
  text-align: center;
  margin: 0;
}
.content h2 {
  flex-basis: 100%;
  margin: 0 0 10px;
}
.content h3 {
  flex-basis: 100%;
  margin: 0 0 6px;
} 
  .content p {
  flex-basis: 100%;
  margin: 0 0 0;
}
      
.button-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  transform: translate(0%, 90%);
}

.button-flex {
  display: flex;
  gap: 16px;
}

.button {
  background: linear-gradient(0deg, #0A6ECC, #30C3F7);
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.5));
  border: none;
  color: white;
  padding: 8px 15px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 32px;
  margin: 0 0px 0 0;
  border-radius: 100px;
  cursor: pointer;
  font-family: party;
  transition: .2s ease;
  text-shadow: 0 0 4px #000;
}

.button:hover {
  transform: scale(1.05); 
  text-shadow: 0 0 4px #fff;
}

.button.active {
  box-shadow: 0 0 7px 4px rgba(255, 255, 255, 0.8);
  transform: scale(1.05);
  text-shadow: 0 0 8px #fff;
}

@media (max-width: 768px) {
  .base-img-wrapper {
    height: 200px;
  }
  .overlay-img {
    top: 200px;
  }
  .button-row {
    gap: 5px;
  }
  .button {
    
    font-size: 23px;
  }
}
