@import url('https://fonts.googleapis.com/css2?family=Fascinate+Inline&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* all variables for the site, and their mobile alterate values */

:root {
    --text-color: #000000;
    --secondary-text-color: #3D3D3D;
    --primary-color: #4cc9f0;
    --secondary-color: #b04ef2;
    --box-bg-color: #97DFF7;
    --secondary-box-bg-color: #D391FF;
    --bg-color: #FFFFFF;
    --page-margin: 4rem;
    --border-width: .5rem;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* universal styling and fonts */

body {
    margin: 0;
    color: var(--text-color);
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 1.2rem;
}

a {
    all: unset;
    cursor: pointer;
}

button {
    all: unset;
}

.sliding-underline,
.underline {
    display: inline-block;
    cursor: pointer;
    position: relative;
}

.sliding-underline::after {
    content: '';
    position: absolute;
    height: .3rem;
    left: 0;
    bottom: 0;
    width: 0;
    background: var(--text-color);
    transition: width .2s;
}

.sliding-underline:hover::after,
.sliding-underline:focus::after {
    width: 100%;
}

.underline::after {
    content: '';
    position: absolute;
    height: .1rem;
    left: 0;
    bottom: 0;
    width: 100%;
    background: var(--text-color);
}

.focus-box:focus {
    display: inline-block;
    background-color: rgba(0, 0, 0, .3);
    border-radius: .2rem;
}

:-webkit-any(article, aside, nav, section) :-webkit-any(article, aside, nav, section) h1 {
    margin-block-start: 0;
    margin-block-end: 0;
}

h1 {
    font-family: "Fascinate Inline", system-ui;
    font-weight: 400;
    font-style: normal;
    font-size: 1.8rem;
}

main {
    width: 100%;
    height: fit-content;
}