@import "/styles/vars.css";
@import "/styles/nav.css";
@import "/styles/footer.css";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    background-color: var(--theme-light-colour);
    color: var(--theme-contrast-colour);
}

#banner {
    height: .5rem;
    width: 100%;
}

footer {
    background: var(--theme-dark-colour);
    text-align: center;
    margin-bottom: .5rem;
    font-family: 'Amatic SC', sans-serif;
}

main {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5rem;
    margin-bottom: 2rem;
    font-family: "Cedarville Cursive", cursive;
    font-weight: 400;
    font-style: normal;

    @media only screen and (max-width: 880px) and (min-aspect-ratio: 3/2) {
        & {
            position: relative;
            left: 7rem;
            width: calc(100vw - 7rem);
            margin-top: 1rem;
            margin-bottom: 1rem;
            margin-left: 0;
        }
    }
}

/* Style-markers */

.text p {
    margin: 1em;
    margin-block: 1em;
}

.centering {
    display: flex;
    align-items: center;
    justify-content: center;
}

.border {
    border-color: var(--theme-border-colour);
    border-style: solid;
    border-width: 2px;
    border-radius: 2px;
}

.shadow {
    box-shadow: var(--shadow-size) var(--shadow-size) var(--shadow-size) 0px rgba(0, 0, 0, 0.5);
}

.hover-link-image {
    display: inline-block;
    position: relative;
    height: 2rem;
    margin-left: .5rem;
    vertical-align: text-bottom;
    padding-left: .3rem;

    & .hover-box {
        display: none;
        position: absolute;
        bottom: 100%;
        left: 50%;
        white-space: nowrap;
        transform: translateX(-50%);
        margin-bottom: .5rem;
        padding: .5rem;
        background-color: var(--theme-background-colour);
        border: solid black 2px;
        border-radius: 6px;
    }

    &:hover .hover-box {
        display: inline-block;
    }

    & img {
        max-width: 100%;
        max-height: 100%;
    }
}

.text-link {
    color: var(--theme-link-colour);
    font-weight: 600;
    filter: var(--filter-mobile);
}

.button {
    width: min(32vw, 20rem);
    height: min(8vw, 6rem);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--theme-background-colour);
    color: var(--theme-button-color);
    border-radius: .5rem .5rem 0 0;
    box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.5);
    margin: .5rem .5rem -2px .5rem;
    user-select: none;
    font-size: min(4vw, 2rem);
}