@font-face {
  font-family: 'Pixel2';
  src: url('/fonts/pixel2.ttf');
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Pixel2';
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}
#start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    flex-direction: column;
}

#title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 999;
}

#game-title {
    color: #fff;
    font-size: 4em;
    font-family: 'Pixel2', sans-serif;
    margin-bottom: 20px;
    text-transform: uppercase;
    z-index: 999;
}

#start-button {
    padding: 20px 40px;
    background-color: #000000;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Pixel2', sans-serif;
    font-size: 2em;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s;
    z-index: 999;
}

#start-button:hover {
    background-color: #322D31;
    color: #ffffff;
    z-index: 999;
}

#continue-button {
    padding: 20px 40px;
    background-color: #000000;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Pixel2', sans-serif;
    font-size: 2em;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s;
    z-index: 999;
    margin-top: 20px;
}

#continue-button:hover {
    background-color: #322D31;
    color: #ffffff;
    z-index: 999;
}


#loading-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    z-index: 998;
}

#game-container {
    width: 800px;
    height: 600px;
    position: relative;
    filter: brightness(100%); 
    overflow:hidden;
}



#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('shrinecurtains.webp') no-repeat center center;
    background-size: cover;
    opacity: 0.2;
    z-index: 1;
    
}
    
#gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 33%; 
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
    pointer-events: none; 
    z-index: 1;

}

#vignette-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none; 
    z-index: 1;
    opacity: 0.9;
}

@keyframes pulsate {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

#vignette-overlay.pulsate {
    animation: pulsate 2s infinite;
}

#health-bar, #sanity-bar {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 200px;
    height: 15px;
    background: #322D31;
    border-radius: 10px;
    overflow: hidden;
    z-index: 2;
}

#sanity-bar {
    top: 40px;
}

#health, #sanity {
    height: 100%;
}

#health {
    background: red;
}

#sanity {
    background: blue;
}

#health-label, #sanity-label {
    position: absolute;
    left: 220px;
    color: white;
    font-size: 1em;
    z-index: 2;
}

#health-label {
    top: 10px;
}

#sanity-label {
    top: 40px;
}

#day-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 2em;
    z-index: 4;
}

#journal-button {
    position: absolute;
    top: 70px;
    left: 10px;
    padding: 10px 20px;
    border: 1px solid #ffffff;
    border-radius: 5px;
    background-color: #322D31;
    color: #ffffff;
    cursor: pointer;
    z-index: 2;
    transition: background-color 0.3s;
    font-family: 'Pixel2', sans-serif;
}

#journal-button:hover {
    background-color: #000000;
}

#shrine-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

#house-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

#shrine-stairs {
    position: absolute;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: auto;
    z-index: 1;
}

#dialogue-box {
    position: absolute;
    bottom: 5%;
    left: 15%; 
    right: 5%;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    z-index: 2;
    height: 100px; 
    box-sizing: border-box;
}



#character-container {
    position: absolute;
    bottom: 20%;
    left: 1%;
    z-index: 3; 
}

#character-icon {
    width: 252px; 
    filter: drop-shadow(3px 7px 15px rgba(0, 0, 0, 0.6)); 
}


#dialogue-box {
    position: absolute;
    bottom: 5%;
    left: 15%; 
    right: 5%;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    z-index: 4;
    height: 100px; 
    box-sizing: border-box;
}

#character-name-bar {
    position: absolute;
    top: -25px; 
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 1.2em;
    text-align: left;
    padding: 5px;
    border-radius: 8px 8px 0 0;
}

#dialogue-text {
    color: #ffffff;
    font-size: 1em;
    flex-grow: 1;
    align-self: center; 
}
#next-button {
    display: none;
    position: absolute;
    bottom: 5%;
    right: 5%;
    padding: 10px 20px;
    border-radius: 5px;
    background-color: #322D31;
    color: #ffffff;
    border: 1px solid #ffffff;
    cursor: pointer;
    z-index: 4;
    transition: background-color 0.3s;
    font-family: 'Pixel2';
}

#next-button:hover {
    background-color: #000000;
}

#end-day-button {
    display: none;
    position: absolute;
    bottom: 15%;
    right: 5%;
    padding: 10px 20px;
    border-radius: 5px;
    background-color: #322D31;
    color: #ffffff;
    border: 1px solid #ffffff;
    cursor: pointer;
    z-index: 4;
    transition: background-color 0.3s;
    font-family: 'Pixel2';
}

#end-day-button:hover {
    background-color: #000000;
}

#snake {
    position: absolute;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    z-index: 2;
    width: 180px; 
    height: auto;
    filter: drop-shadow(3px 7px 15px rgba(0, 0, 0, 0.9)); 
}

#choices {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 4;
}

.choice-button {
    padding: 10px 20px;
    border: 1px solid #ffffff;
    border-radius: 5px;
    background-color: #322D31;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: 'Pixel2';
}

.choice-button:hover {
    background-color: #000000;
}

#journal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    display: none;
    z-index: 4;
}

#journal-text {
    color: #000000;
    font-size: 1.2em;
}

#final-message {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2em;
    z-index: 5;
} 

.hidden {
    display: none;
}
 
.character { /* startsc char */
    position: absolute;
    width: 400px; 
}

#sophie { /* startsc char */
    left: 10px;
    bottom: 5px;
    z-index: 99999;
}

#galatea { /* startsc char */
    right: 55px;
    bottom: 5px;
    z-index: 99999;
}

#neuma {
    right: 3px; /* startsc char */
    bottom: 5px;
    z-index: 99999;
}


.zoom {
    zoom: 1.5;
    -moz-transform: scale(1.5);
    -moz-transform-origin: 0 0;
}
