/* Global Styles */
@font-face {
    font-family: 'MyGameFont';
    src: url(assets/fonts/Atma/Atma-Regular.ttf);
}

body {
    text-align: center;
    background-color: #6b3f2a9b;
    font-family: 'MyGameFont', sans-serif;
    margin: 0;
}

/* Input & Button Styling */
input, button {
    font-family: 'MyGameFont';
    font-size: 25px;
    padding: 20px;
    margin: 20px;
    background-color: #ddcab8;
}

button {
    padding: 10px 20px;
    margin-top: 20px;
    font-size: 20px;
    cursor: pointer;
}

/* Header */
#header {
    text-align: center;
    font-size: 25px;
    font-weight: bold;
}

h2 {
    font-size: 38px;
}

h3 {
    position: absolute;
    text-align: center;
    top: 1px;
    font-size: 25px;
    z-index: 2;
}

/* Screen Styling */
.screen {
    width: 721px;
    height: 580px;
    border: 2px solid darkslategray;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #81a08b; /* Green background */
    position: relative;
    margin: auto;
}

#screen2 {
    position: relative;
    width: 721px;
    height: 580px;
    background-image: url('assets/sprites/background2.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* Hide Elements */
.hidden {
    display: none !important;
}

/* Sprite Images */
#sprite1 { height: 250px; width: auto; }
#sprite2 { height: 250px; width: auto; }
#sprite3 { height: 250px; width: auto; }

.sprite {
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Fixed Sprite */
.character {
    position: absolute;
    bottom: 210px;
    left: 53%;
    transform: translateX(-50%);
    width: auto;
    height: 200px;
    z-index: 2;
}

/* Draggable Items */
.draggable {
    position: absolute;
    width: 80px;
    height: auto;
    cursor: grab;
    z-index: 3;
}

.dropped {
    cursor: default;
    z-index: 3;
}

/* Item Positions */
#painmanagement { bottom: 20px; left: 75px; width: 75px; height: auto; }
#buzzy { bottom: 20px; left: 240px; width: 58px; height: auto; }
#distraction { bottom: 30px; left: 400px; width: 80px; height: auto; }
#companion { bottom: 20px; left: 575px; width: 50px; height: auto; }

/* Modal styling */
#questionModal.hidden {
    display: none; /* Keeps it hidden initially */
}

#questionModal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border: 2px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.modal-content {
    text-align: center;
}

button.answer {
    margin: 10px;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    background-color: #ddd;
    border: none;
    border-radius: 5px;
}

button.answer:hover {
    background-color: #f0f0f0;
}

button.answer:focus {
    outline: none;
}

/* Final Image */
#final-image {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 800px;
    height: 500px;
    z-index: 4;
}

#final-image p {
    position: absolute;
    top: 55px;  /* Adjust distance from the top */
    left: 43%;
    transform: translateX(-50%);
    font-size: 25px;
    font-weight: bold;
    text-align: center;
    color: #333; /* Adjust text color if needed */
}

#final-image img {
    width: 450px;
    height: auto;
}

#final-image.hidden {
    display: none;
}