@import url('https://fonts.googleapis.com/css2?family=Handjet&family=Syncopate:wght@700&family=Tilt+Neon&display=swap');
 

* {
    box-sizing: border-box;
}

body {
    font-family: 'Handjet', sans-serif;
    font-size: 24px;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh; /* viewport height */
    background-color: rgb(0, 0, 0);
    color: rgb(229, 231, 230);
}

button {
    font-family: 'Handjet', sans-serif;
    font-size: 24px;
}

h1 {
    width: 100%;
    text-align: center;
}

h2 {
    font-size: 32px;
    margin: 5px;
    padding: 5px;
}

img {
    border-radius: 25px;
    border: 5px solid grey;

}
.header {
    margin: 0;
    font-family: 'Syncopate', sans-serif;
    display: flex;
    flex: 2;
}

.play-area {
    flex: 13;
    display: flex;
    flex-direction: row;
    padding: 20px;
}

.special-border {
    border: 4px solid #000;
    box-shadow: 0 0 5px #DDD, 0 0 10px #DDD, 0 0 15px #0077CC, 0 0 25px #0077CC, 0 0 50px #0077CC, 0 0 75px #0077CC;
}

#maze {
    flex: 7; 
    display: grid;
    grid-template-rows: repeat(9, 1fr);
    grid-template-columns: repeat(16, 1fr);
    height: 41vw;
    border-radius: 15px;
    overflow: hidden;
}


#photos {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px
}

.photo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.photo-item img {
    max-width: 60%;
    height: auto;
}

.photo-header{
    display: flex;
    justify-content: center;
}

.photo-header h2 {
    text-align: center;
}

.photo-description {
    margin: 15px;
}

.footer {
    padding: 10px 20px;
    display: flex;
    flex: 1;
}

.fog {
    border-radius: 15px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    opacity: 0.8;
    background: rgba(0, 0, 0, 0.8);
    filter: blur(1px);
    transition: opacity 0.5s ease, filter 0.5s ease;
  }

.path {
    background-color: black;
}

.wall {
    background-image: url('./imgs/star1.png');
    background-size: cover;
    background-repeat: no-repeat;
    
}

.player {
    background-image: url(./imgs/ship.png);
    background-size: cover;
    background-repeat: no-repeat;
}
.enemy {
    background-image: url(./imgs/enemy_ship_1.png);
    background-size: cover;
    background-repeat: no-repeat;
}
.encounter {
    background-image: url(./imgs/unknown3.png);
    background-size: cover;
    background-repeat: no-repeat;
}
.creature {
    background-image: url(./imgs/unknown3.png);
    background-size: cover;
    background-repeat: no-repeat;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-title {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #2c2c2c;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.modal-content-container {
    display: flex;
    width: 100%;
    padding: 10px;
}

.modal-image {

    margin: 15px;
    max-height: 400px
}

.modal-description {
    background-color: #555;
    border-radius: 15px;
    padding: 15px;
    max-width: 340px;
    margin: 5px
}

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

.modal-extra img {
    max-width: 50px;
    border: 0;
    margin: 3px
}

.choices-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-option {
    display: flex;

    flex-direction: row;
    margin: 10px;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    background-color: #555;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-option:hover {
    background-color: #777;
}

.fuel-img-container {
    display: flex;
    flex-direction: row;
}

.battery-text {
    display: flex;
    justify-content: center;
    align-items: center;
}

.battery-text p {
    margin: 0px;
    display: flex;
    min-width: 80px;

    
}

.center {
    text-align: center;
}

.hidden {
    display: none;
}

.highlight {
    background-color: #5a9258;
}

@keyframes shake {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-5px, 5px); }
    50% { transform: translate(5px, -5px); }
    75% { transform: translate(-5px, -5px); }
    100% { transform: translate(5px, 5px); }
}

.shake-effect {
    animation: shake 0.1s; 
    animation-iteration-count: infinite; 
}

#soundToggleBtn {
    padding: 10px 20px;
    font-size: 20px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#soundToggleBtn.soundOn {
    background-color: #2e723171; 
    color: rgba(255, 255, 255, 0.575);
}

#soundToggleBtn.soundOff {
    background-color: #80231c4d; 
    color: rgba(255, 255, 255, 0.473);
}

#mobile-message {
    display: none;
    /* Additional styling here (color, background, etc.) */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000; /* Ensure it's on top */
    background-color: white;
    padding: 20px;
    border: 1px solid black;
    text-align: center;
  }
  

  @media screen and (max-width: 768px) {
    #mobile-message {
        color:#000;
      display: block; 
    }
  
    .modal, .modal-content, .header, .play-area, .maze, .footer {
      display: none;
    }
  }