* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
}

.container {
    perspective: 1000px;
}

.flip-card {
    width: 300px;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s ease-in-out;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card-inner {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 1s;
}

.card-front, .card-back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    flex-direction: column;
    padding: 20px;
    text-align: center;
}

.card-front {
    background-image: url('front-image.jpg');
    color: white;
}

.card-back {
    background-image: url('back-image.jpg');
    color: white;
    transform: rotateY(180deg);
}

button {
    padding: 10px 20px;
    background-color: #4CAF50;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
}

button:hover {
    background-color: #45a049;
}

/* Flip animation */
@keyframes flipEffect {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(180deg); }
}

/* Waiting animation */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.waiting {
    animation: blink 1s infinite;
}

/* Zoom-in result */
@keyframes zoomIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.zoom {
    animation: zoomIn 1s ease-in-out forwards;
}

#result.big {
    font-size: 4em;
    font-weight: bold;
}

/* Flip Again button delay effect (fade in) */
#again-btn {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    margin-top: 20px;
}
#again-btn.show {
    opacity: 1;
}
/* ... existing styles stay the same ... */

/* Big result font */
#result.big {
    font-size: 4em;
    font-weight: bold;
}

/* Flip Again button fade-in */
#again-btn {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    margin-top: 20px;
}
#again-btn.show {
    opacity: 1;
}

/* Yes / No colors */
.result-yes {
    color: #00e676; /* bright green */
    text-shadow: 0 0 20px rgba(0, 255, 100, 0.6);
}

.result-no {
    color: #ff5252; /* bright red */
    text-shadow: 0 0 20px rgba(255, 82, 82, 0.6);
}

/* Glowing pop animation */
@keyframes glow-pop {
    0% {
        transform: scale(0.5);
        opacity: 0;
        filter: brightness(1);
    }
    50% {
        transform: scale(1.1);
        filter: brightness(1.5);
    }
    100% {
        transform: scale(1);
        opacity: 1;
        filter: brightness(1);
    }
}

.zoom {
    animation: glow-pop 1s ease-out forwards;
}
/* Layout container for result + button */
#result-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Button container so it stays BELOW the result */
#button-container {
    margin-top: 30px;
}

/* Optional: center everything more cleanly on card-back */
.card-back {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@keyframes moveBackground {
  0% {
    background-position: 100% 75%;
  }
  25% {
    background-position: 40% 0%;
  }
  50% {
    background-position: 85% 25%;
  }
  75% {
    background-position: 90% 0%;
  }
  100% {
    background-position: 100% 100%;
  }
}

body {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;

  /* Background */
  background-image: url('background.jpg');
  background-size: cover; /* full screen background */
  background-repeat: no-repeat; /* stop tiling */
  background-attachment: fixed;

  animation: moveBackground 150s infinite linear;
}
}
@media (max-width: 768px) {
  body {
    background-image: url('background.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 40% 50%; /* Start a bit left of center */
    animation: panToSecondQuadrant 10s ease-in-out forwards;
  }
}

@keyframes panToSecondQuadrant {
  0% {
    background-position: 40% 50%;  /* Slightly left of center */
    background-size: 110%;         /* Zoomed in a little */
  }
  100% {
    background-position: 0% 0%;    /* Top-left corner */
    background-size: 120%;         /* Slight zoom for smooth coverage */
  }
}

