@import url("https://fonts.googleapis.com/css?family=Nunito:300");
@import url("https://fonts.googleapis.com/css?family=Heebo:400,700");

html,
body {
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: normal;
  font-style: normal;
}

.accountForm {
  position: absolute;
  top: 100px;
  left: 50%;
  padding-bottom: 20px;
  font-family: "Nunito", sans-serif;
  color: #fefefe;
  background: #fefefe;
  margin: 0 auto;
  width: 80vw;
  box-shadow:
    0 3px 6px rgba(0, 0, 0, 0.16),
    0 3px 6px rgba(0, 0, 0, 0.23);
  transform: translate(-50%, 0);
}

.accountForm .section {
  padding: 1rem;
}

.accountForm .header {
  position: relative;
  text-align: center;
  overflow: hidden;
}
.accountForm .header__text {
  position: relative;
  padding: 3.5rem 0;
}
.accountForm.header__text > h1 {
  margin: 0;
  font-size: 2.5rem;
}
.accountForm .header > .trapezoid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* transform: skewY(-10deg); */
  transform-origin: top left;
  box-shadow:
    0 3px 6px rgba(0, 0, 0, 0.16),
    0 3px 6px rgba(0, 0, 0, 0.23);
  background:
    linear-gradient(rgba(17, 38, 190, 0.8), rgba(17, 38, 190, 0.8)),
    url("https://images.pexels.com/photos/520936/pexels-photo-520936.jpeg?w=940&h=650&auto=compress&cs=tinysrgb");
  background-position: top center;
  background-attachment: fixed;
}

.accountForm .close {
  position: absolute;
  top: 10px;
  right: 10px;
  color: white;
  z-index: 1;
  font-size: 35px;
}

.accountForm form {
  margin: 0 auto;
  max-width: 17rem;
  overflow: auto;
}

.accountForm p {
  margin: 10px;
  color: white;
  text-align: center;
}

.accountForm .sign-in p {
  color: black;
}

.accountForm form > input {
  border: 0;
  border-bottom: 1px solid #1126be;
  border-radius: 0;
  width: 100%;
  height: 2rem;
  padding: 0 0 0.25rem 0;
  font-size: 1rem;
  color: #1126be;
  background: #fefefe;
}
.accountForm form > input:focus {
  outline: none;
}
.accountForm form > input::placeholder {
  color: #1126be;
}
.accountForm form > .button {
  margin-top: 1rem;
  border: 0;
  border-radius: 200px;
  width: 100%;
  padding: 0.85rem;
  font-size: 1rem;
  color: #fefefe;
  background: #1126be;
}
.accountForm form > .button:focus {
  outline: none;
}
.accountForm form > p {
  margin: 0.25rem 0 0;
  text-align: center;
  color: #1126be;
}

.accountForm .sign-up {
  display: none;
}

.accountForm .opposite-btn1,
.accountForm .opposite-btn2 {
  cursor: pointer;
}

.login-with-google-btn {
  transition:
    background-color 0.3s,
    box-shadow 0.3s;

  padding: 12px 16px 12px 42px;
  border: 1px solid #1126be;
  border-radius: 200px;
  width: 100%;
  box-shadow:
    0 -1px 0 rgba(0, 0, 0, 0.04),
    0 1px 1px rgba(0, 0, 0, 0.25);
  font-size: 1rem;
  color: black;
  background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTcuNiA5LjJsLS4xLTEuOEg5djMuNGg0LjhDMTMuNiAxMiAxMyAxMyAxMiAxMy42djIuMmgzYTguOCA4LjggMCAwIDAgMi42LTYuNnoiIGZpbGw9IiM0Mjg1RjQiIGZpbGwtcnVsZT0ibm9uemVybyIvPjxwYXRoIGQ9Ik05IDE4YzIuNCAwIDQuNS0uOCA2LTIuMmwtMy0yLjJhNS40IDUuNCAwIDAgMS04LTIuOUgxVjEzYTkgOSAwIDAgMCA4IDV6IiBmaWxsPSIjMzRBODUzIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48cGF0aCBkPSJNNCAxMC43YTUuNCA1LjQgMCAwIDEgMC0zLjRWNUgxYTkgOSAwIDAgMCAwIDhsMy0yLjN6IiBmaWxsPSIjRkJCQzA1IiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48cGF0aCBkPSJNOSAzLjZjMS4zIDAgMi41LjQgMy40IDEuM0wxNSAyLjNBOSA5IDAgMCAwIDEgNWwzIDIuNGE1LjQgNS40IDAgMCAxIDUtMy43eiIgZmlsbD0iI0VBNDMzNSIgZmlsbC1ydWxlPSJub256ZXJvIi8+PHBhdGggZD0iTTAgMGgxOHYxOEgweiIvPjwvZz48L3N2Zz4=);
  background-color: white;
  background-repeat: no-repeat;
  background-position: 15px 15px;
  margin-bottom: 10px;

  &:hover {
    box-shadow:
      0 -1px 0 rgba(0, 0, 0, 0.04),
      0 2px 4px rgba(0, 0, 0, 0.25);
  }

  &:active {
    background-color: #eeeeee;
  }

  &:focus {
    outline: none;
    box-shadow:
      0 -1px 0 rgba(0, 0, 0, 0.04),
      0 2px 4px rgba(0, 0, 0, 0.25),
      0 0 0 3px #c8dafc;
  }

  &:disabled {
    filter: grayscale(100%);
    background-color: #ebebeb;
    box-shadow:
      0 -1px 0 rgba(0, 0, 0, 0.04),
      0 1px 1px rgba(0, 0, 0, 0.25);
    cursor: not-allowed;
  }
}

/* --- Base Button Styles --- */
.element {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  vertical-align: middle;
  font-family: "Lato";
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 10px 20px;
  font-size: 1rem;
}

.element::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 6px;
  border-radius: 6px;
  opacity: 1;
  transition: all 0.15s ease;
}

/* --- Size Variants --- */
.short {
  padding: 6px 12px;
  font-size: 1rem;
}

.medium {
  padding: 10px 20px;
  font-size: 1.2rem;
}

.jumbo {
  padding: 14px 28px;
  font-size: 1.4rem;
}

.text {
  padding: 4.5px 8px;
  font-size: 1rem;
  line-height: 1.4;
}

/* === THEME 1: Ice Pearl === */
.shading-1 .element {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.8),
    rgba(235, 235, 240, 0.7)
  );
  box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.1);
  color: #2c3e50;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.shading-1 .element:hover {
  background: linear-gradient(
    90deg,
    rgba(235, 235, 255, 0.6),
    rgba(255, 255, 255, 0.5)
  );
  box-shadow: 1px 4px 7px rgba(0, 0, 0, 0.15);
}

/* Default shadow */
.shading-1 .element::after {
  background: rgba(0, 0, 0, 0.1);
  opacity: 0.5;
}

/* Pressed state - no lower shadow */
.shading-1 .element:active {
  transform: scale(0.98);
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.2);
}

.shading-1 .element:active::after {
  opacity: 0;
}

/* === THEME 2: Fortress === */
.shading-2 .element {
  color: #1a1a1a;
  background: linear-gradient(
    90deg,
    rgba(235, 235, 255, 0.5),
    rgba(255, 255, 255, 0.6)
  );
  /* box-shadow: 0 5px 2px rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(220,220,220, 0.9);*/

  box-shadow: 2.5px 5px 0.5px rgba(0, 0, 0, 0.85);
  box-shadow: 2.5px 5px 0.5px #333;
  border: 1px inset rgba(72, 72, 72, 0.5);
  transform-style: preserve-3d;
  perspective: 200px;
}

.shading-2 .element:hover {
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0.7),
    rgba(235, 240, 255, 0.8)
  );
}

/* Default shadow */
.shading-2 .element::after {
  background: rgba(0, 0, 0, 0.05);
  opacity: 0.5;
}

/* Pressed state */
.shading-2 .element:active {
  transform: translateX(1.5px) translateY(2px);
  outline: none;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.85);
  transition: all 0.15s ease;
}

.shading-2 .element:active::after {
  opacity: 0.1;
}

/* === THEME 3: Greasy Graphite / Black Ice === */
.shading-3 .element {
  background:
    radial-gradient(50% 50% at top center, rgba(0, 0, 0, 0.66), #262626),
    linear-gradient(180deg, #fff, #262626);
  box-shadow: 0 5px 1px rgba(0, 0, 0, 0.85);
  color: #e0e0e0;
  border: 1.6px inset rgba(72, 72, 72, 0.5);
  transform-style: preserve-3d;
  perspective: 200px;
}

/* Default shadow */
.shading-3 .element::after {
}

/* Pressed state */
.shading-3 .element:active {
  transform: rotateX(-15deg) translateY(2px) scale(0.98);
  outline: none;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.85);
}

/* modal settings */

.settings-wrapper {
  box-sizing: border-box;
  font-size: 62.5%;
  font-size: 1.6rem;
  font-family: "Heebo", system-ui;
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  overflow: auto;
}

.settings-wrapper a {
  color: inherit;
}

.settings-wrapper button,
.settings-wrapper input,
.settings-wrapper select,
.settings-wrapper textarea {
  font-family: inherit;
}
.settings-wrapper button:focus,
.settings-wrapper button:active,
.settings-wrapper input:focus,
.settings-wrapper input:active,
.settings-wrapper select:focus,
.settings-wrapper select:active,
.settings-wrapper textarea:focus,
.settings-wrapper textarea:active {
  outline: 0;
}

.settings-wrapper h1 {
  margin: 0 0 1rem 0;
}

.settings-wrapper h3 {
  margin: 4rem 0 3rem;
}

.settings-wrapper p {
  margin-bottom: 2rem;
}

.settings-wrapper {
  margin: 5.5rem 1rem 0;
}

.settings-wrapper .card {
  display: block;
  width: 100%;
  margin: auto;
  max-width: 1200px;
  background: #1126be;
  color: white;
  border-radius: 0.8rem;
  margin-bottom: 2rem;
}
.settings-wrapper .card__header {
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.settings-wrapper .card__body {
  padding: 5rem 7rem 7rem;
}
@media screen and (max-width: 900px) {
  .settings-wrapper .card__body {
    padding: 1rem 2rem 3rem;
  }
}

.settings-wrapper .toolbar__item {
  box-shadow: inset 0px 0px 15px rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: inline-block;
  cursor: pointer;
  transition: all 300ms ease;
}
.settings-wrapper .toolbar__item:not(:last-of-type) {
  margin-right: 0.5rem;
}
.settings-wrapper .toolbar__item:hover,
.settings-wrapper .toolbar__item:focus {
  transform: scale(1.1);
  box-shadow: inset 0px 0px 3px rgba(255, 255, 255, 0.1);
  transition: all 300ms ease;
}
.settings-wrapper .toolbar__item--close {
  background: #ea6759;
}
.settings-wrapper .toolbar__item--min {
  background: #ffcc00;
}
.settings-wrapper .toolbar__item--max {
  background: #2dcc72;
}

.settings-wrapper .container {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-between;
}
@media screen and (max-width: 900px) {
  .settings-wrapper .container {
    flex-direction: column;
  }
}

.settings-wrapper .grid {
  flex: 1;
  padding-left: 2rem;
  padding-right: 2rem;
  position: relative;
}
@media screen and (max-width: 900px) {
  .settings-wrapper .grid {
    max-width: 100%;
  }
}

.settings-wrapper .toggle {
  max-width: 62px;
  height: 32px;
  background: #8391ff;
  border-radius: 999px;
  position: relative;
  transition: all 300ms ease;
  cursor: pointer;
}
.settings-wrapper .toggle__handle {
  height: 24px;
  width: 24px;
  position: absolute;
  top: 50%;
  left: 4px;
  transform: translateY(-50%);
  background: white;
  border-radius: 50%;
  transition: all 300ms ease;
}
.settings-wrapper .toggle.is-on {
  background: white;
  transition: all 300ms ease;
}
.settings-wrapper .toggle.is-on .toggle__handle {
  left: 34px;
  background: #1126be;
  transition: all 300ms ease;
}

.settings-wrapper .form-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.settings-wrapper .form-item a {
  text-decoration: underline;
}

.settings-wrapper .form-item__control {
  width: 40%;
  text-align: right;
}

.settings-wrapper .control {
  background: transparent;
  color: inherit;
  display: block;
  width: 100%;
  border-radius: 0.3rem;
  padding: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.settings-wrapper .control:hover,
.settings-wrapper .control:focus {
  background: #7059e2;
  border-color: transparent;
}
.radio {
  display: inline-block;
}
.radio__item {
  display: inline-block;
  color: #9c88ff;
  cursor: pointer;
  transition: all 300ms ease;
  line-height: 45px;
  margin: 0;
  padding: 0 0.8rem;
}

.radio__item.is-active {
  color: white;
  transition: all 300ms ease;
}

.u-text--small {
  font-size: 1.3rem;
}

.u-text--normal {
  font-size: 1.6rem;
}

.u-text--large {
  font-size: 2.2rem;
}

.settings-wrapper .slider {
  width: 100%;
  position: relative;
}
.settings-wrapper .slider__positive {
  width: 100%;
  height: 5px;
  background: white;
  position: absolute;
  top: 80%;
  transform: translateY(-50%);
  pointer-events: none;
}
.settings-wrapper .slider__input {
  margin-top: 1rem;
  display: block;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  background: #7059e2;
  outline: none;
  transition: all 300ms ease;
}
.settings-wrapper .slider__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 4px solid white;
  background: white;
  cursor: pointer;
  position: relative;
  -webkit-transition: all 300ms ease;
  transition: all 300ms ease;
}
.settings-wrapper .slider__input::-webkit-slider-thumb:focus,
.settings-wrapper .slider__input::-webkit-slider-thumb:active {
  box-shadow: 0px 3px 12px rgba(0, 0, 0, 0.2);
  -webkit-transition: all 300ms ease;
  transition: all 300ms ease;
}

.settings-wrapper .button {
  border: 0;
  background: white;
  color: #1126be;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  border-radius: 0.4rem;
  padding: 0.6rem 1.4rem;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.settings-wrapper .button:hover,
.settings-wrapper .button:focus {
  background: #070d3e;
  color: white;
  transition: all 300ms ease;
}

.settings-wrapper .buttons {
  margin-top: 3rem;
}
.settings-wrapper .buttons .button {
  margin-left: 1rem;
}

.settings-wrapper .credits {
  position: fixed;
  width: 100%;
  background: black;
  color: white;
  text-align: center;
  bottom: 0;
  padding: 0 1.5rem;
}

.settings-wrapper .link--dribbble {
  color: #ea4c89;
}
