/* @Author: Nirajan Shrestha - 000934040
   July 27, 2024
*/
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* Internet Explorer/Edge */
    user-select: none;         /* Chrome, Opera, and Edge */
}

/* Fonts */
.orbitron {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.space-mono-regular {
  font-family: "Space Mono", monospace;
  font-weight: 400;
  font-style: normal;
}

.space-mono-bold {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-style: normal;
}

/* FOnts sizes for smaller screen */
h1{
  font-size: 2em !important;
}

h3{
  font-size: 1rem;
}

p, li, ul{
  font-size: 0.875rem;
}

/* a{
  font-size: 0.6rem;
} */

/* Start screen of the game */
.startScreen{
  position: relative;
  height: 100vh;
  width: 100vw;
  background-color: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.startButton, .playButton{
  background: linear-gradient(135deg, #0066ff 0%, #00ddff 100%);
  color: white;
  font-family: 'Space Mono', monospace;
  font-weight: bold;
  border: none;
  border-radius: 30px;
  padding: 12px 40px;
  font-size: 18px;
  margin: 20px auto;
  display: block;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(0, 150, 255, 0.4);
  letter-spacing: 1px;
}

.startButton:hover{
  transform: scale(1.05);
  box-shadow: 0 7px 20px rgba(0, 200, 255, 0.6);
}

.playButton:hover{
  transform: scale(1.05);
 }


/* game-background elements and animations */
.full-screen {
    background-color: #000; /* Dark background color */
    height: 100vh; /* Full height */
    width: 100vw; /* Full width */
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    display: none;
  }

  .star{
    position: absolute;
    border-radius: 50%;
    
    
  }



/* Space ship style */

#spaceShip{
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
   /*  animation: rotate 10s linear infinite; /* Rotation animation */
}

.gElem1{
  z-index: 100;
}


/* asteroid and fuel */
/* .asteroid{
  position: absolute;
  top: 0;
} */

.fuel{
  position: absolute;
  top: 0;
}

/* mobile-controls for smaller screen */
.controls{
  position: absolute;
  top: 77vh;
  z-index: 300;
}

/* Game over sreen */
.gameOver{
  display: none;
  position: fixed;
  top: 25%;
  padding: 50px;
  width: 100vw;
}


/* Styles for info screen */
.gameInfo{
  position: relative;
  width: 100vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: black;
  display: none;
}

.infoScreen{
  width: 80%;
  height: auto;
  background-color: #D3D3D3;
}

/* Distance travelled */
#travel{
  display: none;
  color: white;
  position: fixed;
  top: 10px;
  right: 40px;
}
#antiMatter{
  display: none;
  color: white;
  position: fixed;
  top: 40px;
  right: 40px;
}

#shipSpeed{
  display: none;
  color: rgb(255, 0, 0);
  position: fixed;
  top: 70px;
  right: 40px;
}

.gameName{
  animation: floating 3s ease-in-out infinite;
}



.credit{
  position: absolute;
  top: 93vh;
  /* text spacing */
  letter-spacing: 0.1em;
  text-decoration: none;
}



/* ANimations */
@keyframes rotate {
  0% {
    transform: translateX(-50%) rotate(0deg);
  }
  100% {
    transform: translateX(-50%) rotate(360deg);
  }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 0.2; }
}

@keyframes floating {
  0%{
    transform: translateY(0);
  }
  50%{
    transform: translateY(-20px);
  }
  100%{
    transform: translateY(0);
  }
}

@keyframes scaleAnimation {
  0% {
      transform: scale(1);
  }
  50% {
      transform: scale(1.2);
  }
  100% {
      transform: scale(1);
  }
}



/* Media quries */
@media (min-width:769px){
  .controls{
    display: none !important;
  }
  h1{
    font-size: 5.5em !important;
  }
  h3{
    font-size: 1.75rem;
  }

  p,li,ul{
    font-size: 1.0rem;
  }

 */

  .gameInfo{
    height: 100vh;
  }

  .startButton, .playButton{
    font-size: 1.125rem;
  }

  .creditInfo{
    left: 45vw;
  }
}










/* New How to play screen  */

/* Base styles */
body {
  background-color: #0a0a1a;
  color: #ffffff;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

/* Game info container */
.gameInfo {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  margin-top: 40px;
  background: rgba(15, 15, 35, 0.8);
  border-radius: 15px;
  box-shadow: 0 0 40px rgba(100, 100, 255, 0.3);
  backdrop-filter: blur(5px);
}

/* Header styles */
.game-title {
  font-family: 'Orbitron', sans-serif;
  text-align: center;
  color: #00ddff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
  margin-top: 10px;
  letter-spacing: 2px;
  font-size: 28px;
}

/* Game elements container */
.game-elements {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
  margin: 20px 0;
  padding: 20px;
  background: rgba(20, 20, 50, 0.5);
  border-radius: 10px;
  border: 1px solid rgba(100, 100, 255, 0.3);
}

/* Individual game element box */
.game-element {
  flex: 1;
  min-width: 150px;
  background: rgba(30, 30, 60, 0.7);
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.game-element:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 150, 255, 0.4);
}

/* Element title */
.element-title {
  font-family: 'Space Mono', monospace;
  font-weight: bold;
  color: #00ddff;
  margin-bottom: 15px;
  font-size: 16px;
  letter-spacing: 1px;
}

/* SVG container */
/* .svg-container {
  background: radial-gradient(circle, rgba(30, 30, 60, 0.7) 0%, rgba(10, 10, 30, 0.9) 100%);
  border-radius: 50%;
  width: 100px;
  height: 100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
} */


/* Instructions section */
.game-instructions {
  background: rgba(20, 20, 50, 0.5);
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  border: 1px solid rgba(100, 100, 255, 0.3);
}

.instructions-title {
  font-family: 'Space Mono', monospace;
  font-weight: bold;
  color: #00ddff;
  margin-bottom: 10px;
}

.instructions-list {
  padding-left: 20px;
}

.instructions-list li {
  font-family: 'Space Mono', monospace;
  margin-bottom: 8px;
  line-height: 1.4;
}

.key-term {
  font-weight: bold;
  color: #00ddff;
}



.play-button:hover {
  transform: scale(1.05);
  box-shadow: 0 7px 20px rgba(0, 200, 255, 0.6);
}

.play-button:active {
  transform: scale(0.95);
}













