:root {
  --color-white: #f0f0f0;
  --color-black: #000000;
  --color-black-100: #1a1a1a;
  --color-grey-400: #bdbdbd;
  --color-grey-500: #888888;
  --color-grey-700: #303030;
  --color-grey-600: #505050;
  --color-red-300: #e05151;
}

/* Nunito-700 - latin */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  src: local('Nunito Bold 700'), local('Nunito Bold'), url(fonts/nunito/Nunito-Bold.min.ttf) format('truetype');
}

html {
  font-family: Nunito;
}

body {
  margin: 0;
  background-image: url(background.svg);
  background-size: cover;
  background-color: var(--color-black);
}

html,
body,
section {
  width: 100%;
  height: 100%;
}

header {
  margin-top: 123px;
  display: flex;
  justify-content: center;
}

.hidden {
  display: none;
}

h1 {
  text-align: center;
}

section {
  color: var(--color-white);
  background-color: var(--color-black);
  background-image: url(background.svg);
  background-size: 100% 100%;
  width: 100%;
  height: 100%;

  display: none;
  position: absolute;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

section#home,
section:target {
  display: flex;
}

.text-body1 {
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.text-h3 {
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.color-white {
  color: var(--color-white);
}

.color-grey-400 {
  color: var(--color-grey-400);
}

.color-grey-500 {
  color: var(--color-grey-500);
}

.color-grey-700 {
  color: var(--color-grey-700);
}

.frame {
  display: flex;
  margin-top: 56px;
  border-radius: 10px;
  border: 1px solid var(--color-grey-700);
  background: var(--color-black-100);
  padding: 56px;
  box-sizing: border-box;
  max-width: 436px;
  gap: 24px;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

section form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

form .error {
  margin-top: 12px;
  font-family: Nunito;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  color: var(--color-red-300);
}

.code-input {
  margin-top: 56px;
  width: 224px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.code-input input,
.code-input input:focus {
  outline: none;
}

.code-input input {
  font-family: Nunito;
  text-align: center;
  text-transform: uppercase;
  padding: 0;
  width: 32px;
  height: 37px;
  color: var(--color-white);
  background-color: transparent;
  border-width: 0px;
  border-bottom: 1px solid var(--color-grey-500);
  font-size: 24px;
}

a {
  text-decoration: none;
}
a.button,
button {
  text-decoration: none;
  font-family: Nunito;
  border-width: 0;

  padding: 12px 24px;
  border-radius: 8px;

  font-size: 16px;
  color: var(--color-black);
  background-color: var(--color-white);
  min-width: 180px;
  cursor: pointer;
}

.home-container {
  display: flex;
  margin-top: 70px;
  justify-content: center;
  gap: 16px;
}

.home-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 144px !important;
  padding: 28px !important;
  margin-bottom: 4px;
  font-weight: 700;
  font-size: 14px;
}
.home-button img {
  margin-bottom: 16px;
}
.home-button-inner {
  text-align: center;
  width: 144px;
}

.home-button-info {
  font-size: 12px;
  font-weight: 400;
  text-align: center;
  color: var(--color-grey-400);
  margin: 0;
}

.pairing-menu {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 100vh;
}

.offers {
  padding-bottom: 16px;
  margin-bottom: 32px;
}
.button-offers {
  margin-top: 16px;
  text-align: center;
}
.button-offers button {
  background-color: var(--color-grey-700);
  color: var(--color-white);
}

button:disabled {
  color: var(--color-grey-500);
}

a.button img,
button img {
  width: 24px;
  height: 24px;
  margin-right: 4px;
  vertical-align: bottom;
}

.form-controls button.disabled {
  opacity: 0.4;
  cursor: unset;
}

a.button:hover,
button:not(.disabled):hover {
  opacity: 0.8;
}

.form-controls button {
  margin-top: 32px;
}

h2 {
  display: flex;
  white-space: nowrap;
  align-items: center;

  font-family: Nunito;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin: 0;
}

h2:before,
h2:after {
  content: '';
  display: block;
  width: 233px;
  height: 2px;
  background: var(--color-grey-600);
}

h2:before {
  margin-right: 32px;
}

h2:after {
  margin-left: 32px;
}

article h2 {
  margin-top: 56px;
}

.frame-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
}

.frame-menu button {
  margin-bottom: 12px;
  /* 322? */
  width: 295px;
}

.frame-menu button:hover {
  opacity: 0.8;
}

header.pairing-menu-header {
  margin-top: 60px;
  display: flex;
  justify-content: center;
}

#form-login-freetv {
  display: block;
  width: unset;
}

/**
 * CSS Media queries
 */

@media only screen and (max-width: 600px) {
  .header {
    margin-top: 20px;
  }
}

@media (orientation: landscape) and (max-height: 580px) {
  header {
    margin-top: 31px;
  }

  section {
    justify-content: center;
  }

  .frame {
    margin: 16px;
    top: auto;
  }

  main {
    height: 100%;
    justify-content: center;
  }
}

@media (-webkit-min-device-pixel-ratio: 2) and (max-width: 600px) {
  .text-body1 {
    font-size: 14px;
  }
  header {
    margin-top: 31px;
  }

  section {
    justify-content: start;
  }

  .code-input {
    margin-top: 12px;
  }

  .frame {
    margin: 16px;
    padding: 24px;
  }

  a.button,
  .form-controls button {
    margin-top: 12px;
  }

  .code-input {
    width: 300px;
    justify-content: space-around;
  }
}

@media (max-width: 700px) {
  h2:before,
  h2:after {
    width: 60px;
  }
}
