:root {
  --background: #f8f7ff;
  --foreground: #9381ff;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  font: 400 16px/1.8 "Arial", sans-serif;
  background: var(--background);
  margin: 0;
  padding: 0;
  margin-left: 20px;
  margin-right: 20px;
  color: var(--foreground);
}

header,
main,
footer {
  margin: 0 auto;
  max-width: 600px;
}

header {
  margin-top: 50px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-align: center;
}

button {
  border-radius: 10px;
  background-color: #76e5fc;
  color: #5c2751;
  outline: 0;
  padding: 5px 10px;
  margin-left: 10px;
  margin-right: 10px;
  border: 5px solid #4bc0d9;
  font-family: Arial, sans-serif;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  transition: all ease-in 0.1s;
}

button:hover {
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.6);
}

button[disabled] {
  opacity: 0.2;
  cursor: initial;
}

a {
  color: var(--foreground);
}

audio {
  display: block;
  margin: 40px auto;
}

nav {
  display: flex;
  justify-content: center;
}

img {
  user-select: none;
  display: block;
  margin: 20px auto;
  border-radius: 10px;
  border: 5px solid #ffc4eb;
  width: 300px;
  height: 300px;
  object-fit: cover;
  background-color: #ffe4fa;
}

#status {
  user-select: none;
  text-align: right;
  margin-right: 20px;
}

.status {
  user-select: none;
  position: fixed;
  top: 0;
  right: 0;
  padding-right: 20px;
  margin: 0;
  display: flex;
  align-items: center;
}

.spinner {
  width: 24px;
  height: 24px;
  background: var(--foreground);
  display: block;
  position: relative;
  box-sizing: border-box;
  animation: rotationBack 1s ease-in-out infinite reverse;
}

.spinner::before {
  content: '';
  box-sizing: border-box;
  left: 0;
  top: 0;
  transform: rotate(45deg);
  position: absolute;
  width: 24px;
  height: 24px;
  background: var(--foreground);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
}

.spinner::after {
  content: '';
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--background);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
}

@keyframes rotationBack {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(-360deg);
  }
}
