@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&display=swap');

:root {
    --headerfont: "Oswald", serif;
    --primaryfont: "Source serif", serif;
    --primarycolor: rgb(195, 166, 233);
    --secondarycolor: rgb(73, 56, 56);
    --highlight: rgb(229, 216, 247);
    --shadow: rgb(53, 41, 41);
}

/*scrollbar styling + behaviour*/
html {
    overflow-y: scroll;
    scrollbar-color: var(--secondarycolor) rgba(217, 160, 219, 0.2);
    scrollbar-width: thin;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(217, 160, 219, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--secondarycolor);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--primaryfont);
}

/*forcing the body to always fill screen and "pushing" down footer to bottom */
body {
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

main {
    flex: 1;
}

nav {
    min-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primarycolor);
    height: 5rem;
}

.logo {
    font-family: var(--headerfont);
    font-size: large;
    font-weight: bold;
    margin-left: 2rem;
}

nav ul {
    display: flex;
}

nav li {
    list-style: none;
    font-family: var(--primaryfont);
    font-size: 1rem;
    margin: 1rem;
}

nav a {
    color: var(--secondarycolor);
    text-decoration: none;
    border-radius: 10px;
    padding: 0.5rem;
    transition: color 0.5s ease-in;
}

/*hover effect if a is not active page*/
nav a:hover:not(.active) {
    color: white;
}

/*marking the active page*/
.active {
    background-color: var(--secondarycolor);
    color: white;
}


footer {
    min-width: 100%;
    padding: 1.5rem;
    background-color: var(--primarycolor);
    color: var(--secondarycolor);
}

.footer-links {
    display: flex;
    justify-content: space-around;
}

.footer-links img {
    width: 70%;
}

/*When screen is phonesize*/
@media (max-width:48rem) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.2rem;
    }

    p {
        font-size: 1rem;
    }

    nav li {
        font-size: 0.8rem;
        margin: 0.2rem;
    }

    .active {
        background-color: rgba(73, 56, 56, 0.6);
    }

    .logo {
        font-size: 1rem;
        margin-left: 0;
    }
}


/*Accessibility*/
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}