/* regular font */
@font-face {
    font-family: 'deluxe220';
    src: url('/fonts/deluxe220regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

/* bold font */
@font-face {
    font-family: 'deluxe220';
    src: url('/fonts/deluxe220bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}



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



body {
    font-family: 'deluxe220', monospace;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.75;
    color: #111;
    background-color: #fefefe;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0 auto;
    max-width: 1000px;
    padding-top: 2.5rem;
    text-align: left;
    justify-content: space-between;
    
}



main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    margin: 0 auto;
}



h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'deluxe220', monospace;
    font-weight: 700;
    line-height: 1.3;
    color: #111;
    margin: 1rem 0;
}



/* heading sizes */
h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.6rem;
}

h4 {
    font-size: 1.4rem;
}

h5 {
    font-size: 1.3rem;
}

h6 {
    font-size: 1.1rem;
}



/* regular paragraph */
p {
    margin: 1rem 0;
}

/* bold text */
strong,
b {
    font-family: 'deluxe220', monospace;
    font-weight: 700;
}

/* italic & emphasis */
em,
i {
    font-style: italic;
}

ul {
    margin: 1rem 0;
}



/* external links */
a {
    color: #111;
    text-decoration: none;
    background-color: rgba(255, 230, 0, 0.419);
    padding: 4px 4px 0px;
    transition: background 0.2s;
}

a:hover {
    background-color: rgba(255, 230, 0, 0.743);
}



/* internal links */
.internal-link {
    background-color: transparent;
    border-bottom: none;
    padding: 0;
    color: inherit;
    transition: none;
    cursor: pointer;
    width: fit-content;
}

.internal-link:hover {
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-decoration-style: wavy;
    background-color: transparent;
}

/* home link */
.home-link {
    color: #ffffff;
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.75);
    padding: 4px 4px 2px;
    border-bottom: 0px solid rgba(0, 0, 0, 1);
    transition: background 0.2s;
}

.home-link:hover {
    background-color: rgba(0, 0, 0, 0.85);
}



/* dropdown */
summary {
    cursor: pointer;
    position: relative;
    width: fit-content;
}

summary:hover {
    opacity: 0.7;
}



img {
    display: block;
    margin: 0;
    max-width: 100%;
}



/* horizontal rule */
hr {
    border: none;
    border-top: 1px solid #c0c0c0;
    margin: 1rem 0;
}



/* main footer */
footer {
    text-align: right;
}

.custom-font {
    font-family: 'IBM Plex Mono', monospace;
}


@media (max-width: 1023px) {
    body {
        padding: 2.5rem 1.5rem 0.5rem 1.5rem;
    }

    #internal-link:active {
        text-decoration-line: underline;
        text-decoration-thickness: 1px;
        text-decoration-style: wavy;
    }

    summary:active {
        opacity: 0.7;
    }
}

@media (max-width: 600px) {
    #internal-link {
        text-decoration-line: underline;
        text-decoration-thickness: 1px;
        text-decoration-style: wavy;
    }

       #internal-link:active {
        text-decoration-line: underline;
        text-decoration-thickness: 2px;
        text-decoration-style: wavy;
    }

    body {
        font-size: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.4rem;
    }
}