@font-face {
  font-family: 'Delfino';
  src: url('Delfino.woff2') format('woff2');
}

@keyframes rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes fadeInFloatUp {
  from {
    opacity: 0;
    transform: scale(0) rotateZ(-360deg);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

*, *:before, *:after {
  box-sizing: border-box;
}

body {
  position: relative;
  font-family: 'Delfino', sans-serif;
  background-color: #d0244c;
  color: #fff;
  margin: 0;
  height: 100vh; /* Graceful fallback for browsers that don't support dvh */
  height: 100dvh;
  width: 100vw;
  min-width: 320px;
  overflow: hidden;
  line-height: 1.4;
}

body:before {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100vmax;
  height: 100vmax;
  background: url('images/starburst.png') no-repeat center center / cover;
  z-index: 1;
  animation: rotate 20s linear infinite;
}

body:after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh; /* Graceful fallback for browsers that don't support dvh */
  height: 100dvh;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0), #d0244c 70%);
  z-index: 2;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.scroll-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 3;
  display: flex;
  animation: fadeInFloatUp 1s ease-out;
  perspective: 1000px;
}

.container {
  width: 100%;
  padding: 20px;
  text-align: center;
  /* auto margin centers vertically if it fits, sticks to top if it overflows */
  margin: auto;
}

@media screen and (min-width: 640px) and (min-height: 600px) {
  .container {
    padding: 40px;
    max-width: 640px;
  }
}

.title {
  -webkit-text-stroke: 5px #000;
  paint-order: stroke fill;
  margin-bottom: 60px;
  text-align: center;
}

.title__subtitle {
  display: block;
  font-size: 18px;
}

@media screen and (min-width: 400px) and (min-height: 400px) {
  .title__subtitle {
    font-size: 28px;
  }
}

@media screen and (min-width: 640px) and (min-height: 600px) {
  .title__subtitle {
    font-size: 32px;
  }
}

.title__logo {
  width: 400px;
  max-width: 100%;
  height: 120px;
  display: block;
  margin-bottom: 10px;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}

@media screen and (min-height: 400px) {
  .title__logo {
    height: 200px;
  }
}

@media screen and (min-height: 600px) {
  .title__logo {
    height: 300px;
  }
}

@media screen and (min-width: 1440px) {
  .title__logo {
    width: 100%;
  }
}

@media screen and (min-width: 2160px) {
  .title__logo {
    height: auto;
  }
}

.links__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.links__item {
  margin-bottom: 20px;
}

.links__link,
.links__link:visited {
  line-height: 1.15;
  color: white;
  background: #a083d2;
  padding: 20px;
  text-decoration: none;
  text-align: center;
  border-radius: 5px;
  display: block;
  font-size: 28px;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.2), 0 0 0 0 rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
  -webkit-text-stroke: 5px #000;
  paint-order: stroke fill;
}

@media screen and (min-width: 640px) and (min-height: 600px) {
  .links__link {
    font-size: 36px;
  }
}

@media screen and (min-width: 1920px) {
  .links__link {
    font-size: 50px;
  }
}

.links__link:hover,
.links__link:focus {
  background: #8f6bbd;
  box-shadow: inset 0 0 0 0 rgba(255, 255, 255, 0.2), 0 0 0 5px rgba(255, 255, 255, 0.4);
}

.links__subtitle {
  display: block;
  font-size: 18px;
  color: #fff;
  margin-top: 10px;
  -webkit-text-stroke: 4px #000;
}

@media screen and (orientation: landscape) and (max-height: 500px) {
  .container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    gap: 40px;
  }

  .title {
    margin-bottom: 0;
  }

  .links__list {
    flex-direction: column;
  }
}