:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    overflow: hidden;
}

.kitchen-scene {
    width: 100vw;
    height: 100vh;
    background: url('assets/kitchen-bg.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
}

#steak {
    width: 150px;
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    transition: transform 0.3s ease;
}

#steak:hover {
    transform: translateX(-50%) scale(1.1);
}

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

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

.info-button {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3498db;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.info-button:hover {
    background: #2980b9;
    transform: scale(1.1);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    position: relative;
    transform: scale(0.7);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal:not(.hidden) .modal-content {
    transform: scale(1);
}

.modal h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 24px;
    padding-right: 20px;
}

.modal-text {
    white-space: pre-line;
    line-height: 1.6;
    color: #34495e;
    margin-bottom: 20px;
    font-size: 16px;
    overflow-y: auto;
    max-height: calc(80vh - 140px); /* Account for header and button */
    padding-right: 20px; /* Space for scrollbar */
}

/* Styling the scrollbar */
.modal-text::-webkit-scrollbar {
    width: 8px;
}

.modal-text::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-text::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.modal-text::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.close-button {
    padding: 10px 20px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    align-self: flex-end;
}

.close-button:hover {
    background: #c0392b;
}

.speech-bubble {
    position: fixed;
    left: 5%;
    top: 50%;
    transform: translateY(-50%) scale(0);
    opacity: 0;
    transition: all 0.3s ease-out;
    width: 300px;
    height: auto;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bubble-image {
    width: 100%;
    height: auto;
    display: block;
}

.bubble-text {
    position: absolute;
    top: 40%;  
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-align: center;
    padding: 10px;
    z-index: 1;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    pointer-events: none;
    width: fit-content;
    max-width: 80%;
    white-space: nowrap;
}

.speech-bubble.show {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.reset-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 12px 24px;
    font-size: 18px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    font-family: Arial, sans-serif;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.reset-button:hover {
    background: #c0392b;
    transform: translateY(20px) scale(1.05);
}

.reset-button.show {
    opacity: 1;
    transform: translateY(0);
}

.hidden {
    display: none;
}
