* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: #ffffff;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  overflow: hidden;
}

.page {
  position: relative;
  z-index: 2;

  width: 100%;
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;
}

.santa-card {
  position: relative;

  width: 650px;
  max-width: 94vw;

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

.santa-image {
  display: block;

  width: 650px;
  max-width: 100%;
  height: auto;

  border: 0;
  border-radius: 0;

  object-fit: contain;
}

.result {
  width: 350px;
  max-width: 75%;

  min-height: 50px;

  margin-top: 10px;
  padding: 10px 20px;

  background: #76c5e8;
  border-radius: 26px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #ffffff;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;

  text-align: center;

  box-shadow: none;
}

.error {
  position: absolute;
  bottom: 40px;

  color: #555555;
  text-align: center;
  font-size: 15px;
}

.snowflake {
  position: fixed;
  top: -40px;

  color: #55b7e7;

  user-select: none;
  pointer-events: none;

  z-index: 5;

  animation-name: snowfall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes snowfall {
  0% {
    transform: translateY(-50px) rotate(0deg);
  }

  100% {
    transform: translateY(110vh) rotate(360deg);
  }
}

/* Tablet */
@media (max-width: 800px) {
  .santa-card {
    width: 600px;
    max-width: 94vw;
  }

  .santa-image {
    width: 600px;
    max-width: 100%;
  }

  .result {
    width: 350px;
    max-width: 72%;
  }
}

/* Phone */
@media (max-width: 600px) {
  .page {
    padding: 10px;
  }

  .santa-card {
    width: 94vw;
    max-width: 94vw;
  }

  .santa-image {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .result {
    width: 72%;
    max-width: 72%;

    min-height: 48px;

    margin-top: 8px;
    padding: 9px 16px;

    font-size: 17px;
  }
}

/* Small phone */
@media (max-width: 400px) {
  .santa-card {
    width: 96vw;
    max-width: 96vw;
  }

  .result {
    width: 76%;
    max-width: 76%;

    font-size: 16px;
  }
}
