#apod-section {
    align-items: center;
    text-align: center;
    color: white;
    padding-top: 40px;
    box-sizing: border-box;
    width: 100vw;
    height: 100dvh;
    z-index: 1;
    position:relative;
}

#loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    color: white;
}

#apod-image-title {
    position: fixed;
    bottom: 35px;
    color: white;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    text-align: center;
    max-width: 90%;
    font-size: 1.5rem;
    padding: 0;
}

#apod-image-container {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#apod-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    
}

#apod-button {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 10px;
    right: 10px;
    font-size: 1rem;
    font-weight: bold;
    background-color: rgba(42, 82, 190, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

#apod-button i {
    font-size: 1.8rem;
}

#apod-button:hover {
    background-color: rgba(30, 61, 143, 0.8);
}

@media (max-width: 768px) {
    #apod-image-title {
        font-size: 1rem;
        bottom: 5%;
    }

    #apod-button {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    #apod-button i {
        font-size: 1.3rem;
    }
}