@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap');

/* Sets up fonts and background image  */
body {
    font-family: 'Comic Sans MS', 'Comic Neue', sans-serif;
    background-image: url('media/background.png');
    background-size: cover;
    background-size: 100% auto;
    background-attachment: scroll;
    background-repeat: no-repeat;
    min-height: 180rem;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    height: auto;
}

.headerPadding {
    height: 37.7rem;
}

/* Aligns text within the footer to centre */
.footerPadding {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: 18rem;
    margin-left: 0;
    height: 15.7rem;
    gap: 2rem;
}

p {
    position: relative;
    font-size: 2.9rem;
    width: 40%;
    left: 50%;
    transform: translate(-50%, 0);
    margin-bottom: 5.8rem;
}

.contact {
    font-size: 2.9rem;
}

.tagline {
    font-size: 1.75rem;
}

/* Hides mobile only element on Computers */
.mobileBottom {
    display: none;
}

/* Adapts styling for Mobile Devices */

@media (max-width: 768px) {
    body {
        background-image: url('media/backgroundMobile.png');
        min-height: 0;
        font-family: 'Comic Neue', cursive, sans-serif;
    }

    .headerPadding {
        height: 14rem;
    }

    .footerPadding {
        height: 5rem;
        margin-top: 2.5rem;
    }

    p {
        font-size: 1.2rem;
        width: 70%;
        margin-bottom: 2.9rem;
    }

    .contact {
        font-size: 1.2rem;
    }

    .tagline {
        font-size: 1rem;
    }
    .mobileBottom {
        display: block;
        position: relative;
        width: 100%;
        height: 5rem;
        margin-top: 2rem;
        background-image: url('media/mobileBottom.png');
        background-size: cover;
        background-repeat: no-repeat;
    }
}