:root {
  --font-family: "Roboto", sans-serif;
  --index-background: #ff9697;
  --menu-background: #b596ff;
  --content-background: #f5f1ff;

  --title-color: #8b2b2b;
  --title-quiz-color: #b596ff;
  --main-text-color: #000;

  --btn-goBack-color: #fff;
  --svg-fill-color: #62ff77;
  --box-shadow:
    0 5px 5px 0 rgba(0, 0, 0, 0.25), 0 5px 5px 0 rgba(0, 0, 0, 0.25),
    0 5px 5px 0 rgba(0, 0, 0, 0.25);

  --button-box-shadow:
    inset 0 15px 15px 0 rgba(0, 0, 0, 0.25),
    inset 0 -15px 15px 0 rgba(0, 0, 0, 0.25),
    inset 15px 0 15px 0 rgba(0, 0, 0, 0.25),
    inset -15px 0 15px 0 rgba(0, 0, 0, 0.25);

  --card-box-shadow:
    inset 15px 15px 10px 0 rgba(0, 0, 0, 0.5),
    inset -15px -15px 10px 0 rgba(0, 0, 0, 0.5),
    inset 15px 15px 10px 0 rgba(0, 0, 0, 0.5),
    inset -15px -15px 10px 0 rgba(0, 0, 0, 0.5);
  --card-background: rgba(0, 0, 0, 0.2);

  --input-background: rgba(143, 143, 143, 0.3);
  --input-box-shadow:
    inset 0 5px 5px 0 rgba(0, 0, 0, 0.25),
    inset 0 -5px 5px 0 rgba(0, 0, 0, 0.25);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}
h1 {
  text-align: center;
  color: var(--title-color);
}
p {
  margin: 0;
}
ul,
ol {
  list-style-type: none;
  padding: 0px;
}
a {
  display: inline-block;
  text-decoration: none;
}
img {
  display: block;
  width: 100%;
}
.page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.main {
  flex-grow: 1;
}
.container {
  max-width: 1700px;
  padding: 0 30px;
  margin: 0 auto;
}
body {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 20px;
  color: #000;
  position: relative;
  transition: color 250ms ease;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;

  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../image/marvel.jpg");

  background-position: center;
  background-size: cover;

  filter: blur(2px);
  z-index: -1;
}
input {
  box-sizing: border-box;
  border: none;
  border-radius: 20px;
  outline: none;
  box-shadow:
    inset 0 5px 5px 0 rgba(0, 0, 0, 0.25),
    inset 0 -5px 5px 0 rgba(0, 0, 0, 0.25);
  background: transparent;
  padding: 5px 20px;
}
input::placeholder {
  color: #d1d1d1;
}

button {
  border: none;
  border-radius: 20px;
  cursor: pointer;
  box-shadow:
    0 5px 4px 0 rgba(0, 0, 0, 0.25),
    0 5px 5px 0 rgba(0, 0, 0, 0.25),
    0 5px 5px 0 rgba(0, 0, 0, 0.25);
}

.switch {
  --secondary-container: #3a4b39;
  --primary: #84da89;
  font-size: 17px;
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch input {
  display: none;
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #313033;
  transition: 0.2s;
  border-radius: 30px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  border-radius: 20px;
  left: 3px;
  bottom: 3px;
  background-color: #aeaaae;
  transition: 0.4s;
}

input:checked + .slider::before {
  background-color: var(--primary);
}

input:checked + .slider {
  background-color: var(--secondary-container);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--secondary-container);
}

input:checked + .slider:before {
  transform: translateX(24px);
}

/* #region GLAS */
.glass {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

@supports (backdrop-filter: blur(10px)) {
  .glass {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

body.glass-theme {
  color: #e2d6ff;
}

body.glass-theme .header,
body.glass-theme .footer,
body.glass-theme .form-container {
  background: rgb(255 183 184 / 28%);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

body.glass-theme .header-menu,
body.glass-theme .header-quiz,
body.glass-theme .footer-menu,
body.glass-theme .footer-quiz,
body.glass-theme .menu-container,
body.glass-theme .quiz-container {
  background: rgb(187 158 255 / 28%);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

body.glass-theme .time,
body.glass-theme .back-btn {
  background: rgba(245, 241, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

body.glass-theme .time p,
body.glass-theme .back-btn a{
  color: #fff;
}

body.glass-theme .hero-title,
body.glass-theme label,
body.glass-theme .footer,
body.glass-theme .header {
  color: #e2d6ff;
}
body.glass-theme .hero-title-menu {
  color: #ffb8b8;
}
body.glass-theme .form-wrapper button[type="submit"] {
  background: #8c5253;
  color: #e2d6ff;
  box-shadow:
    inset 8px 8px 16px rgba(255, 110, 124, 0.34),
    inset -8px -8px 16px rgba(140, 0, 12, 0.48),
    0 14px 24px rgba(92, 0, 8, 0.34);
}

body.glass-theme .form-wrapper button[type="submit"]:hover,
body.glass-theme .form-wrapper button[type="submit"]:focus {
  background: #c48081;
  color: #f3ebff;
  box-shadow:
    inset 10px 10px 18px rgba(255, 124, 137, 0.26),
    inset -10px -10px 18px rgba(110, 0, 10, 0.52),
    0 18px 28px rgba(92, 0, 8, 0.38),
    0 0 0 4px rgba(255, 0, 4, 0.18);
}
/* #endregion */

/* #region header */
.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  padding: 12px;
  transition:
    transform 450ms ease,
    filter 450ms ease,
    box-shadow 450ms ease;
  transform-origin: center;
}
.logo svg {
  display: block;
  transition:
    transform 450ms ease,
    filter 450ms ease;
  transform-origin: center;
}
.logo:hover,
.logo:focus-visible {
  box-shadow: 0 0 0 4px rgba(245, 241, 255, 0.3);
}
.logo:hover svg,
.logo:focus-visible svg {
  transform: rotate(360deg) scale(1.08);
  filter: brightness(0) saturate(100%) invert(95%) sepia(20%) saturate(428%)
    hue-rotate(295deg) brightness(107%) contrast(104%)
    drop-shadow(0 8px 14px rgba(72, 15, 22, 0.28));
}
.header {
  box-shadow:
    0 5px 5px 0 rgba(0, 0, 0, 0.25),
    0 5px 5px 0 rgba(0, 0, 0, 0.25),
    0 5px 5px 0 rgba(0, 0, 0, 0.25);
  background: #ff9697;
  border-radius: 0 0 20px 20px;
}
.header-menu,
.header-quiz {
  background: #b596ff;
}
/* #endregion */

/* #region hero */
.hero {
  margin: 50px 0;
}
.time {
  margin-left: auto;
  max-width: 360px;
  border-radius: 20px;
  padding: 17px 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 5px 5px 0 rgba(0, 0, 0, 0.25),
    0 5px 5px 0 rgba(0, 0, 0, 0.25),
    0 5px 5px 0 rgba(0, 0, 0, 0.25);
  background: #f5f1ff;
  margin-bottom: 70px;
}
.form-container,
.menu-container,
.quiz-container {
  margin: 0 auto;
  max-width: 1079px;
  padding: 50px 70px 85px;
  border-radius: 20px;

  box-shadow:
    0 5px 4px 0 rgba(0, 0, 0, 0.25),
    0 5px 5px 0 rgba(0, 0, 0, 0.25),
    0 5px 5px 0 rgba(0, 0, 0, 0.25);
  background: #f5f1ff;
}
.form-wrapper {
  max-width: 500px;
  margin: 0 auto;
}
.registration-input {
  width: 100%;
}
.form-wrapper form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-wrapper button[type="submit"] {
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
  padding: 14px 20px;
  border: none;
  border-radius: 20px;
  background: #ff9697;
  color: #7a1f24;
  font-size: 20px;
  font-weight: 700;
  text-transform: capitalize;
  box-shadow:
    inset 10px 10px 18px rgba(255, 198, 198, 0.65),
    inset -10px -10px 18px rgba(184, 77, 88, 0.38),
    0 14px 24px rgba(146, 52, 62, 0.28),
    0 6px 10px rgba(255, 255, 255, 0.2);
  transition:
    background-color 250ms ease,
    box-shadow 250ms ease,
    transform 250ms ease,
    color 250ms ease;
}
.form-wrapper button[type="submit"]:hover,
.form-wrapper button[type="submit"]:focus {
  background: #eb7f82;
  color: #64161d;
  box-shadow:
    inset 12px 12px 22px rgba(255, 190, 190, 0.45),
    inset -12px -12px 20px rgba(154, 49, 60, 0.42),
    0 18px 28px rgba(125, 37, 46, 0.32),
    0 0 0 4px rgba(255, 150, 151, 0.18);
  transform: translateY(-2px);
}
.form-wrapper button[type="submit"]:active {
  transform: translateY(1px);
  box-shadow:
    inset 14px 14px 20px rgba(157, 56, 67, 0.34),
    inset -8px -8px 16px rgba(255, 198, 198, 0.28),
    0 8px 14px rgba(125, 37, 46, 0.24);
}
.hero-title {
  margin-bottom: 20px;
}
/* #endregion */

/* #region footer */
.footer {
  padding: 20px 0;
  box-shadow:
    0 5px 5px 0 rgba(0, 0, 0, 0.25),
    0 5px 5px 0 rgba(0, 0, 0, 0.25),
    0 5px 5px 0 rgba(0, 0, 0, 0.25);
  background: #ff9697;
  border-radius: 20px 20px 0 0;
}
.footer-menu,
.footer-quiz {
  background: #b596ff;
}
/* #endregion footer */

/* #region menu */
.menu-quiz-list {
  display: flex;
  justify-content: center;
  gap: 119px;
  row-gap: 55px;
  flex-wrap: wrap;
}
.menu-quiz-item {
  max-width: 200px;
  flex-basis: calc((100% - 119px * 2) / 3);
  border-radius: 20px;
  background: rgba(1, 0, 0, 0.9);
}
.menu-quiz-img-wrap {
  position: relative;
  border: 1px solid #000;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
}
.menu-quiz-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  pointer-events: none;

  box-shadow:
    inset 18px 18px 20px rgba(0, 0, 0, 0.8),
    inset -18px -18px 20px rgba(0, 0, 0, 0.8);

  background: rgba(0, 0, 0, 0.15);
}
.menu-quiz-img {
  border: 1px solid #000;
  border-radius: 20px;

  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}
.menu-quiz-wrap-text {
  font-weight: 400;
  font-size: 16px;
  color: #fff;
  text-align: center;
  padding: 10px 20px;
}
.switch-wrapper{
  display: flex;
  justify-content: center;
  align-items: center;
}
.logout-wrapper{
 display: flex;
  justify-content: center;
  align-items: center;
}
.logout-btn{
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  box-shadow: none;
}
.logout-icon-wrapper{
      display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background: azure;
    margin-right: 5px;
}
/* #endregion */

/* #region quiz */
.back-btn{
    max-width: 360px;
    border-radius: 20px;
    padding: 17px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.25), 0 5px 5px 0 rgba(0, 0, 0, 0.25), 0 5px 5px 0 rgba(0, 0, 0, 0.25);
    background: #f5f1ff;
    margin-bottom: 70px;
}
.wrapper-back-time{
  display: flex;
  justify-content: space-between;
}
.quiz-container {
  padding: 34px 158px 52px;
}
.quiz-input-wrapper {
  max-width: 686px;
  margin-bottom: 33px;
  border-bottom: 5px solid #b596ff;
}
.quiz-form-text {
  margin-bottom: 22px;
}

/* #endregion */
