@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

@layer main, unsplash, loader, context-menu;

/*MAIN CSS START*/
@layer main {
    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        vertical-align: bottom;
        color: #004b3f;
        font-family: "Bebas Neue", sans-serif;
        font-weight: 400;
        font-style: normal;
        font-size: 1rem;
    }


    :root {
        font-size: 100%;
    }

    h1, h2, h3, h4, h5, h6 {
        font-weight: 500;
        text-align: center;
        margin: 1em 0;
    }
    h1 {
        font-size: 4rem;
    }

    h2 {
        font-size: 3rem;
    }

    h3 {
        font-size: 2.5rem;
    }

    h4 {
        font-size: 2rem;
    }

    h5 {
        font-size: 1.5rem;
    }

    h6 {
        font-size: 1rem;
    }
}
/*MAIN CSS END*/
/*----------------------------------------------------*/
/*UNSPLASH IMAGES START*/
@layer unsplash {
    .unsplash__wrapper {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .unsplash__container {
        max-width: 600px;
        margin: 0 auto;
    }

    .unsplash__link {
        position: relative;
        display: block;
    }

    .unsplash__container img {
        width: 100%;
        height: auto;
        border-radius: 1rem;
        margin: 1rem 0;
        box-shadow: 0 0 1rem rgba(0, 0, 0, 0.3);
        transition: transform 0.1s ease, box-shadow 0.1s ease;
    }

    .unsplash__container img:hover {
        box-shadow: 0 0 0.75rem rgba(0, 0, 0, 0.2);
        transform: scale(1.025);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .unsplash__img-loading {
        position: absolute;
        display: flex;
        justify-content: center;
        align-items: center;
        top: 50%;
        left: 50%;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.75);
        transform: translate(-50%, -50%);
    }
}
/*UNSPLASH IMAGES END*/
/*----------------------------------------------------*/
/*LOADER START*/
@layer loader {
    @keyframes rotate {
        0% {
            transform: rotate(0deg);
        }
        100% {
            transform: rotate(360deg);
        }
    }

    @keyframes pulsate {
        0% {
            transform: scale(0);
            opacity: 0;
        }
        20% {
            opacity: 0.75;
        }
        25% {
            transform: scale(4);
            opacity: 0;
        }
        30% {
            transform: scale(0);
        }
        100% {
            transform: scale(0);
            opacity: 0;
        }
    }

    .loader__icon {
        position: relative;
        display: block;
        margin: 2rem auto;
        border: 0.25rem solid #000;
        width: 2rem;
        height: 2rem;
        animation: rotate 1s linear infinite;
    }

    .loader__icon::before {
        content: '';
        position: absolute;
        display: block;
        top: 50%;
        left: 50%;
        translate: -50% -50%;
        background: #999;
        border-radius: 100%;
        width: 100%;
        height: 100%;
        animation: pulsate 3s linear infinite;
        pointer-events: none;
    }
}
/*LOADER END*/
/*----------------------------------------------------*/
/*CONTEXT MENU START*/
@layer context-menu {
    .context-menu__wrapper {
        position: fixed;
        display: none;
        top: 0;
        left: 0;
        background-color: #fff;
        border-radius: 0.25rem;
        padding: 0.5rem;
        box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.1);
        border: 1px solid currentColor;
        z-index: 1000;
    }

    .context-menu__list {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin: 0;
        list-style: none;
    }

    .context-menu__link {
        display: block;
        padding: 0.25rem 1rem;
        text-align: center;
        border: 1px solid transparent;
        border-radius: 0.25rem;
        cursor: pointer;
        transition: background-color 0.1s ease;
        text-decoration: none;
    }

    .context-menu__link:hover {
        border: 1px solid currentColor;
    }
}
/*CONTEXT MENU END*/
/*----------------------------------------------------*/