/* google font importation */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');


:root {
    /* debug border */
    --debug: 1px solid black;

    --bw-blue: #485D8C;
    --bw-blue-light: #6B84AC;
    --bw-blue-dark: #364869;

    /* complementary and analogous */
    --terracotta: #8C6148;
    --terracotta-light: #A87D66;
    --terracotta-dark: #6B4835;

    --teal-blue: #48768C;
    --teal-blue-light: #6B92A8;
    --teal-blue-dark: #365869;

    --deep-purple: #4C488C;
    --deep-purple-light: #6B68A8;
    --deep-purple-dark: #383569;

    /* Neutrals */
    --light-gray: #F5F7FA;
    --silver: #E8EBF0;
    --charcoal-1: #2A3744;
    --charcoal-2: #1A2332;
    --mid-gray: #8A95A5;

    /* accent colors */
    --success-green: #4C8C6B;
    --success-green-light: #609e7e;
    --success-green-dark: #36b473;
    --warning-amber: #D4A574;
    --error-coral-light: #C66B6B;
    --error-coral-dark: #a65858;
    --blue-gray: #6B7C8C;

    /* others */
    --bg: #FAFBFB;
    --text: #2A3744;
    --welcome-bar: #E7E0E0;
}

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

body {
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    overflow-x: hidden;
    animation: fadeIn 0.5s ease forwards;
}

.container {
    margin: auto;
    width: 90%;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: none;
}

section {
    scroll-margin-top: 5.7rem;
}

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

::selection {
    color: #fff;
    background-color: var(--bw-blue);
}

.pop-modal {
    position: fixed;
    inset: 0;
    margin: auto;
    height: fit-content;
    border: none;
    border-radius: 12px;
    padding: 32px 28px 24px;
    width: calc(100% - 32px);
    max-width: 420px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.pop-modal::backdrop {
    background: rgba(0, 0, 0, 0.55);
}

.pop-modal[open] {
    animation: pop-modal-in 0.2s ease-out;
}

@keyframes pop-modal-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.pop-modal__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
}

.pop-modal.success .pop-modal__icon {
    background: #16a34a;
    /* background-color: var(--success-green-dark); */
}

.pop-modal.success .pop-modal__icon::before {
    content: "✓";
}

.pop-modal.error .pop-modal__icon {
    background: #dc2626;
    /* background: var(--error-coral-light); */
}

.pop-modal.error .pop-modal__icon::before {
    content: "!";
}

.pop-modal__title {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.pop-modal__message {
    margin: 0 0 20px;
    color: #555;
    line-height: 1.5;
}

.pop-modal__btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    background: var(--bw-blue-dark);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}

button {
    @media (hover: hover) and (pointer: fine) {
        transition: all 0.1s ease-in-out;

        &:hover {
            cursor: pointer;
            transform: scale(0.95);
        }
    }

    &:active {
        transform: scale(1.02);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media screen and (max-width: 1024px) {
    .container {
        width: 95%;
    }
}