/* 


---------------------------------------------- WHOLE WEB
*/

html {
    scroll-behavior: smooth; 
    scroll-padding-top: 400px; 
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    background-color: #111111;
}

h1 {
    font-family: "tagesschrift", sans-serif;
}

h2 {
    font-family: "IM Fell Double Pica", serif;
}

p {
    font-family: "Cutive Mono", monospace;
}

/* ----------------------- LINKS */

a {
    font-family: "Cutive Mono", monospace;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:link {
    color: #599292;
}

a:visited {
    color: #599292;
}

a:hover {
    color:#1e7272;
}

a:active {
    color:#1e7272;
}


/*


---------------------------------------------- HEADER
*/

header {
    background-color: #111111;
    color: #cccccc;
    padding: 0rem 2rem 1rem 2rem;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

header h1, header a, header h2, header h3 {
    text-align: center;
}

header h1, header a {
    font-family: "tagesschrift", sans-serif;
    font-size: clamp(2rem, 8vw, 5.5rem);
    overflow-wrap: break-word;
    max-width: 100%;
}

header a:link {
    color: #cccccc;
}

header a:visited{
    color: #cccccc;
}

header a:hover {
    color: #747c7c;
}

header h2 {
    color: #6ab4b4;
    font-size: 1.5rem;
    line-height: 2rem;
    margin: 0px 0px 16px 0px;
}

header p {
    color: red;
    font-size: 1.2rem;
    text-align: center;
}

/*


---------------------------------------------- NAVIGATION
*/
#sticky-wrapper {
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: #111111; 
    padding: 2rem 1rem 1rem 1rem;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

#navigation-header {
    padding: 0rem 3rem 1.5rem 3rem;
    overflow: hidden;
    font-size: 1.5rem;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}


#navigation-header .nav-botones {
    display: grid;
    grid-auto-columns: 1fr;
    grid-auto-flow: column;
    gap: 1rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

#navigation-header .nav-botones div {
    text-align: center;
    width: 100%;
}

#navigation-header .nav-botones div a{
    -webkit-tap-highlight-color: transparent;
}

#navigation-header .btn {
    display: inline; 
}

#navigation-header p {
    margin: 0px;
}


/* ----------------------- LINK OFFLINE */
.btn.desactivado {
    color: #465555 !important;
    pointer-events: none; 
    cursor: default; 
}


/* ----------------------- COUNT */
#count {
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    padding: 0rem 0rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

#count p {
    text-align: center;
    font-size: 1.5rem;
    color: #cccccc;
    margin: 0;
}

@media (max-width: 644px) {
    #navigation-header {
        font-size: 0.9rem;
        padding: 0 1rem 1rem 1rem;
    }

    #navigation-header .nav-botones {
        grid-auto-flow: column;
        gap: 0.5rem;
    }

    #count p {
        font-size: 1rem;
    }
}
/*


---------------------------------------------- GALERÍA
*/

#gallery-cont {
    background: #111111;
    background-attachment: fixed;
    width: 100%;
    padding-top: 1rem;
}

#gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    max-width: calc(5 * 250px + 4 * 2rem);
    margin: 0 auto;
    padding: 2rem;
    gap: 2rem;

}

@media (max-width: 610px) {
    #gallery {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        max-width: calc(4 * 80px + 4 * 2rem);
        padding: 1rem 2rem 2rem 2rem;
        gap: 1rem;
        margin: 0 auto;
    }
}

#gallery img {
    width:100%;
    height: auto;
    object-fit: cover;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

#gallery img:hover {
    box-shadow: 0 0 2.5rem #555b5b77;
    z-index: 0;
}

/*


---------------------------------------------- FULL IMG
*/

.full-img {
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 5;
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    align-items: center;
    justify-content: center;
}

.full-img img {
    max-height: 90%;
    max-width: 90%;
}

.full-img span {
    position: absolute;
    width: 100%;
    height: 100%;
}


/*


---------------------------------------------- FOOTER
*/

#footer-flotante {
    position: fixed;
    bottom: 20px;
    right: 20px;
    text-align: right;
    z-index: 2;
    font-size: 1.5rem;
    background-color: #0a0a0a;
    padding: 1rem;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.2s ease;
}

#footer-flotante p {
    color: #e1ecec;
    margin: 0; 
}

#footer-flotante.visible {
    opacity: 1;
    visibility: visible;
}

footer {
    background-color: #111111;
    padding: 1.2rem 2rem 2rem 2rem;
    color: #e1ecec;
    text-align: center;
    font-size: 1.5rem;
}

footer p {
    margin: 0.5rem 0 0 0
}

footer p:nth-of-type(2) {
    font-size: 1.2rem;
    margin: 1rem 0 0 0
}