html, body {
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    display: flex;
    flex-direction: column;
    background: linear-gradient(#fddcbc, #ee7504);
    background-size: cover;
    min-height: 100vh;
    justify-content: flex-start;
    text-align: center;
    font-family: "Sarah", sans-serif;
}

@font-face {
    font-family: "Sarah";
    src: url("fonts/Sarahsfont-Regular.ttf");
    font-weight: bold;
}

p {
  color: rgb(31, 8, 34);
  font-size: xxx-large;
}

.container {
    max-width: 100%;
    margin: 0 auto 0 auto;
    
}

#ghost-gif {
    width: 35rem;
    height: 31.25rem;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    align-self: center;
    transform: scale(0.8);
}

.buttons-container {
    display: flex;
    justify-content: center;
    gap: 4.6875rem;
}

button {
    border-radius: 8px;
    min-width: 100px;
    max-width: 550px;
    border: none;
    cursor: pointer;
    padding: 10px 15px;
    white-space:nowrap;
    transition: transform 0.1s ease;
    font-family: "Sarah";

}

button:hover {
    scale: 1.05;
}

#yes_button {
    transform-origin: center top;
    color:white;
    background-color: #a55f9d;
    position: absolute;
    left: 35%; 
    top: 53.85%;
    transform: translateX(-50%); /* Centers the button on its left position */
    font-size: 2rem;
}

#no_button {
    color:white;
    background-color: #E77665;
    font-size: 2rem;
    left: 65%; 
    top: 53.85%;
    transform: translateX(-50%); /* Centers the button on its left position */
    position: absolute;
}

/* iPhone-specific adjustments */
@media screen and (max-width: 428px) {
    #yes_button {
        left: 30%;       /* Even further apart on small screens */
        
    }
    
    #no_button {
        left: 70%;
    }
}

@media screen and (max-width: 375px) {
    #yes_button {
        left: 25%;       /* Maximum separation on smallest iPhones */
    }
    
    #no_button {
        left: 75%;
    }
}

/* Move content higher on mobile screens */
@media screen and (max-height: 700px) {
    #yes_button, #no_button {
        top: 75%; /* Move buttons higher up */
    }
    
    #ghost-gif {
        transform: scale(0.7);
    }
}

@media screen and (max-height: 600px) {
    #yes_button, #no_button {
        top: 75%;
    }
    
    #ghost-gif {
        transform: scale(0.7);
    }
}
