html {
  box-sizing: border-box;
  font-size: 62.5%;
}

*,
*::before,
*::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

body {
  align-items: center;
  background: linear-gradient(to top left, #28b487, #7dd56f);
  color: #333;
  display: flex;
  flex-direction: column;
  font-family: sans-serif;
  height: 100vh;
  line-height: 1.5;
  position: relative; /* for modal, and modal-overlay */
}

h1 {
  color: #033a05;
  font-size: 3rem;
  margin-block: 2rem;
  text-align: center;
}

p {
  font-size: 1.8rem;
}

/* ==================================
  ACCESSIBILITY
===================================== */

.visually-hidden {
  clip: rect(1px, 1px, 1px, 1px) !important;
  height: 1px !important;
  border: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
}

/* ==================================
  BUTTON
===================================== */
.btn {
  border: none;
  cursor: pointer;
}

.btn--show {
  background-color: #fff;
  border-radius: 10rem;
  color: #444;
  font-size: 2rem;
  font-weight: 600;
  margin: 5rem 2rem;
  padding: 1.75rem 3.5rem;
}

.btn--close {
  background: none;
  color: #333;
  font-size: 5rem;
  position: absolute;
  right: 2rem;
  top: 1.2rem;
}

/* ==================================
  MODAL
===================================== */
.modal {
  animation: modalopen var(--modal-duration, 0.9s) ease-out;
}

.modal__dialog {
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 3rem 5rem rgba(0, 0, 0, 0.3);
  left: 50%;
  padding: 3rem;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  z-index: 10;
}

.modal__overlay {
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  height: 100vh;
  left: 0;
  position: absolute;
  top: 0;
  width: 100vw;
  z-index: 5;
}

@keyframes modalopen {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media screen and (min-width: 768px) {
  .modal {
    padding: 6rem;
  }

  .modal__dialog {
    max-width: 50%;
  }
}
/* ==================================
UTILITY CLASSES
===================================== */

.hidden {
  display: none;
}
