@font-face {
  font-family: "game_of_thronesregular";
  src: url("assets/font/game_of_thrones-webfont.woff2") format("woff2"),
    url("assets/font/game_of_thrones-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap");

/* html {
  background: black;
} */

body {
  background-image: url(assets/background.jpg);
  background-repeat: repeat;
  background-position: bottom;
  font-family: "Poppins", sans-serif;
  color: white;
  /* height: 100vh; */
  /* overflow: hidden; */
  position: relative;
}

/* First page */

.started {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 80px;
  height: 80vh;
}

.started h1 {
  font-family: "game_of_thronesregular";
  font-size: 50px;
  font-weight: 400;
  margin-bottom: 30px;
}

.started .intro {
  display: flex;
  align-items: center;
  margin-bottom: 80px;
}

.started .intro hr {
  height: 0;
  width: 120px;
}

.started .intro h2 {
  font-size: 16px;
  font-weight: 400;
  margin: 0 15px;
}

.started form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 600px;
}

.started form .house-name {
  background: rgba(0, 0, 0, 0);
  border: 0;
  border-bottom: solid 2px white;
  text-align: center;
  width: 400px;
  font-family: "Poppins", sans-serif !important;
  font-size: 14px;
  color: white !important;
  padding-bottom: 15px;
  margin-bottom: 80px;
}

.started form .house-name::placeholder {
  color: white;
}

textarea:focus,
input:focus {
  outline: none;
}

.started form .center-form {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.started form .range label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.started form .range label p {
  margin: 0;
  font-size: 14px;
}

.started form .range label input {
  margin-top: 20px;
  margin-bottom: 55px;
}

input[type="range"] {
  -webkit-appearance: none;
  background-color: transparent;
}

input[type="range"]::-webkit-slider-runnable-track {
  width: 300px;
  height: 5px;
  background: lightgrey;
  border: 2px solid lightgrey;
  border-radius: 50px;
}

input[type="range"]::-moz-range-track {
  height: 2px;
  background: lightgrey;
  border: 2px solid lightgrey;
  border-radius: 50px;
}

input[type="range"]::-webkit-slider-thumb
/* ,
input[type="range"]::-moz-range-thumb { */ {
  -webkit-appearance: none;
  border: none;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: white;
  margin-top: -7px;
}

input[type="range"]::-moz-range-thumb {
  -webkit-appearance: none;
  border: none;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: white;
  margin-top: -7px;
}

.started form .family {
  font-size: 14px;
  text-align: center;
  width: 200px;
}

.started form .family .family-name {
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.started form .family .family-name a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  margin-left: 10px;
}

.started form .family .members {
  margin: 0;
}

.started form .family .members-grid {
  display: grid;
  grid-template-columns: repeat(2, auto);
  grid-template-rows: repeat(4, auto);
}

.started form .family input {
  background: rgba(0, 0, 0, 0);
  border: 0;
  border-bottom: solid 2px white;
  text-align: center;
  width: 100%;
  font-family: "Poppins", sans-serif !important;
  font-size: 14px;
  color: white !important;
  padding-bottom: 8px;
  margin-top: 20px;
}

.started form .family input::placeholder {
  color: white;
}

.started form .family button {
  background: rgba(0, 0, 0, 0);
  border: solid 2px white;
  text-align: center;
  font-family: "Poppins", sans-serif !important;
  font-size: 14px;
  color: white !important;
  margin-top: 20px;
  cursor: pointer;
  transition: ease-in-out 0.2s;
}

.started form .family button:hover {
  background: white;
  color: black !important;
}

.started .pace {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.started .pace label {
  display: flex;
  align-items: center;
}

.started .pace label input {
  margin: 0 10px;
}

.started .button {
  color: white;
  font-family: "game_of_thronesregular";
  margin-top: 75px;
  border: solid 2px white;
  padding: 20px 60px 17px 60px;
  text-decoration: none;
  margin-bottom: 80px;
  transition: ease-in-out 0.2s;
}

.started .button:hover {
  background: white !important;
  color: black !important;
}

/* Second page */

.game {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.game hr {
  width: 400px;
  margin-bottom: 40px;
}

.game h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  margin-top: 30px;
}

.game .hr {
  margin-top: 40px;
}

.game .money-soldiers {
  display: flex;
  justify-content: space-between;
  width: 45%;
}

.game .money-soldiers .money {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.game .money-soldiers .money p {
  font-size: 14px;
  margin: 0;
  margin-bottom: 12px;
  text-align: center;
}

.game .money-soldiers .money button {
  color: white;
  font-family: "game_of_thronesregular";
  font-size: 14px;
  border: solid 2px white;
  padding: 16px 15px 12px 15px;
  text-decoration: none;
  background: none;
  cursor: pointer;
  transition: ease-in-out 0.2s;
}

.game .money-soldiers .money button:hover {
  background: white;
  color: black !important;
}

.game .money-soldiers .soldiers {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game .money-soldiers .soldiers p {
  font-size: 14px;
  text-align: center;
  margin: 0;
  margin-top: 3px;
  margin-bottom: 5px;
}

.game .money-soldiers .soldiers ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.game .money-soldiers .soldiers li {
  display: flex;
  justify-content: center;
  align-items: center;
  border: solid 2px white;
  padding: 0;
  transition: ease-in-out 0.2s;
  width: 100px;
  cursor: pointer;
}

.game .money-soldiers .soldiers li:hover {
  background: white;
}

.game .money-soldiers .soldiers li:hover a {
  color: black;
}

.game .money-soldiers .soldiers a {
  font-size: 12px;
  padding: 6px;
  color: white;
  text-decoration: none;
  transition: ease-in-out 0.2s;
  cursor: pointer;
}

.game .money-soldiers .soldiers a.hire10 {
  padding: 6px 16px;
}

.game .money-soldiers .soldiers a.hire100 {
  padding: 6px 8px;
}

.game .money-soldiers .soldiers a.hireMax {
  padding: 6px 18px;
}

.places {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 45%;
}

.places .title {
  display: flex;
  width: 100%;
  margin-top: 45px;
}

.places h6 {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  width: 100%;
  margin-bottom: 15px;
}

.places .house-place {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
  gap: 20px;
  margin-bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, auto);
  grid-template-rows: repeat(5, 1fr);
  list-style-type: none;
  padding: 0;
}

.places .house-place li {
  font-size: 14px;
}

.places .house-place p {
  font-size: 14px;
  text-align: center;
  margin: 0;
}

.infos {
  display: flex;
  justify-content: space-between;
  width: 45%;
}

.infos .events {
  width: 60%;
}

.infos .events-div {
  width: 100%;
  height: 200px;
  overflow-y: scroll;
}

::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  opacity: 0;
}

::-webkit-scrollbar-thumb {
  background: white;
  border-radius: 50px;
}

.infos h5 {
  font-size: 14px;
  font-weight: 700;
  margin: 8px 0;
}

.infos .events p {
  font-size: 14px;
  margin-right: 8px;
  line-height: 20px;
  padding-bottom: 10px;
  margin: 10px 8px 0 0;
}

.infos .others {
  width: 30%;
}

.infos .others .family .members {
  overflow-y: scroll;
  height: 200px;
}

.infos .others .family .members .member {
  border-bottom: solid 1px white;
  padding: 5px;
  margin-right: 8px;
}

.infos .family .member p {
  margin: 3px 0;
  font-size: 14px;
}

.enemies-allies {
  display: flex;
  justify-content: space-between;
  width: 45%;
  margin-top: 30px;
  margin-bottom: 30px;
}

.enemies-allies h5 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 0;
}

.enemies-allies .enemies {
  display: flex;
  flex-direction: column;
  width: 48%;
  min-height: 130px;
}

.enemies-allies .enemies ul {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, auto);
  grid-row-gap: 5px;
}

.enemies-allies .enemies li {
  list-style-type: none;
  cursor: pointer;
  transition: ease-in-out 0.2s;
}

.enemies-allies .enemies li:hover {
  background: white;
  color: black;
}

.enemies-allies .allies {
  display: flex;
  flex-direction: column;
  width: 48%;
}

.enemies-allies .allies ul {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, auto);
  grid-row-gap: 5px;
}

.enemies-allies .allies li {
  list-style-type: none;
}

/* Footer */

footer {
  display: flex;
  justify-content: center;
  font-size: 14px;
  position: absolute;
  bottom: 10px;
  text-align: center;
  width: 100%;
}

footer a {
  color: white;
}

footer p {
  margin: 0;
}

/* Modal */

.modal {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  top: 35%;
  left: 0;
  right: 0;
  overflow: auto;
  border-bottom: solid 1px black;
  padding: 1em;
  background: #1a1a1a;
  height: 200px;
}

.modal p {
  text-align: center;
  margin-top: 0;
}

.modal hr {
  width: 400px;
}

.modal .button-group {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.modal .button-group button {
  background: rgba(0, 0, 0, 0);
  border: solid 2px white;
  text-align: center;
  font-family: "Poppins", sans-serif !important;
  font-size: 14px;
  color: white !important;
  margin-top: 20px;
  cursor: pointer;
  transition: ease-in-out 0.2s;
}

.modal .button-group button:hover {
  background: white;
  color: black !important;
}

/* Old CSS */

.dead {
  text-decoration: line-through;
  color: #ccc;
  opacity: 0.8;
  display: none;
}

.log {
  font-size: 80%;
  border-bottom: solid 1px white;
}

/* Media queries */

@media screen and (max-width: 1450px) {
  h1,
  h2,
  p {
    text-align: center;
  }

  .mobile {
    display: none;
  }

  footer {
    margin-top: 300px;
  }

  .pc-only {
    display: flex !important;
    font-size: 32px;
    font-weight: 700;
    margin-top: 250px;
  }
}

.pc-only {
  display: none;
}
