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

:root {
  --clr-background: #000000;
  --clr-offWhite: #f2f8f9;
  --clr-lightGrey: #9aa0ab;
  --clr-background-secondary: #0a0a0a;
  --clr-darkGrey: #1d1e21;
}

@font-face {
  font-family: 'NTBau';
  src: url('../fonts/NTBau-Regular.otf') format('opentype');
  font-size: normal;
  font-weight: normal;
}

@font-face {
  font-family: 'NTBau';
  src: url('../fonts/NTBau-Bold.otf') format('opentype');
  font-size: normal;
  font-weight: bold;
}

@font-face {
  font-family: 'favoriteMono';
  src: url('../fonts/FavoritMono-Regular.otf') format('opentype');
  font-size: normal;
  font-weight: normal;
}

@font-face {
  font-family: 'favoriteMono';
  src: url('../fonts/FavoritMono-Bold.otf') format('opentype');
  font-size: normal;
  font-weight: bold;
}

body {
  background-color: var(--clr-background);
}

h1,
.h1 {
  font-size: 36px;
  color: var(--clr-offWhite);
  font-family: 'NTBau';
}

.container {
  min-height: 100vh;
}

.row {
  display: flex;
  align-items: center;
}

.row.justify-space-between {
  justify-content: space-between;
}

.container header {
  height: 124px;
  background-color: var(--clr-background);
  padding-inline: 48px;
  border-bottom: 1px solid var(--clr-lightGrey);
  position: fixed;
  width: 100%;
}

.container header .row h1 {
  margin-left: 36px;
  line-height: 44px;
  letter-spacing: -4%;
}

.container .app {
  height: 100vh;
  min-height: 100vh;
  max-height: 200vh;
  padding-top: 124px;
}

.container .app .wrapper {
  min-height: 100%;
  display: flex;
}

.container .app .wrapper .left {
  flex-grow: 1;
  /* height: 100%; */
  padding: 49px 41px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.container .app .wrapper .middle {
  flex: 0 0 49.1%;
  /* height: 100%; */
  border-left: 1px solid var(--clr-lightGrey);
  border-right: 1px solid var(--clr-lightGrey);
  background-color: var(--clr-background-secondary);
  display: flex;
  justify-content: center;
  align-items: center;
}

.container .app .wrapper .right {
  flex: 0 0 33.33%;
  /* height: 100%; */
  display: flex;
  flex-direction: column;
}

.container .app .wrapper .right .toolbar {
  height: 151px;
  /* flex-shrink: 0.5; */
  border-bottom: 1px solid var(--clr-lightGrey);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 52px;
}

.container .app .wrapper .right .toolbar .tool {
  cursor: pointer;
}

.container .app .wrapper .right .color-palette {
  flex-grow: 1;
  padding: 50px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container .app .wrapper .right .color-palette .palette-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
  width: 100%;
}

.container .app .wrapper .right .copy-rights {
  border-top: 1px solid var(--clr-lightGrey);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-inline: 49px;
  padding-block: 38px;
}

.container .app .wrapper .right .copy-rights .row {
  grid-gap: 27px;
}

.btn-primary {
  cursor: pointer;
  height: 48px;
  width: 384px;
  background-color: var(--clr-offWhite);
  border: none;
  text-align: left;
  padding-left: 15px;
  font-size: 14px;
  line-height: 16px;
  letter-spacing: 10%;
  font-weight: 700;
  font-family: 'favoriteMono';
  background-image: url('../img/fi_arrow-down.png');
  background-repeat: no-repeat;
  background-position: calc(100% - 12px) 50%;
  background-size: 24px;
  box-shadow: 0px 0px 30px rgba(238, 244, 245, 0.4);
}

.copy-right {
  color: var(--clr-darkGrey);
  font-size: 12px;
  line-height: 14px;
  letter-spacing: 10%;
  font-weight: 700;
  font-family: 'favoriteMono';
}

.text {
  color: var(--clr-lightGrey);
  font-size: 16px;
  font-weight: 24px;
  font-weight: 400;
  font-family: 'NTBau';
  max-width: 35ch;
}

/* .text.vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(-180deg);
  max-height: 30ch;
} */

.i-span {
  height: 25px;
}

a.terms-link {
  color: var(--clr-lightGrey);
  font-size: 16px;
  line-height: 24px;
  font-family: 'NTBau';
}

.i-span.selected {
  border: 3px solid var(--clr-darkGrey);
}

.hidden-btn {
  display: none;
  padding: 32px 16px;
  border-top: 1px solid var(--clr-lightGrey);
  border-bottom: 1px solid var(--clr-lightGrey);
}

.hidden-btn .second {
  display: block;
  width: 100%;
}

.hidden-span {
  display: none;
  padding: 35px 16px;
  border-bottom: 1px solid var(--clr-lightGrey);
}
.hidden-span:nth-child(2) {
  display: none;
  padding: 30px 16px;
  /* border-bottom: 1px solid var(--clr-lightGrey); */
}
.hidden-span .row {
  align-items: center;
  grid-gap: 25px;
  height: initial !important;
}

/* media queries */

@media only screen and (max-width: 1040px) {
  h1,
  .h1 {
    font-size: 26px;
  }
  .container .app {
    padding-top: 80px;
  }
  .container header {
    height: 80px;
    padding-inline: 25px;
  }

  .container header .row {
    padding-inline: 0px;
  }

  .container .row {
    height: 80px;
    padding-inline: 25px;
  }
  .container .app .wrapper .left {
    padding: 25px 20px;
  }

  .container .app .wrapper .left .row {
    grid-gap: 27px;
  }

  .container .app .wrapper .right .toolbar {
    height: 120px;
    padding: 0px 25px;
  }

  .container .app .wrapper .right .color-palette {
    padding: 25px;
  }

  .container .app .wrapper .right .color-palette .palette-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    width: 100%;
  }
  .container .app .wrapper .right .copy-rights {
    padding-inline: 25px;
    padding-block: 22px 10px;
  }
  .btn-primary {
    width: 300px;
  }
  .i-span {
    height: 20px;
  }
}

@media only screen and (max-width: 746px) {
  h1,
  .h1 {
    font-size: 28px;
  }
  .container .app {
    padding-top: 80px;
  }
  .container header {
    height: 80px;
    padding-inline: 16px 24px;
  }
  .container header .row {
    grid-gap: 0;
    width: 100%;
    padding-inline: 0;
    justify-content: space-between;
    flex-direction: row-reverse;
  }
  .container header .row h1 {
    margin-left: 0;
  }
  .container .app .wrapper {
    flex-wrap: wrap;
  }
  .container .app .wrapper .left {
    padding: 25px 20px;
    display: none;
  }

  .container .app .wrapper .middle {
    flex: 0 0 100%;
    padding: 16px 32px;
  }

  .container .app .wrapper .left .row {
    grid-gap: 27px;
  }
  .container .app .wrapper .right {
    flex: 0 0 100%;
  }

  .container .app .wrapper .right .toolbar {
    height: 120px;
    padding: 0px 25px;
    border-top: 1px solid var(--clr-lightGrey);
    height: 112px;
  }

  .container .app .wrapper .right .color-palette {
    padding: 25px;
  }

  .container .app .wrapper .right .color-palette .palette-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    width: 100%;
  }
  .container .app .wrapper .right .copy-rights {
    padding-inline: 25px;
    padding-block: 22px 10px;
  }
  .btn-primary {
    display: none;
  }
  .i-span {
    height: 20px;
  }
  .hidden-btn {
    display: block;
  }
  .hidden-span {
    display: block;
  }
}
