@font-face {
  font-family: nasa;
  src: url(../font/nasalization/nasalization-rg.ttf);
}

* {
  margin: 0;
  padding: 0;
}

p {
  margin-bottom: 10px;
}

html {
  font-family: sans-serif;
  background-image: linear-gradient(to top, #000000 0%, #000000 100%);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  /* -webkit-animation: fadein 1.5s; */
  overflow: hidden;
}

@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

canvas {
  display: none;
  position: absolute;
  /* width:100%; */
  margin: auto;
  /* margin-left:2.5%; */
  /* height:calc(100vh); */
  top: 0px;
  /* margin-bottom: 35px; */
  z-index: 1;
  overflow: visible;
}

#bodyContainer {
  box-shadow: 0px 0px 300px 10px rgba(115, 6, 6, 0.347);
  /* box-shadow:0px 0px 50px 10px black; */
  /* border:2px black solid; */
  /* padding:30px; */
  width: 100%;
  height: calc(100vh);
  margin: auto;
  background-image: url("../images/bg.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  margin-top: 0px;
  margin-bottom: 0px;
  position: relative;
  /* -webkit-animation: fadein 1.5s; */
  border-radius: 5px;
  /* max-width:1920px; */
  overflow: visible;
  opacity: 0;
  transition: all 0.5s;
  filter: blur(1px);
}

#backgroundVideo {
  position: fixed; /* Change to 'fixed' to cover the full viewport */
  top: 0;
  left: 0;
  width: 100vw; /* Use 'vw' unit for full viewport width */
  height: 100vh; /* Use 'vh' unit for full viewport height */
  object-fit: fill; /* This ensures the aspect ratio is maintained while covering the full area */
}

.bigBigTitle {
  color: #fff;
  padding: 20px;
  position: absolute;
  top: 20px;
  right: 60px;
  width: calc(100% - 120px);
  transition: all 0.5s;
}
.bigBigTitle h1 {
  text-align: right;
  font-size: 120px;
  /* font-family:library; */
  -webkit-animation: fadein 3s;
  white-space: nowrap;
  font-family: nasa;
  /* text-shadow: 2px 2px 2px rgb(226, 31, 64); */
}
.bigBigTitle h3 {
  text-align: right;
  font-size: 50px;
  font-family: nasa;
  -webkit-animation: fadein 3s;
  white-space: nowrap;
  /* text-shadow: 2px 2px 2px rgb(226, 31, 64); */
}
.history-container {
  transition: all 0.5s;
}
.history-description {
  color: #fff;
  padding: 50px;
  position: absolute;
  bottom: 0;
  width: calc(100% - 100px);
  margin: auto;
  text-align: center;
  font-size: 26px;
  font-family: nasa;
  -webkit-animation: fadein 3s;
}
.green-link {
  color: rgb(64, 228, 84);
  cursor: pointer;
}
.red-shadow {
  text-shadow: 2px 2px 1px rgb(226, 31, 64);
}
.red {
  color: rgb(226, 31, 64);
}
.red-text {
  text-shadow: 1px 1px 1px rgb(255, 255, 255);
  color: rgb(226, 31, 64);
}

@media screen and (max-width: 1400px) {
  .bigBigTitle h1 {
    font-size: 80px;
  }
  .bigBigTitle h3 {
    font-size: 30px;
  }
}
@media screen and (max-width: 745px) {
  .bigBigTitle h1 {
    font-size: 40px;
  }
  .bigBigTitle h3 {
    font-size: 20px;
  }
  .history-description {
    font-size: 18px;
    padding: 20px;
    width: calc(100% - 40px);
  }
}
@media screen and (max-width: 435px) {
  .bigBigTitle {
    width: calc(100% - 40px);
    right: auto;
  }
  .bigBigTitle h1 {
    font-size: 26px;
    text-align: center;
  }
  .bigBigTitle h3 {
    font-size: 15px;
    text-align: center;
  }
  .history-description {
    font-size: 15px;
  }
}

.moonObject {
  color: white;
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgb(255 255 255 / 58%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.8;
  transition: all 2s;
  border-radius: 300px;
  box-shadow: 0px 0px 50px 10px white;
  z-index: 2;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
  border: 1px solid #ffffff00;
}

.fade-in {
  animation-name: fadeInOpacity;
  animation-iteration-count: 1;
  animation-timing-function: ease-in;
  animation-duration: 1s;
}

@keyframes fadeInOpacity {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 0.8;
  }
}

.moonObject:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 0px 0px 120px 15px white;
  border: 1px solid #fff;
}

.moonObject form {
  width: 100%;
  font-family: library;
  padding-top: 25px;
}

.form-label {
  text-align: center;
  margin: auto;
  padding-top: 10px;
  padding-bottom: 5px;
  color: rgb(231, 52, 82);
}

.form-input {
  padding: 5px;
}

.form-input .txtInput {
  width: 166px;
  background: black;
  opacity: 0.7;
  border: 1px solid white;
  border-radius: 5px;
  padding: 2px;
  color: rgb(34, 224, 238);
  font-size: 15px;
  font-family: nasa;
  text-align: center;
}

.form-input .txtInput:focus,
.form-input .txtInput:hover {
  opacity: 1;
}

#search-field {
  display: none;
}
.laserBeam {
  position: absolute;
  background: rgb(228, 39, 39);
  z-index: 3;
  border-radius: 10px;
  box-shadow: 0px 0px 30px 5px rgb(218, 13, 13);
  width: 0px;
  height: 0px;
  opacity: 0;
  /* -webkit-animation: fadein 1s; */
}

/* button largement inspiré par https://codemyui.com/light-sweep-effect-on-button-hover/ */

.specialButton {
  font-family: "Hind Guntur", sans-serif;
  line-height: 1;
  color: #fff;
  letter-spacing: 0.025em;
  background: rgb(0, 0, 0);
  cursor: pointer;
  border: 0;
  border-radius: 5px;
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 12px;
  /* padding-left:20px;
	padding-right:30px; */
  opacity: 0.7;
  width: 120px;
  overflow: hidden;
  transform: translate(-50%, -50%);
  box-shadow: 0px 0px 100px 10px white;
  font-family: nasa;
  transition: all 0.5s;
  opacity: 0;
  pointer-events: none;
}

.specialButton span {
  display: block;
  position: relative;
  z-index: 10;
  font-size: 20px;
}

.specialButton:after,
.specialButton:before {
  padding: 18px 0 11px;
  content: "";
  position: absolute;
  top: 0;
  left: calc(-100% - 30px);
  height: calc(100% - 29px);
  width: calc(100% + 20px);
  color: #fff;
  border-radius: 2px;
  transform: skew(-25deg);
}

.specialButton:after {
  background: #fff;
  transition: left 0.8s cubic-bezier(0.86, 0, 0.07, 1) 0.2s;
  z-index: 0;
  opacity: 0.8;
}

.specialButton:before {
  background: rgb(219, 9, 44);
  z-index: 5;
  transition: left 1s cubic-bezier(0.86, 0, 0.07, 1);
}

.specialButton:hover {
  box-shadow: 0px 0px 0px 1px white;
  opacity: 1;
}

.specialButton:hover:after {
  left: calc(0% - 10px);
  transition: left 0.8s cubic-bezier(0.86, 0, 0.07, 1);
}

.specialButton:hover:before {
  left: calc(0% - 10px);
  transition: left 1s cubic-bezier(0.86, 0, 0.07, 1);
}

.score {
  transition: all 5s;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: nasa;
  font-size: 70px;
  text-shadow: 2px 2px 1px rgb(240, 33, 33);
}
.img-hor-vert {
  -moz-transform: scaleX(-1);
  -o-transform: scaleX(-1);
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
  filter: FlipH;
  -ms-filter: "FlipH";
}

.error-div,
.errorDivLobby,
.attackError {
  color: white;
  padding: 5px;
  width: 100%;
  text-align: center;
  margin: auto;
  font-family: nasa;
}

.attackError {
  padding: 0px;
}

.errorDivLobby {
  position: absolute;
  top: 2px;
}

.target {
  border: 2px solid #fff;
  border-radius: 500px;
  position: absolute;
  width: 18px;
  height: 18px;
  text-align: center;
  font-size: 16px !important;
  /* padding:1px; */
  z-index: 2;
  /* left:50%; */
  /* top:50%; */
  /* transform:translate(-50%,-50%); */
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}
.target .red-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  background: rgb(240, 33, 33);
  background-color: rgb(240, 33, 33);
  border-radius: 5px;
}
.progressDiv {
  height: 8px;
  background: rgb(228, 39, 39);
  z-index: 0;
  transition: all 1s;
  position: absolute;
  top: 0px;
}

#lobbyContainer {
  width: 100%;
  display: grid;
  grid-template-columns: 50% 50%;
  grid-template-rows: auto;
  margin-top: 7.5%;
  -webkit-animation: fadein 60.5s;
}

#gameroomsContainer,
#userStatsContainer {
  color: white;
  align-self: center;
  justify-self: center;
  padding: 50px;
  min-width: 400px;
  margin: auto;
  height: 400px;
  background: rgba(0, 0, 0, 0.904);
  border-radius: 5px;
}

#gameroomsContainer {
  grid-column: 1;
  grid-row: 1;
  overflow: auto;
  box-shadow: 0px 0px 1080px 50px rgb(228, 39, 39);
  border: 10px solid rgb(228, 39, 39);
  transition: box-shadow 1s, transform 2s;
}

#userStatsContainer {
  grid-column: 2;
  grid-row: 1;
  box-shadow: 0px 0px 1080px 50px rgb(34, 241, 248);
  border: 10px solid rgb(34, 241, 248);
  transition: box-shadow 1s, border 1s, transform 2s;
}

#gameroomsContainer:hover {
  box-shadow: 0px 0px 1080px 50px rgb(34, 241, 248);
  border: 10px solid rgb(34, 241, 248);
  transition: box-shadow 1s, border 1s, transform 2s;
}

#gameroomsContainer:hover + .battlefields {
  color: rgb(34, 241, 248);
  transition: color 1s, transform 2s;
}

#userStatsContainer:hover {
  box-shadow: 0px 0px 1080px 50px rgb(228, 39, 39);
  border: 10px solid rgb(228, 39, 39);
  transition: box-shadow 1s, border 1s, transform 2s;
}

#userStatsContainer:hover + .commander {
  color: rgb(228, 39, 39);
  transition: color 1s, transform 2s;
}

.gameroomDisplay {
  font-family: nasa;
  padding: 10px;
  padding-bottom: 60px;
  width: 100%;
  margin: auto;
}

.gameroomDisplay .maxUser,
.gameroomDisplay .gLevel,
.gameroomDisplay .gHp,
.gameroomDisplay .errorJoin {
  display: inline;
  margin-right: 10px;
  padding-top: 5px;
}

.gameroomDisplay .errorJoin {
  color: rgb(248, 58, 0);
}

.gameroomDisplay h2 {
  font-family: library;
  font-size: 50px;
  color: rgb(248, 58, 0);
}

.userStatsDisplay h2 {
  color: rgb(34, 241, 248);
  font-family: library;
  font-size: 50px;
}

.gameroomDisplay h2:hover {
  color: rgb(34, 241, 248);
  cursor: pointer;
}

.userStatsDisplay {
  font-family: nasa;
  position: relative;
}

.userStatsDisplay .mp {
  margin-top: 25px;
}

.userStatsDisplay .uHp,
.userStatsDisplay .mp {
  font-size: 80px;
  color: rgb(34, 241, 248);
}
.userStatsDisplay .uHp {
  display: inline;
}

.userStatsDisplay .win,
.userStatsDisplay .loss {
  display: inline-block;
  font-size: 80px;
  margin-top: 25px;
  color: rgb(34, 241, 248);
}

.userStatsDisplay .win {
  /* margin-left:5%; */
  margin-right: 5%;
}

.userStatsDisplay .wordAfter {
  font-size: 30px;
  color: white;
}

.userStatsDisplay .welcome_text {
  text-align: right;
  font-size: 20px;
}

.userStatsDisplay .type {
  color: rgb(34, 241, 248);
  position: absolute;
  top: 90px;
  right: 0px;
  font-size: 15px;
}

#userStatsContainer h2 {
  font-family: library;
}

#gameroomsContainer::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.238);
}

#gameroomsContainer::-webkit-scrollbar {
  width: 10px;
  background: rgba(0, 0, 0, 0.238);
}

#gameroomsContainer::-webkit-scrollbar-thumb {
  background-color: rgb(248, 58, 0);
}

header {
  position: relative;
}

.battlefields {
  color: rgb(248, 58, 0);
  position: absolute;
  top: 60px;
  left: 273px;
  font-size: 50px;
  font-family: library;
  -webkit-animation: fadein 10.5s;
  transition: color 1s, transform 2s;
}

.commander {
  color: rgb(34, 241, 248);
  position: absolute;
  top: 60px;
  right: 285px;
  font-size: 50px;
  font-family: library;
  -webkit-animation: fadein 10.5s;
  transition: color 1s, transform 2s;
}

.square {
  position: absolute;
  top: 675px;
  left: 333px;
  font-size: 50px;
  text-decoration: none;
  font-family: library;
  -webkit-animation: fadein 49.5s;
  z-index: 3;
}

.square:link {
  color: white;
  transition: color 1s, transform 2s;
}

.square:visited {
  color: white;
  transition: color 1s, transform 2s;
}

.square:hover {
  color: white;
  transition: color 1s, transform 2s;
}

.square:active {
  color: white;
  transition: color 1s, transform 2s;
}

.gameResult {
  color: white;
  width: 40%;
  text-align: right;
  margin-left: 730px;
  font-family: nasa;
  font-size: 70px;
  /* -webkit-animation: fadein 5.5s; */
}

.bossHpDisplay {
  background: rgb(248, 58, 0);
  height: 30px;
  border-radius: 5px;
  opacity: 0.7;
  transition: width 1s, opacity 1s, transform 2s;
}

.bossHpDisplay:hover {
  opacity: 1;
  transition: opacity 1s, transform 2s;
}

#userGameInfoContainer {
  position: absolute;
  bottom: 130px;
  /* background:black; */
  opacity: 0.9;
  border: 10px solid white;
  left: 60px;
  color: white;
  /* width: 350px; */
  background: black;
  /* height: 75px; */
  border-radius: 5px;
  font-family: nasa;
  box-shadow: 0px 0px 300px 10px rgb(34, 241, 248);
  transition: opacity 1s, box-shadow 1s, transform 2s;
}

#userGameInfoContainer:hover {
  opacity: 1;
  box-shadow: 0px 0px 500px 50px rgb(34, 241, 248);
  transition: opacity 1s, box-shadow 1s, transform 2s;
}

.userGameInfoDisplay {
  padding: 30px;
  padding-bottom: 15px;
  transition: height 2s, transform 2s;
}

#userGameInfoContainer .userGameInfoDisplay h2,
#userGameInfoContainer .userGameInfoDisplay mpG,
#userGameInfoContainer .userGameInfoDisplay hpG {
  font-size: 18px;
}

#userGameInfoContainer .userGameInfoDisplay h2 {
  text-align: center;
  padding: 10px;
  margin-bottom: 15px;
}

#userGameInfoContainer .userGameInfoDisplay .numbers {
  font-size: 28px;
  color: rgb(34, 241, 248);
}

#userGameInfoContainer button {
  margin: 10px;
  font-family: nasa;
  margin-bottom: 25px;
  color: white;
  cursor: pointer;
}

.attButton {
  display: flex;
  flex-flow: row nowrap;
  height: 100%;
}

.airStrike,
.rapidFire,
.missileLaunch {
  padding-top: 9px;
  padding-bottom: 9px;
  padding-left: 12px;
  padding-right: 12px;
  border-radius: 5px;
  border-width: 0px;
  width: 40%;
  height: 100%;
  border: 1px solid white;
  align-self: center;
}

.airStrike {
  background: red;
}

.rapidFire {
  background: royalblue;
}

.missileLaunch {
  background: purple;
}

.airStrike:hover,
.rapidFire:hover,
.missileLaunch:hover {
  background: black;
  color: white;
}

.attackCooldown {
  width: 100%;
  margin-top: 15%;
  border-radius: 20%;
  height: 10px;
  background: rgb(248, 58, 0);
  padding: 2px;
  transition: width 0.5s, transform 2s;
}

.buttonLL {
  display: flex;
  /* flex-flow: row nowrap; */
  height: 100%;
  width: 100%;
  padding: 2px;
  margin-left: 5%;
  margin-bottom: 20px;
}

.buttonLL a {
  width: 60%;
  height: 100%;
  padding: 5px;
  font-size: 20px;
  text-decoration: none;
  color: white;
  align-self: center;
  justify-self: start;
  transition: color 0.5s, transform 2s;
}

.buttonLL a:visited {
  color: white;
  transition: color 1s, transform 2s;
}

.buttonLL a:hover,
.buttonCB a:hover {
  color: rgb(248, 58, 0);
  transition: color 0.5s, transform 2s;
}

.buttonLL a:active,
.buttonCB a:active {
  color: rgb(248, 58, 0);
  transition: color 0.5s, transform 2s;
}

.credits {
  text-align: center;
  font-size: 40px;
  color: white;
}

.credits h3 {
  padding: 20px;
  font-family: nasa;
}

.buttonCB a {
  color: white;
  font-family: library;
  font-size: 45px;
  text-decoration: none;
  transition: color 0.5s, transform 2s;
  -webkit-animation: fadein 2s;
}

.allyInfos {
  color: white;
  font-size: 12px;
  text-align: center;
  font-family: nasa;
}

.game-explanation {
  transition: all 3s;
  opacity: 0;
  pointer-events: none;
  width: 100%;
  height: 100vh;
  position: fixed;
  color: #fff;
  top: 0;
  background: rgba(0, 0, 0, 0.8);
}

.game-explanation-container {
  transition: all 2s;
  position: absolute;
  top: 150%;
  left: -50%;
  transform: translate(-50%, -50%);
  max-width: 850px;
  font-family: nasa;
  cursor: pointer;
}

.game-explanation-container .claim {
  font-size: 25px;
  line-height: 32px;
  text-align: center;
  margin-top: -20px;
}

.game-explanation-container img {
  width: 100%;
  max-width: 550px;
  display: block;
  margin: auto;
}

.moonObject.endgame {
  box-shadow: 0px 0px 100px 100px #000;
  background: rgba(0, 0, 0, 0);
}
.moonObject.endgame .score div {
  transition: all 0.5s;
  margin-left: -300%;
  opacity: 0;
}
.scoreLog {
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s;
  width: 70%;
  height: 90%;
  margin-left: 15%;
  margin-top: 5%;
  overflow: hidden;
}
.scoreLogTitle {
  font-size: 40px;
  text-align: center;
  font-family: nasa;
  margin-bottom: 20px;
}
.scoreLogCountDown {
  font-size: 30px;
  text-align: center;
  font-family: nasa;
  color: white;
  margin-bottom: 40px;
  height: 35.5px;
}
.scoreLogTable {
  margin-top: 20px;
  width: calc(100%);
  height: calc(100% - 275px);
  overflow: scroll;
  border-collapse: collapse;
  border-spacing: 0;
}

.scoreLogRow {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 30px;
  font-family: nasa;
  color: white;
}
.scoreLogRowTemplate {
  display: none;
}

.scoreRowPosition {
  width: 20%;
  text-align: center;
}

.scoreRowName {
  width: 60%;
  text-align: center;
}

.scoreLogRowScore {
  width: 20%;
  text-align: center;
}

/* have all element scrollbar be transparent */
::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}
.pop-up-content {
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 450px;
  font-family: nasa;
  max-width: 550px;
  width: 100%;
}
.pop-up-content h2 {
  margin-bottom: 30px;
}
.pop-up-content ul {
  width: calc(100% - 70px);
}
.pop-up-content li {
  margin-bottom: 5px;
  width: 100%;
}
.pop-up-content li:not(ul ul li) {
  margin-bottom: 12px;
}
.pop-up-content a {
  color: #fff !important;
}
.pop-up {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(5px);
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pop-up .btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 50px;
}
.pop-up .btn-group .btn {
  margin: 0 5px;
  border-radius: 5px !important;
  border-color: #00000000;
  font-family: nasa;
}
.pop-up .btn-group .btn-primary {
  background: #000000;
  color: #287b2c;
}
.pop-up .btn-group .btn.active:hover {
  border-color: #fff;
  filter: brightness(2);
}
.btn {
  display: inline-block;
  font-weight: 400;
  color: #ffffff;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  background-color: #1e1e1e;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  transition: all 0.3s;
}
.btn:hover,
.btn.active {
  background-color: #287b2c;
  border-color: #ffffff;
}
.btn-red {
  background-color: #00000000;
  color: #e51616;
  /* border-color: #c30707; */
  border-radius: 500px;
}
.btn-red:hover,
.btn-red.active {
  background-color: #000000;
  /* border-color: #e51616; */
  color: #e51616;
}

@media screen and (max-width: 1600px) {
  #bodyContainer {
    background-image: url("../images/bg.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
  }
}
