html {
    min-width: fit-content;
    min-height: fit-content;
    width: 100%;
    height: 100%;
    overflow-y: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
  }

body {
    margin: 0;
    width: 100%;
    background-image: url(img/bg1.jpg);
    background-repeat: no-repeat;
    background-size:100% 100%;
    align-items: flex-start;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
      Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

:root {
  --btn-width: 140px;
  --btn-height: 15px;
}
  
  .wars {
    margin: auto;
    width: fit-content;
    display: flex;
    flex-direction: row;
  }
  
  .fight-menu {
    margin: auto;
    width: 400px;
  }
  
  .war {
    height: fit-content;
    width: 150px;
    margin: 10px;
    text-align: center;
  }
  
  .progressbar {
    display: block;
    background: #cc1035;
    height: 20px;
  }
  
  .progress {
    width: 20%;
    background: #67ce00;
  }
  
  .war-img {
    display: block;
    width: auto;
    max-width: 150px;
    height: 155px;
    margin: auto;
  }
  
  .stats {
    background: rgb(189, 189, 189);
    font-size: 13px;
    padding: 3px;
    margin-top: 5px;
    margin-bottom: 5px;
    opacity: 85%;
  }
  
  .button {
    height: var(--btn-height);
    width: var(--btn-width);
    border: none;
    padding: 5px 5px 5px 5px;
    color: white;
    font-size: 13px;
    margin-bottom: 5px;
    opacity: 95%;
    display: flex;
    justify-content: center;
  }
  
  .historytab {
    height: 120px;
    width: 400px;
    padding: 5px;
    background-color: #ebebeb;
    display: flex;
    flex-direction: column-reverse;
    overflow-y: scroll;
    opacity: 95%;
    position: relative;
    z-index: -1;
    margin-top: 20px;
  }
  
  .historytext {
    padding: 4px;
    border-top: black solid 1px;
    margin-left: 8px;
    font-size: 14px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
  }
  
  .startWindow {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .name-prompt {
    width: 250px;
    height: 30px;
    font-size: 24px;
    text-align: center;
    background-color: rgb(209, 209, 209);
    border: none;
    opacity: 80%;
  }
  
  .name-prompt:focus {
    outline: none;
  }
  
  .confirm {
    font-family: "Segoe UI";
    text-align: center;
    width: 150px;
    background-color: #aaaaaa;
    transition: 0.2s ease;
    margin-top: 7px;
  }
  
  .confirm:hover {
    background-color: #777777;
    transition: 0.2s ease;
  }
  
  .hidden {
    visibility: hidden;
  }
  
  .Abshidden {
    display: none !important;
  }
  
  .CDButton {
    z-index: 2;
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 66%;
  }

  .island_choose {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
      Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    font-size: 30px;
    font-weight: 500;
    color: white;
  }

  .islands {
      margin-top: 150px;
      width: 100%;
      display: flex;
      justify-content: space-between;
      color: black;
  }

  .island {
      display: flex;
      flex-direction: column;
      align-items: center;
      font-size: 16px;
      font-weight:500;
      padding-top: 20px;
      transition: .2s ease;
  }

  .isl_img {
      width: 300px;
      height: 200px;
      margin-bottom: 10px;
  }

  .island:hover {
    padding-top: 10px;
    transition: .2s ease;
  }

  .actions {
    display: grid;
    grid-template-columns: 2fr 2fr;
  }

  .action-option {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    flex-wrap: wrap;
    flex-direction: row
  }

  .action-option-active {
    width: calc(var(--btn-width)*2.2);
    height: calc(var(--btn-height)*5.4);
    overflow: hidden;
  }

  .button:hover {
    filter: brightness(1.1);
    transition: 0.2s;
  }

  .name {
    height: 50px;
  }

  .left-attack-anim {
    animation: left-attack 0.5s;
  }

  @keyframes left-attack {
    50% {
      transform: translateX(100px)
    }
  }

  .right-attack-anim {
    animation: right-attack 0.5s;
  }

  @keyframes right-attack {
    50% {
      transform: translateX(-100px)
    }
  }

.main-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-but {
  width: 200px;
  height: 30px;
  font-size: 25px;
}

.hello {
  padding-bottom: 80px;
  color: rgb(252, 252, 252);
}

.help-menu {
  display: flex;
  flex-direction: column;
  align-items: center;

}

.help-desc {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.help-button-desc {
  display: grid;
  font-size: 13px;
  grid-template-areas:
    "A A A A A A B B B B B B"
    "C C C C C C C C C C C C"
    "D D D D E E E E F F F F"
    "G G G G G G H H H H H H";
    column-gap: 15px;
    row-gap: 25px;
}

.prompt-window {
  display: flex;
  align-items: center;
  flex-direction: column;;
  justify-content: space-between;
  text-align: center;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  margin: auto;
  width: 350px;
  height: 200px;
  background-color: #bababa;
  z-index: 6;
}

.options::selection {
    background: transparent;
 }