@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Quicksand:wght@300..700&display=swap");
@import url("header.css");

p,
a,
input,
select,
button,
label {
    font-size: 16px;
}

.hide {
    display: none !important;
}

:root {
    --accent: #e41376;
    --primary-1: #07294c;
    --primary-2: #16d5f1;
    --primary-3: #e7f8ff;
    --primary-4: #c0f4fb;
    --link: #3280ee;
    --primary-1-faded: #566d85;
    --dashboard-page-color: #f3f3f3;
    --shadow: 0px 4px 4px lightgrey;
}

* {
    margin: 0;
    /* font-family: "Inter", system-ui; */
    font-family: "Quicksand", sans-serif;
    font-weight: 500;
    color: var(--primary-1);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Figtree", sans-serif;
}

h1 {
    font-weight: 800;
    font-size: 3em;
}

li,
p,
a {
    font-size: 18px;
}

.error {
    width: 30vw;
    background-color: pink;
    padding: 5vh;
    text-align: center;
    position: fixed;
    left: 0;
    right: 0;
    margin-inline: auto;
    bottom: 0;
    font-size: 16px;

    animation-name: slider;
    animation-duration: 5s;
    animation-timing-function: linear;
}

.success {
    width: 30vw;
    background-color: lightgreen;
    padding: 5vh;
    text-align: center;
    position: fixed;
    left: 0;
    right: 0;
    margin-inline: auto;
    bottom: 0;
    font-size: 16px;

    animation-name: slider;
    animation-duration: 5s;
    animation-timing-function: linear;
}

input:hover,
select:hover,
button:hover,
.hover {
    box-shadow: 0px 0px 5px var(--accent);
}

input[type="button"]:active,
button:active {
    outline: 2px solid var(--accent);
    box-shadow: 0 0 8px var(--accent);
    transition: all 0.3s ease-in-out;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
    z-index: 9999; /* Ensure it’s on top */
    cursor: wait; /* Show wait cursor */
    display: flex; /* Hidden by default */
    justify-content: center;
    align-items: center;
}

.overlay p {
    background-color: var(--primary-2);
    padding: 10vh;
    border-radius: 15px;
}

.tip {
    position: relative;
    display: inline;
}

.tip > p {
    position: absolute;
    top: 0;
    left: 2vw;
    width: 10vw;
    color: var(--accent) !important;
    background-color: var(--dashboard-page-color) !important;
}

@keyframes slider {
    0% {
        opacity: 0;
        transform: translateY(10vh);
    }

    50% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-10vh);
    }
}

@media (orientation: portrait) {
    h1 {
        font-size: 2.5em;
    }

    .tip > p {
        min-width: 30vw;
        left: 7vw;
    }
}
