:root {
  --primary: #76593a;
  --secondary: #ab935f;
  --dancing-script: 'Dancing Script', cursive;
  --raleway: 'Raleway', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--raleway);
  text-align: center;
}

main {
  position: relative;
  overflow: hidden;
}

img {
  display: block;
}

header img {
  width: 100%;
  height: auto;
}

header::after {
  content: '';
  position: absolute;
  top: 20px;
  right: 20px;
  width: clamp(80px, 10vw, 160px);
  height: clamp(80px, 10vw, 160px);
  background-image: url('/public/ICONOS_LOGO.svg');
}

section {
  position: relative;
}

h1 {
  font-size: clamp(3rem, 10vw, 5em);
  font-weight: 300;
  color: var(--primary);
}

main > section:first-child::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -370px;
  width: clamp(500px, 60vw, 800px);
  height: clamp(500px, 60vw, 800px);
  background-image: url('/public/ICONOS_HOJAS SUPERIOR IZQ.svg');
  background-repeat: no-repeat;
  z-index: -1;
}

audio {
  position: absolute;
  width: 100px;
  height: 30px;
  top: 8px;
  left: 8px;
  opacity: 40%;
}

audio::-webkit-media-controls-timeline,
audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
  display: none;
}

.timer-section::after {
  content: '';
  position: absolute;
  top: -70px;
  right: -480px;
  width: clamp(600px, 55vw, 800px);
  height: clamp(600px, 55vw, 800px);
  background-image: url('/public/ICONOS_HOJAS INFERIOR DER.svg');
  background-repeat: no-repeat;
  z-index: -1;
}

.gift-section::before {
  content: '';
  position: absolute;
  top: 50px;
  left: -450px;
  width: clamp(600px, 55vw, 800px);
  height: clamp(600px, 55vw, 800px);
  background-image: url('/public/ICONOS_HOJAS INFERIOR IZQ.svg');
  background-repeat: no-repeat;
  z-index: -1;
}

.gift-section::after {
  content: '';
  position: absolute;
  top: 80px;
  right: -520px;
  width: clamp(600px, 55vw, 800px);
  height: clamp(600px, 55vw, 800px);
  background-image: url('/public/ICONOS_HOJAS INFERIOR DER.svg');
  background-repeat: no-repeat;
  z-index: -1;
}

.flex {
  display: flex;
  justify-content: space-between;
}

.quote {
  max-width: 36ch;
  margin: 30px auto;
  font-size: clamp(1rem, 4vw, 2rem);
  font-weight: 400;
  color: var(--secondary);
}

.timer-section h2 {
  color: var(--primary);
  font-weight: 400;
  font-size: clamp(32px, 2.8vw, 56px);
}

.timer-section h2:first-child {
  margin: 40px;
  margin-top: 60px;
}

.timer-section i {
  display: inline-block;
  font-size: clamp(20px, 4vw, 48px);
}

.timer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: clamp(0.5rem, 4vw, 6rem);
  color: var(--primary);
  margin-bottom: clamp(2rem, 10vw, 10rem);
}

.timer span {
  font-size: clamp(2rem, 10vw, 6rem);
  font-weight: 500;
}

.timer p {
  font-size: clamp(1rem, 2.8vw, 6rem);
  font-weight: 400;
}

.date {
  margin-top: 20px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  font-size: clamp(1rem, 6vw, 3.8rem);
  color: var(--primary);
}

.date .number {
  font-size: clamp(3rem, 10vw, 10rem);
}

.top-bottom-border {
  width: clamp(100px, 20vw, 300px);
  border-top: clamp(2px, 1vw, 5px) solid var(--primary);
  border-bottom: clamp(2px, 1vw, 5px) solid var(--primary);
  padding: 10px 0;
}

.container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
}

.dark-background {
  background-color: var(--primary);
  color: white;
}

.light-background {
  color: var(--secondary);
}

.dark-background a {
  background-color: white;
  color: var(--primary);
}

.light-background a {
  color: white;
  background-color: var(--primary);
}

.font-raleway {
  font-family: var(--raleway);
}

.font-dancing-script {
  font-family: var(--dancing-script);
}

a {
  font-size: clamp(16px, 4vw, 32px);
  border: none;
  padding: 10px 40px;
  cursor: pointer;
  border-radius: 20px;
  text-decoration: none;
}

a:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

article {
  display: flex;
  flex-direction: column;
  align-items: center;
}

article img {
  width: clamp(100px, 12vw, 200px);
}

.place {
  color: var(--primary);
}

.place article p:first-of-type {
  font-size: clamp(30px, 6vw, 64px);
  margin-bottom: 20px;
}

.place article p:is(:nth-of-type(2), :nth-of-type(3)) {
  font-size: clamp(20px, 4vw, 28px);
}

.place article:is(:nth-of-type(2)) img {
  width: clamp(80px, 10vw, 140px);
}

.place article {
  justify-content: end;
}

.place a {
  margin-top: 50px;
}

.place .container {
  margin-top: 20px;
}

.place .flex {
  gap: 60px;
}

.dress-section .title {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: clamp(10px, 4vw, 40px);
}

.dress-section .flex {
  gap: 60px;
}

.dress-section .flex article {
  gap: clamp(10px, 4vw, 40px);
}

.dress-section .title img {
  width: clamp(40px, 15vw, 200px);
}

.dress-section .title img:first-child {
  transform: scaleX(-1);
}

.dress-section .title h2 {
  margin-bottom: clamp(40px, 5vw, 80px);
  font-family: var(--dancing-script);
  font-size: clamp(40px, 10vw, 96px);
  white-space: nowrap;
}

.dress-section article h3 {
  font-size: clamp(30px, 6vw, 72px);
  font-weight: 300;
}

.dress-section article p {
  font-size: clamp(20px, 4vw, 36px);
}

.gift-section h2 {
  font-size: clamp(40px, 10vw, 96px);
  color: var(--primary);
  margin-bottom: 32px;
}

.gift-section p {
  color: var(--primary);
  font-size: clamp(20px, 4vw, 32px);
}

.gift-section .flex {
  margin-top: 80px;
  align-items: end;
}

.gift-section .flex article:last-child {
  align-items: end;
  gap: 40px;
}

.gift-section .flex article:last-child p {
  font-size: clamp(12px, 4vw, 32px);
}

.qr {
  width: clamp(150px, 30vw, 400px);
}

.footer {
  display: flex;
  font-size: clamp(16px, 4vw, 32px);
  padding-bottom: 40px;
  position: relative;
}

.footer a {
  display: inline-block;
  margin: clamp(30px, 8vw, 60px) 0;
}

.footer i::before {
  content: '';
  position: absolute;
  top: 80px;
  left: 10px;
  width: clamp(120px, 25vw, 300px);
  height: 100%;
  background-image: url('/public/ICONOS_HOJAS FOOTER.svg');
  background-repeat: no-repeat;
  opacity: 40%;
}

.footer i::after {
  content: '';
  position: absolute;
  top: 80px;
  right: 10px;
  width: clamp(120px, 25vw, 300px);
  height: 100%;
  background-image: url('/public/ICONOS_HOJAS FOOTER.svg');
  background-repeat: no-repeat;
  transform: scaleX(-1);
  opacity: 40%;
}

.footer img:last-child {
  transform: scaleX(-1);
}

.footer P:last-child {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 300;
}

@media (max-width: 768px) {
  .flex {
    flex-direction: column;
    justify-content: center;
  }

  .gift-section .flex {
    flex-direction: row;
    justify-content: center;
    align-items: start;
  }

  .gift-section article {
    width: 100%;
    max-width: 350px;
  }

  .gift-section .flex article:last-child img {
    display: none;
  }
}
