/****************************************************************/
/* DEFAULT SELECTORS */
body {
    margin: 0px;
    padding: 0;
    height: 100vh;
    background-image: url("../assets/img/cover.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    }
h1 {
    font-size: 10em;
    margin: 0.2em 0;
    text-shadow: 2px 2px 8px rgba(255, 255, 255); /* Horizontal, Vertical, Blur, Color */
    position: relative;
    transition: transform 0.2s ease;
}
a {
    text-decoration: none;
    color: inherit;
}
body,h1,h2,h3,h4,h5,h6 {font-family: "Modak", sans-serif;}

/****************************************************************/
/* CLASS SELECTORS */
.overlay {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
}
.modak-regular {
    font-family: "Modak", system-ui;
    font-weight: 400;
    font-style: normal;
}
.popup {
    display: none;
    position: fixed;
    inset: 0;
    top:0; left: 0;
    justify-content: center;
    align-items: center;
}
.popup-content {
    background: #fff;
    padding: 20px;
    width: 400px;
    border-radius: 10px;
    position: relative;
    animation: fadeIn 3s ease;

    font-family: "Fredoka", sans-serif;
    font-weight: 400;
    color: #222;
    letter-spacing: 0.02em;
    line-height: 1.6;
    font-size: 1rem;

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.popup-content h2
.popup-content p {
    text-shadow: 0 1px 0 rgba(255,255,255,0.4);
    margin-top: 0;
    margin-bottom: 12px;
    letter-spacing: 1px;
}
.close {
    background: transparent;
    border: none;
    padding: 0;

    font-family: "Modak", sans-serif;
    font-size: 28px;
    line-height: 1;
    color: #222;
}

.popup--image {
    z-index: 2000;
    background: transparent;

}
.image-trigger {
    cursor: pointer;
    text-decoration: underline;
    opacity: 0.7;
}
.popup-content--image {
    max-width: 80vw;
    max-height: 80vh;
    padding: 16px;
    text-align: center;
}

.popup-content--image img {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 8px;
}

.image-label {
    margin-top: 12px;
    font-size: 0.9rem;
}

/****************************************************************/
/* ID SELECTORS */
#openPopup {
    position: absolute;
    width: 300px;      /* adjust size */
    height: 150px;     /* adjust size */
    top: 83%;          /* adjust position */
    left: 65%;         /* adjust position */
    transform: translate(-50%, -50%);
    
    background: transparent;
    border: none;
    cursor: pointer;

    /* fully invisible */
    opacity: 0;

    /* make sure it's clickable */
    pointer-events: auto;
}

#popup {
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);

}

/****************************************************************/
/* KEYFRAMES */

@keyframes floatLoop {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(20px, -10px); }
    50%  { transform: translate(0px, -20px); }
    75%  { transform: translate(-20px, -10px); }
    100% { transform: translate(0, 0); }
}
@keyframes fadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}
/****************************************************************/
/* RESPONSIVNESS */
@media (max-width: 800px) {
    .overlay {
        width: auto;
    }
    
    h1 {
        font-size: 3em;
        text-shadow: 1px 1px 4px rgb(255, 255, 255);
        position: static;
        transition: none;
    }

    #openPopup {
        width: 150px;
        height: 100px;
        left: 80%;
    }
}