/* Animations */
@keyframes jump {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-50px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes flip {
    0% {
        transform: rotate(0);
    }

    50% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(0);
    }
}

/* Base styles */
:root {
    font-family:
        system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif,
        "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

body {
    background-color: #1d1d1d;
    color: white;
    margin: 0;
}

br {
    user-select: none;
}

h1 {
    margin: 0;
}

a {
    color: aquamarine;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 125px;
    height: auto;
    border-radius: 8px;
    user-select: none;
}

/* Custom components */
main-footer {
    display: flex;
    flex-wrap: wrap;
    justify-self: center;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 90%;
    max-width: 30rem;
    margin-bottom: 1%;
}

main-footer p {
    margin: 1%;
    flex-basis: 100%;
    opacity: 0.2;
}

/* Classes */
.menu-bar {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    background-color: #282828;
    box-sizing: border-box;
    overflow: hidden;
}

.menu-bar a {
    transition: 0.1s ease-in-out;
    flex: 1;
    padding: 0.5rem 1rem;
    border-bottom: 0.2rem solid;
    background-color: #000000;
    color: white;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    text-align: center;
    text-decoration: none;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-sizing: border-box;
}

.menu-bar a:hover {
    filter: brightness(1.3);
}

.content {
    background-color: #000000a7;
    padding: 1rem;
    margin: 2vh auto;

    width: 95%;
    max-width: 95%;

    border-radius: 8px;
    box-sizing: border-box;
    display: block;
}

.cat-carrier {
    display: inline-flex;
    max-width: 100%;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    background-color: #ffffff2b;
    box-sizing: border-box;
    overflow: hidden;
}

.cat-carrier img {
    flex: auto;
    min-width: 0;
}

.link-container {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.2rem;
    flex: auto;
}

.link-container img {
    height: 1em;
    width: auto;
    max-width: 1em;
    border-radius: 0;
}

.section h2 {
    margin-top: 0px;
    margin-bottom: 0px;
}

.section {
    padding-left: inherit;
    padding-right: inherit;
    padding-top: 2vh;
    padding-bottom: 2vh;
    margin-bottom: 2vh;
    background-color: #ffffff2b;
    border-radius: 8px;
}

.section:last-of-type {
    margin-bottom: 0;
}

/* IDs */
#menu-about {
    border-bottom-color: #969696;
}

#menu-projects {
    border-bottom-color: #ff5757;
}

#menu-contact {
    border-bottom-color: #ae57ff;
}
