/* style.css */
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  margin: 0;
  padding:0;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Ovo', serif;
  color: #121212;
  background: transparent;
  overflow: hidden;
  box-sizing: border-box;
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(120deg, #ffd6e0, #fbeec1, #cce2cb, #b5ead7);
  background-size: 400% 400%;
  animation: gradientShift 30s ease infinite;
  z-index: -1;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

main {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  height: 100vh;
  padding: 0;
  text-align: center;
}

h1 { 
  font-size: 2rem;
}
p { margin: 0;}
.credits {
  position: absolute;
  bottom: 16px;
  font-size: 14px;
}
.credits a:link, .credits a:visited {
  color: #121212;
  padding: 0 4px;
  text-decoration: underline;
  transition: all 0.4s ease-out;
}
.credits a:hover, .credits a:active {
  text-decoration: none;
  background-color: #fff;
  border-radius: 2px;
}

.quote-container {
  background: rgba(255, 255, 255, 0.7);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 8px solid #fff8;
  width: 80vw;
  max-width: 600px;
  font-size: 1.75rem;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  /* Define the transition for opacity */
  transition: opacity 0.4s ease-in-out;
}

/* This class will be toggled by JavaScript to trigger the fade */
.quote-container.fade-out {
  opacity: 0;
}

.controls {
  margin-top: 1.5rem;
}

button {
  margin: 0 0.5rem;
  padding: 1rem 2rem;
  font-family: 'Ovo', serif;
  font-size: 1.25rem;
  border: none;
  border-radius: 999px;
  background-color: #fff;
  color: #121212;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #fff8;
}

@media (min-width: 700px) /* DESKTOP */ {
  main { justify-content: center; }
  .quote-container {
    font-size: 3rem;
    text-wrap: balance;
    aspect-ratio: 4 / 2;
  }
}