@import url('https://fonts.googleapis.com/css2?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&display=swap');

body, html {
    padding: 0;
    margin: 0;
}


main {
    margin: 120px auto;
    max-width: 1400px;
    padding: 0 10px;
    width: 80%;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    display: block
}

@media (max-width: 754px) {
    main {
        width: 100%;
        padding: 0 20px;
    }
}

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

li a:hover {
    text-decoration: underline;
}

.alert {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 7px;
    background-color: #f8f9fa;
    transition: opacity 0.3s ease-in-out;
    font-family: "Poppins", sans-serif;
    box-sizing: border-box;
}

.alert-success {
    background-color: #c6f6d5;
}

.alert-error {
    background-color: #fed7d7;
}

.alert svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    margin-right: 0.5rem;
}

.alert p {
    color: #2d3748;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25rem;
    margin: 0;
}

.alert-success p {
    color: #38a169;
}

.alert-error p {
    color: #e53e3e;
}


/* Modal */
#modal {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100000000000000000000000000000;
    font-family: "Poppins", sans-serif;
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;

    animation-name: fadeIn;
    animation-duration: 150ms;
    animation-timing-function: ease;
}

#modal > .modal-underlay {
    position: absolute;
    z-index: 10000000000000000000000000000;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

#modal > .modal-content {
    margin-top: 10vh;
    width: 80%;
    max-width: 600px;

    border: solid 1px #999;
    border-radius: 8px;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.3);
    background-color: white;
    padding: 20px;

    animation-name: zoomIn;
    animation-duration: 150ms;
    animation-timing-function: ease;
}

#modal.closing {
    animation-name: fadeOut;
    animation-duration: 150ms;
    animation-timing-function: ease;
}

#modal.closing > .modal-content {
    animation-name: zoomOut;
    animation-duration: 150ms;
    animation-timing-function: ease;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes zoomIn {
    0% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes zoomOut {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(0.9);
    }
}

.disappear {
    z-index: 49;
    position: fixed;
    max-width: 400px;
    width: 90%;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 1;
    visibility: visible;
    animation: hideElement 1s forwards;
}

@media (max-width: 754px) {
    .disappear {
        bottom: 20px;
        right: 20px;
        left: auto;
        transform: none;
    }
}


@keyframes hideElement {
    from {
        visibility: visible;
    }
    to {
        visibility: hidden;
    }
}