@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html {
  font-size: 62.5%;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  html {
    font-size: 58.3333%;
  }
}

body {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.25px;
  line-height: 1.6;
  color: #d4d4d8;
  background-color: #18181b;
}

img {
  display: block;
  max-width: 100%;
}

main {
  display: grid;
  place-items: center;
  height: 100vh;
  padding: 3rem 1.5rem;
}
@media (max-width: 768px) {
  main {
    place-items: start center;
  }
}

.btn {
  display: block;
  padding: 2rem 2.8rem;
  font-family: inherit;
  font-size: inherit;
  font-weight: 500;
  text-decoration: none;
  color: #18181b;
  background-color: #fff;
  border: 1px solid #fff;
  border-radius: 100px;
  transition: all 0.2s;
  cursor: pointer;
}
.btn:hover {
  text-decoration: none;
  color: #d4d4d8;
  background: #27272a;
  border: 1px solid #27272a;
}
.btn-secondary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  font-size: 14px;
  color: #d4d4d8;
  background-color: #27272a;
  border: 1px solid #3f3f46;
  border-radius: 4px;
}
.btn-secondary i {
  font-size: 16px;
}
.btn-secondary:hover {
  color: #fff;
  background: #18181b;
  border: 1px solid #3f3f46;
}

.card {
  max-width: 40rem;
  margin-bottom: 16rem;
  background-color: #18181b;
}
.card .form .btn {
  margin-bottom: 1.5rem;
  margin-left: auto;
}
.card .results {
  text-align: center;
}
.card .results-img {
  width: 40rem;
  margin-bottom: 1rem;
  border: 1px solid #27272a;
}
.card .results-img-link {
  display: block;
  position: relative;
}
.card .results-img-link .icon-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12rem;
  height: 12rem;
  border: 0;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.2s ease-in-out;
}
.card .results-img-link:focus:before, .card .results-img-link:hover:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #18181b;
  opacity: 0.625;
}
.card .results-img-link:focus .icon-play, .card .results-img-link:hover .icon-play {
  transform: translate(-50%, -50%) scale(1);
}
.card .results-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: auto;
  gap: 1rem;
  margin-bottom: 3rem;
}
.card .results-footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  font-size: 13px;
  font-weight: 500;
}

.loader {
  position: relative;
  width: 32rem;
  height: 32rem;
  margin: 0 auto;
  background: linear-gradient(0deg, transparent 50%, rgba(24, 24, 27, 0.8) 50%) no-repeat 100% 0, linear-gradient(90deg, rgba(24, 24, 27, 0.8) 50%, transparent 50%) no-repeat 0 100%, repeating-radial-gradient(#18181b, #18181b 0.4rem, rgba(212, 212, 216, 0.5) 0.5rem, #18181b 0.6rem);
  background-size: 50% 100%, 100% 50%, 100% 100%;
  border: 0.4rem solid #18181b;
  border-radius: 50%;
  animation: spin 1.6s infinite linear;
}
.loader::after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8rem;
  height: 8rem;
  background: #18181b;
  border: 1px solid #18181b;
  border-radius: 50%;
  box-shadow: 0 0 0 0.4rem #fff, inset 0 0 0 3.6rem #fff;
  transform: translate(-50%, -50%);
}

h1 {
  margin-bottom: 0.5rem;
  font-family: "Shrikhand", cursive;
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
}

h2 {
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
h2 a {
  font-size: 2rem;
  font-weight: 500;
}

h3 {
  margin-bottom: 1.5rem;
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 1.25;
}

p {
  margin-bottom: 2rem;
}

a {
  text-decoration: none;
  color: #d4d4d8;
  cursor: pointer;
}
a:active, a:focus {
  color: #fff;
}
a:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
a:visited {
  color: #d4d4d8;
}
a:hover {
  color: #fff;
  text-decoration: underline;
}

input[type=text] {
  display: block;
  width: 100%;
  margin-bottom: 2rem;
  padding: 2rem;
  font-family: "Inter", sans-serif;
  font-size: 1.7rem;
  font-weight: 500;
  color: #fff;
  background-color: #27272a;
  border: 1px solid #27272a;
  border-radius: 8px;
}
input[type=text]::placeholder {
  font-weight: 400;
  color: rgba(212, 212, 216, 0.375);
}
input[type=text]:nth-of-type(2) {
  margin-bottom: 3rem;
}

label {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 13px;
  font-weight: 500;
}

.error-text {
  display: block;
  font-weight: 500;
  text-align: right;
  color: #f26969;
}

/*# sourceMappingURL=main.css.map */
