/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');

body {
    font-size: 14px;
    margin: 0;
    overflow: hidden;
    background-image: linear-gradient(90deg, #000, #222);
    color: white;
    font-family: Arial, sans-serif;
    background-image: url(images/galaxy.jpeg);
    background-size: 100%;
    background-position: top;
    font-family: "Chakra Petch", sans-serif;
  }
  .intro-container {
   
  }
  .intro-content h1 {
    font-size: 3.5vw;
  }
  .intro-content {
    max-width: 450px;
  }
#boss {
    background-image: url(images/boss01.svg);
    background-size: 100%;
    background-repeat: none;
}
#boss1 {
    background-image: url(images/boss01.svg);
    background-size: 100%;
    background-repeat: none;
}
#boss2 {
    background-image: url(images/boss02.svg);
    background-size: 100%;
    background-repeat: none;
}
#boss2 {
    background-image: url(images/boss03.svg);
    background-size: 100%;
    background-repeat: none;
}
#boss3 {
    background-image: url(images/boss04.svg);
    background-size: 100%;
    background-repeat: none;
}
#boss4 {
    background-image: url(images/boss05.svg);
    background-size: 100%;
    background-repeat: none;
}
#boss5 {
    background-image: url(images/boss06.svg);
    background-size: 100%;
    background-repeat: none;
}
#boss6 {
    background-image: url(images/boss07.svg);
    background-size: 100%;
    background-repeat: none;
}
#boss7 {
    background-image: url(images/boss08.svg);
    background-size: 100%;
    background-repeat: none;
}
#boss8 {
    background-image: url(images/boss09.svg);
    background-size: 100%;
    background-repeat: none;
}
#boss, #boss1, #boss2, #boss3, #boss4, #boss5, #boss6, #boss7, #boss8 {
    position: absolute;
    background-size: 100%;
    background-repeat: no-repeat;
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
  }
  
  .boss-bullet {
    z-index: 5;
  }
  
  .boss-health {
    z-index: 10;
  }

.boss-overlay, .boss-defeated {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    color: #fff;
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    display: none;
  }
  .boss-bullet {
    width: 6px;
    height: 12px;
    background: red;
    position: absolute;
  }
  .alien {
    transform-origin: center;
    animation: alienTilt 3s ease-in-out infinite;
  }
  
  @keyframes alienTilt {
    0%   { transform: rotate(3deg); margin-left: -2px;}
    50%  { transform: rotate(-3deg); margin-left: 2px;} /* or rotate(357deg) */
    100% { transform: rotate(3deg); margin-left: -2px; }
  }
  .alien:nth-child(odd) {
    animation-delay: 1.5s;
  }
  .alien:nth-child(even) {
    animation-delay: 0.5s;
  }

  #game-area {
    position: relative;
    width: 100vw;
    height: 94vh;
    background-image: linear-gradient(#000, #0001);
    overflow: hidden;
}

#player {
    position: absolute;
    width: 15px;
    height: 20px;
    background-color: orange;
    bottom: 10px;
    left: 275px;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    border-bottom: solid 2px white;
}

.alien {
    position: absolute;
    width: 30px;
    height: 10px;
    background-color: red;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    border-top: 2px solid orange;
}
.alien-lives {
    position: relative;
    width: 10px;
    height: 15px;
    background-color: orange;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    border-bottom: solid 2px white;
}
.bullet {
    position: absolute;
    width: 5px;
    height: 15px;
    background-color: yellow;
    border-radius: 5px;
    border-top: 3px solid red;
}
#game-info {
    margin-bottom: 0px;
    font-family: Arial, sans-serif;
    color: white;
    text-align: center;
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background-color: #111;

}
#landing {
    z-index: 2;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: #000;
    display: none;
}
.show {
    display: flex !important;
}
.padding-sm {
    padding: 20px;
}
.start-btn {
    padding: 10px;
    border-radius: 10px;
    border: solid thin purple;
    color: #fff !important;
    background: #0003;
    cursor: pointer;
}
.me-1 {
    margin-right: 2px;
}
.lives-left {
    display: flex;
    flex-direction: row;
    align-items: center;
}
.intro-container {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    justify-content: center;
    align-items: center;
    background: #0009;
}
.intro-container button {
    padding: 10px;
    border-radius: 10px;
    border: solid thin white;
    color: purple;
    background: #0003;
    cursor: pointer;
}
.bold {
    font-weight: bold;
}
#fade-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0;
    z-index: 10;
    pointer-events: none;
}
.player-names-section {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.player-names-section .start-btn {
    min-width: 100%;
    margin-top: 10px;
}
.player-names-section input {
    border-radius: 10px;
    padding: 10px;
    border: none;
    width: 92%;
}
.player-names-section select {
    border-radius: 10px;
    padding: 10px;
    border: none;
    margin: 10px 0 0 0;
}
.highlight-text {
    font-weight: bold;
    font-style: italic;
}
.game-intro {
    justify-content: center;
    display: flex;
    margin: 0 auto;
    max-width: 30%;
    flex-direction: column;
    text-align: center;
}