:root {
  --color-bg: #0a1932;
  --color-accent-dark: #0a1932;
  --color-accent-mid: #5c9fff;
  --color-input-bg: #0C1B2C;
  --color-reg-bg: #0e2446;
  --color-reg-active: #b9d4ff;

  --color-highlight-cyan: #457bd0;
  --color-highlight-cyan-gradient: linear-gradient(to right, #0a1932, #245aaf);

  --color-button-blue: #245aaf;
  --color-button-blue-light: #55c9fff;

  --color-gold: #ffc400;
  --color-gold-hover: #e6af00;

  --color-red: #e23a3a;

  --text-primary: #ffffff;
  --text-secondary: #c0c3cc;
  --text-highlight: #ffcc00;
}

* {
  font-size: 16px;
  font-weight: 550;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #002220;
  background-image: url("../static/img/background.png");
  background-size:cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  position: relative;
  box-sizing: border-box;
  padding: 50px 100px 0;
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 999;
  display: none;
  pointer-events: all;
}

select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  color: #000;
}
.dropdown {
  position: relative;
  z-index: 9999;
}


.content {
  /* padding: 40px 200px; */
}

.girl {
  position: absolute;
  width: 336px;
    height: 679px;
    left: calc(50% + 121px);
    bottom: 0;
    z-index: 2;
}
.girl div {
  background-image: url(../static/img/girl.png);
  width: 100%;
    height: 100%;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-origin: initial;
    background-clip: initial;
    background-color: initial;
    background-size: cover;
}

.treasures {
  width: 645px;
    height: 695px;
    margin: 0 auto;
    background-image: url(../static/img/effect.png);
    background-size: cover;
    position: absolute;
    bottom: 34px;
    left: 50%;
    z-index: 1;
}

.header {

}
.header__logo {
  width: 300px;
}
.header__par {
  font-size: 15px;
  font-style: italic;
  text-transform: uppercase;
}

.scoreboard {
  display: flex;
  flex-direction: row;
  margin-top: 20px;
  gap: 5px;
}
.scoreboard__item {
  font-size: 15px;
  padding: 3px 20px;
  background-color: var(--color-accent-dark);
  border-radius: 10px;
}
.solid-item {
  background-color: var(--color-highlight-cyan);
  color: #000;
}




.canvas {
  position: relative;
  width: 500px;
  height: 300px;
  overflow: hidden;
  border-left: 1px solid #414141;
  border-bottom: 1px solid #414141;
  margin-top: 20px;
}

.aviator-logo {
  position: absolute;
    line-height: 0;
    margin-left: 24px;
    height: 48px;
    width: 172px;
    background: url('../static/img/aviator_logo.png');
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-origin: initial;
    background-clip: initial;
    background-color: initial;
    background-size: cover;
    margin-top: 13px;
}

#graph {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  z-index: 1;
}

#plane-wrapper {

  position: fixed;
  top: bottom;
  left: 0;
  pointer-events: none;
  z-index: 1000;
  width: 0;
  height: 0;
}

#plane {
  display: none;
  position: fixed;
  width: 186px;
  height: 96px;
  background-image: url("../static/img/plane.png");
  background-size: 1116px 96px;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  transform-origin: center center;
}





#multiplier {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 40px;
  color: white;
  font-weight: bold;
}

@keyframes float {
  0%   { transform: translate(-50%, -55%); }
  100% { transform: translate(-50%, -45%); }
}
@keyframes waveFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

.wave-motion {
  animation: waveFloat 2s ease-in-out infinite;
}



.bet {
  position: relative;
  z-index: 10;
  width: 500px;
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 50px;
}
.bet__left {
  flex: 1;
}
.bet__right {
  flex: 1;
}
.bet__input {
  width: 100%;
  background-color: var(--color-input-bg);
  border: none;
  border-radius: 10px;
  font-size: 18px;
  color: var(--text-primary);
  padding: 10px;
  box-sizing: border-box;
}

.bet__input-wrap {
  position: relative;
  width: 100%;
}
.input-buttons {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  display: flex;
  gap: 5px;

}

.input-button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
 background-color: var(--color-accent-dark);
  color: #5c7572;
  font-weight: bold;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: .1s;
  padding-bottom: 2px;
}
.input-button:hover {
background-color: var(--color-accent-mid);}


.bet__list {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}
.bet__list-item {
  flex: 1;
  background-color: var(--color-accent-dark);
  border-radius: 10px;
  text-align: center;
  color: #fff;
  font-size: 15px;
  padding: 3px 20px;
  cursor: pointer;
  transition: .1s;
}
.bet__list-item:hover {
  background-color: var(--color-accent-mid);
  color: var(--text-primary);
}
.bet__button {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  border: none;
  background: var(--color-highlight-cyan-gradient) !important;
  color: #fff;
  cursor: pointer;
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
}

/* Registration */
.registration {
  display: none;
  padding: 20px;
  max-width: 400px;
  width: 100%;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
}
.registration__info {
  display: none;
  padding: 20px;
  max-width: 400px;
  width: 100%;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
}
.registration__info-content {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color-highlight-cyan);
  border-radius: 20px;
  padding: 25px;
  height: 550px;

}
.registration__info-text {
  margin-top: 20px;
  text-align: center;
  font-style: italic;
  font-weight: bold;
}
.registration__info-title {
  font-size: 30px;
}
.registration__info-par {
  font-size: 25px;
  margin-top: 10px;

  color: #f6e7b8;
}
.registration__info-button {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}
.registration__info-button a {
  text-align: center;
  width: 100%;
  padding: 14px;
  background-color: #ffc400;
  color: #000;
  border: none;
  border-radius: 12px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s;
  text-decoration: none;
  font-style: italic;
}
.registration__info-button a:hover {
  background-color: #e6af00;
}
.registration_content {
  background-color: var(--color-reg-bg);
  border-radius: 20px;
  padding: 25px;

}

.registration_title {
  color: #ffc400;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
}
.registration_par {
    text-align: center;
    font-weight: bold;
    margin-bottom: 15px;
}

.registration_title span {
  font-size: 18px;
  color: #ccc;
}

.registration_phone-email {
  display: flex;
  margin-bottom: 15px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.registration_phone-email .tab {
  flex: 1;
  padding: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  background: none;
  color: #000;
}

.registration_phone-email .tab.active {
  background: var(--color-reg-active);
  color: #000;
}

.registration_country-currency {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  justify-content: space-between;
}

.select-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.select-wrapper select {
  flex: 1;
  padding: 15px;
  border-radius: 10px;
  border: none;
  font-size: 14px;
}

.select-wrapper::after {
 content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: url("/static/img/arrow-bottom.svg") no-repeat center;
  background-size: contain;
  pointer-events: none;
}
.invalid_country {
  display: none;
  text-align: center;
  padding: 5px;
  background-color: #fff;
  color: red;
  border: 1px solid red;
  border-radius: 5px;
  margin-bottom: 15px;
}

.registration_input {
    background-color: #fff;
    padding: 12px;
    border-radius: 10px;
    border: none;
    margin-bottom: 15px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.registration_input span {
    color: #000;
    padding: 8px 20px;
    background-color: rgb(240, 240, 240);
    border-radius: 5px;
}
.registration_input input {
    border: 0px;
    font-size: 16px;
    width: 100%;
}
.registration_input input:focus {
    outline: none;
  box-shadow: none;
  border-color: initial;
}
.registration_bonus {
  display: flex;
  margin-bottom: 15px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.registration_bonus .bonus {
  flex: 1;
  padding: 15px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  background-color: #ddd;
  color: #000;
}

.registration_bonus .bonus.active {
  background-color: var(--color-reg-active);
    }

.registration__add-promo {
    color: #ffc400;
    text-align: center;
    cursor: pointer;
}
.registration_promo {
    display: none;
    background-color: #fff;
    padding: 12px;
    border-radius: 10px;
    border: none;
    margin-bottom: 15px;
    font-size: 14px;
}
.registration_promo input {
    border: 0px;
    font-size: 16px;
    width: 100%;
    padding: 5px;
}
.registration_promo input:focus {
    outline: none;
  box-shadow: none;
  border-color: initial;
}

.registration_submit button {
  width: 100%;
  padding: 14px;
  background-color: var(--color-gold);
  color: #000;
  border: none;
  border-radius: 12px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s;
  margin-top: 15px;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.registration_submit button:hover {
  background-color: var(--color-gold-hover);
    color-adjust: exact;
}

.registration_login {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
}

.registration_login a {
  color: #fff;
  text-decoration: underline;
}

/* ======== Terms ======== */
.registration_terms {
  text-align: center;
  font-size: 11px;
  margin-top: 10px;
  color: #aaa;
}


/* Optimization */

@media screen and (max-width:1100px) {
  .treasures {
    display: none;
  }
  .girl {
    width: 268px;
    height: 541px;
    left: calc(50% + 158px);
  }
}
@media screen and (max-width:900px) {
  .girl {
    width: 268px;
    height: 541px;
    left: calc(50% + 90px);
    bottom:-105px;
  }
  body {
    padding: 30px 50px 0;
  }
}

@media screen and (max-width:700px) {
  .canvas {
    width: 400px;
  }
}

@media screen and (max-width:600px) {
  .bet {
    flex-direction: column;
    margin-top: 10px;
    width: 300px;
    margin: 50px auto;
  }
  .bet__button {
    height: 50px;
    -webkit-appearance: none;
    appearance: none;
    color-adjust: exact;
    color: #fff;
  }
  .canvas {
    width: 300px;
    height: 220px;
    margin-top: 20px;
  }
  body {
    padding: 20px 10px 0;
  }
  .girl {
    width: 228px;
        height: 460px;
        left: calc(50% + 3px);
        bottom: -57px;
  }
  .header__logo {
    width: 200px;
  }
  .header__par {
    font-size: 14px;
  }
  .scoreboard {
    justify-content: center;
    margin-top: 10px;
  }
  .nonm {
    display: none;
  }
  .aviator-logo {
    height: 36px;
    background-size: contain;
    margin-left: 0;
  }
}

@media screen and (max-width:350px) {
  .canvas {
    width: 250px;
  }
}
