body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
      'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
      sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image: url('https://cdn.jsdelivr.net/gh/Brhiza/ovo@main/img/rxbg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #333;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    transition: all 0.3s ease-out;
    width: 100%;
    max-width: 500px;
    position: relative;
}

.top-image {
    max-width: 200px;
    margin-bottom: 20px;
}

h1 {
    font-size: 1.8em;
    margin-bottom: 30px;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.button-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

button {
    padding: 10px 20px;
    font-size: 1.2em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#yes-btn {
    background-color: #007bff;
    color: white;
}

#yes-btn:hover {
    background-color: #0056b3;
}

#no-btn {
    z-index: 10;
    background-color: #dc3545;
    color: white;
}

#no-btn:hover {
    background-color: #c82333;
}

.result {
    margin-top: 30px;
    min-height: 150px; /* Reserve space for the image */
    perspective: 1000px; /* Add perspective for 3D effect */
}

#result-img {
    max-width: 100%;
    border-radius: 10px;
    display: none; /* Initially hidden */
    transform-style: preserve-3d;
}

.coin-flip-effect {
    animation: flip-in 0.8s ease-in-out forwards;
}

@keyframes flip-in {
    0% {
        transform: rotateY(180deg) scale(0.6);
        opacity: 0;
    }
    100% {
        transform: rotateY(0deg) scale(1);
        opacity: 1;
    }
}

/* Styles for when the result is shown */
.container.result-shown {
    background-color: transparent;
    box-shadow: none;
    padding: 0;
}

/* Media Queries for Mobile Optimization */
@media (max-width: 600px) {
    .container {
        padding: 30px 20px;
    }

    h1 {
        font-size: 1.5em;
    }

    .buttons {
        flex-direction: column;
    }

    .button-wrapper {
        width: 100%;
    }

    button {
        padding: 12px 20px;
        font-size: 1.1em;
        width: 30%; /* Make buttons full width on mobile */
    }

    .top-image {
        max-width: 150px;
    }
} 