
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Gungsuh', serif;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(-45deg, #d0ff00, #e100ff, #ff3c00, #ff0000, #0011ff, #7bff00);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#app-container {
    width: 100%;
    max-width: 390px;
    aspect-ratio: 9 / 16;
    max-height: 100vh; /* Use viewport height to ensure it fits */
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.screen {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-sizing: border-box;
}

.screen.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Using absolute GitHub URLs as requested for deployment */
#start-screen, #category-screen { 
    background-image: url('https://raw.githubusercontent.com/bluebeatle97/jiwonjumsim/main/img/002.jpg'); 
}

#category-screen {
    gap: 15px; /* Spacing between category buttons */
}

#loading-screen { 
    background-image: url('https://raw.githubusercontent.com/bluebeatle97/jiwonjumsim/main/img/001.jpg'); 
    justify-content: flex-start; 
}
#result-screen { 
    background-image: url('https://raw.githubusercontent.com/bluebeatle97/jiwonjumsim/main/img/003.jpg'); 
    justify-content: flex-start; 
}

#result-content {
    position: relative; /* For positioning pseudo-elements */
    background: #fff;
    border-radius: 50%; /* Makes the main shape circular */
    padding: 20px;
    text-align: center;
    width: 300px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 25%; /* Adjusted margin to be responsive */
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

/* Creating the smaller cloud bubbles */
#result-content::before, #result-content::after {
    content: '';
    position: absolute;
    background: #fff;
    border-radius: 50%;
    z-index: -1; /* Place bubbles behind the main content */
}

#result-content::before {
    width: 100px;
    height: 100px;
    top: -40px;
    left: 30px;
}

#result-content::after {
    width: 120px;
    height: 120px;
    top: -20px;
    right: 10px;
}

#restaurant-info {
    font-family: 'Gungsuh', serif;
    color: #000; /* Adjusted from rgb(0,0,0) */
    font-weight: 950;
}

#restaurant-info p {
    margin: 8px 0;
    font-size: 26px;
    letter-spacing: 1px;
    color: white;
    /* Bold outline for readability */
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000;
}

.title {
    font-size: 3rem;
    color: white;
    text-shadow: 2px 2px 4px #000000;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Gungsuh', serif;
}

.rainbow-button {
    border: none;
    cursor: pointer;
    font-family: 'Gungsuh', serif;
    color: white;
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: linear-gradient(to right, 
        #FF0000 0%, #FF7F00 14.2%, #FFFF00 28.4%, #00FF00 42.6%, 
        #0000FF 56.8%, #4B0082 71%, #8B00FF 85.2%);
}

#start-button, .category-button {
    font-size: 1.5rem;
    padding: 10px 20px;
    border-radius: 10px;
    width: 60%;
    max-width: 280px;
}

.loading-text {
    font-size: 40px; /* As requested */
    color: white;
    text-shadow: 2px 2px 4px #000000;
    text-align: center;
    margin-top: 50px;
    font-family: 'Gungsuh', serif;
}

#copy-address-button, #reset-button {
    position: absolute;
    bottom: 20px;
    font-size: 1rem;
    padding: 8px 15px;
    border-radius: 8px;
}

#copy-address-button {
    left: 20px;
}

#reset-button {
    right: 20px;
}
