#main-image {
    position: relative;
    display: flex;
    background-image: 
        linear-gradient(rgba(78, 5, 85, 0.3), rgba(78, 5, 85, 0.3)),
        url("../img/lesmis_wide.png");
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center 50%;
    z-index: 1;
    width: 100%;
    height: 55%;
    padding-top: 0;

}



#intro-paragraph {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;


    width: 50%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    font-size: 1.5rem;

    margin-top: 5%;
    margin-left: 2%;
    z-index: 20;
}

#intro-paragraph-text {
    background-color: #f7f1e3;
    color: black;
    padding: 15px;
    border-radius: 15px;
    border: 3px #4e0555 solid;
    z-index: 5;

}  

#intro-paragraph-text p {
    font-weight: 700;
    color: #4e0555;

}


.moon {
    position: relative;
    margin: 0;
    height: 200px !important;
    width: auto !important;
    transform-origin: bottom center;
    animation: moonRock 4s ease-in-out infinite;
    z-index: 10;
}

@keyframes moonRock {
    0%   { transform: rotate(-5deg); }
    50%  { transform: rotate(5deg); }
    100% { transform: rotate(-5deg); }
}


@media (max-width: 768px) {
    #main-image {
        background-size: 400%;
        background-position: 60% 50%;
    }

    #intro-paragraph {
        text-align: center;
        width: 80%;
        flex-direction: column;
        margin-top: 120%;
        margin: 0 auto;
    }

    #intro-paragraph-text {
        text-align: center;
    }

    .moon {
        height: 20px;
        width: auto;
    }

    .desktop-only {
        display: none;
    }


}


/* prevent mobile content from showing on desktop */

@media (min-width: 768px) {
    #page-content.mobile-only {
        display: none;
    }
}