@font-face {
    font-family: active;
    src: url(static/ActiveRegular.OTF);
}

/* Global */
body {
    font-family: active, sans-serif;
    font-style: normal;
    font-weight: 400;

    margin: 0 auto;
    padding: 0 clamp(16px, 5vw, 120px);
    max-width: 1600px;
}

.toastify {
    font-family: sans-serif;
}

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

/* Navbar */
nav {
    padding: clamp(12px, 3vw, 20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h2 {
    font-size: clamp(28px, 5vw, 50px);
    margin: 0;
}

nav a {
    font-size: clamp(18px, 4vw, 40px);
    cursor: pointer;
}

.nav-right {
    display: flex;
    align-items: center;
}

.nav-right img {
    width: clamp(30px, 5vw, 50px);
    margin-left: clamp(12px, 2vw, 25px);
    cursor: pointer;
}

/* Grid */
.grid {
    column-count: 3;
    column-gap: 10px;
}

.grid div {
    position: relative;
    text-align: center;
    color: white;
}

.grid img {
    width: 100%;
    margin-bottom: 10px;
    display: block;
    break-inside: avoid;
}

.hoverable {
    transition: all 0.2s ease;
}

.hoverable:hover {
    filter: brightness(50%);
}

.grid p {
    position: absolute;
    bottom: 20px;
    left: 20px;
    margin: 0;
    transition: all 0.2s ease;
    font-size: clamp(16px, 2.5vw, 25px);
}

/* Form */
form {
    display: flex;
    flex-direction: column;
    margin: auto;
    width: min(75%, 600px);
    font-family: sans-serif;
}

form label {
    font-weight: bold;
    margin-bottom: 5px;
}

form input:focus,
textarea:focus {
    border: solid 2px rgb(255, 175, 250);
    outline: none;
    border-radius: 2px;
}

form input,
textarea {
    padding-left: 10px;
    font-size: 15px;
    height: 40px;
    margin-bottom: 20px;
}

form textarea {
    resize: none;
    height: 100px;
    font-family: sans-serif;
    padding-top: 10px;
}

form button {
    height: 40px;
    font-weight: bold;
    font-family: sans-serif;
    font-size: 16px;
    cursor: pointer;
    background-color: rgb(255, 215, 252);
    border: none;
    color: black;
    outline: none;
    border-radius: 5px;
    transition: all 0.2s;
}

form button:hover {
    background-color: rgb(255, 175, 250);
}

/* Fade animation */
.fade-in {
    opacity: 0;
    transition: opacity 500ms ease;
}

.fade-in.visible {
    opacity: 1;
}

/* Loading text */
#loading-text {
    text-align: center;
    font-size: clamp(28px, 6vw, 50px);
    margin-top: 80px;
}

/* Responsive */

@media (max-width: 900px) {
    .grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    nav {
        flex-direction: column;
        gap: 12px;
    }

    .grid {
        column-count: 1;
    }

    body {
        padding: 0 16px;
    }
}
