@import url("https://fonts.googleapis.com/css?family=Press+Start+2P");

body{
    margin: 0;
    font-family: "Press Start 2P", cursive;
    font-size: 2em;
    color: white;
}
button{
    outline: none;
    cursor: pointer;
    border: none;
    box-shadow: 3px 5px 0px 0px rgba(0,0,0,0.75);
}
#counter{
    position: absolute;
    top: 20px;
    right: 20px;
    color: black;
    font-weight: bold;
}

/* --- END SCREEN STYLES --- */
#end{
    position: absolute;
    min-width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    visibility: hidden;
    background: rgba(0,0,0,0.8); 
    z-index: 1000; 
}
#end div {
    display: flex;
    flex-direction: column;
    align-items: center;
}
#end h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}
#final-score {
    margin-bottom: 30px;
    font-size: 1.5rem;
    color: white;
}
#end button{
    background-color: red;
    padding: 20px 50px 20px 50px;
    font-family: inherit;
    font-size: inherit;
}
/* ----------------------------------------------- */

#controlls{
    position: absolute;
    min-width: 100%;
    min-height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
#controlls div {
    display: grid;
    grid-template-columns: 50px 50px 50px;
    grid-template-rows: auto auto;
    grid-column-gap: 10px;
    grid-row-gap: 10px;
    margin-bottom: 20px;
  }
  #controlls button {
    width: 100%;
    background-color: white;
    border: 1px solid lightgray;
  }
  #controlls button:first-of-type {
    grid-column: 1/-1;
  }

/* --- START SCREEN STYLES (UPDATED FOR HIGH SCORE) --- */
  #start-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  font-size: 2rem;
  z-index: 9999;
}

/* --- LOGO STYLES (NEW) --- */

/* 1. Container para sa dalawang logo */
#logo-container {
    display: flex;
    justify-content: space-between; /* Itulak sa magkabilang gilid */
    align-items: center;
    width: 100%; 
    max-width: 300px; /* Limitahan ang lapad */
    margin: -10px auto 15px auto; /* I-center at bigyan ng space */
}

/* 2. Pagsasa-ayos ng laki at appearance para sa mga logo images */
#left-logo, #right-logo {
    width: 50px; /* Saktong laki: 50 pixels */
    height: 50px; /* Saktong laki: 50 pixels */
    object-fit: cover; 
    border-radius: 5px; 
    border: 2px solid #f7a32f; 
}
/* Tiyakin na may sapat na space ang title mula sa logo container */
#start-screen h1 {
    margin-top: 0;
    margin-bottom: 20px; 
}

/* ---------------------------------------------------- */

  #high-score {
    margin-bottom: 25px;
    font-size: 1.2rem; 
    color: #f7a32f; 
}
  #start-btn {
  margin-top: 20px;
  padding: 10px 25px;
  font-size: 1.2rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}


/* --- PAUSE SCREEN STYLES --- */
#pause-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

#pause-screen {
    position: absolute;
    min-width: 100%;
    min-height: 100%;
    background: rgba(0, 0, 0, 0.7); 
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden; 
    z-index: 9999; 
}

#pause-screen h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    color: white;
}

#pause-screen button {
    background-color: #2f7cf7; 
    padding: 20px 50px;
    font-family: inherit;
    font-size: inherit;
}
/* --------------------------------- */