:root {
    --color-primary: 0, 97, 104;
    --color-secondary: 2, 255, 172;
    --color-tertiary: 0, 150, 130;
    --color-accent: 244, 150, 0;
}
body {
    margin: 0;
    font-family: Verdana, sans-serif;
}
#navbar {
    z-index: 100;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: start;
    justify-content: space-between;
    transition: background-color 0.3s ease, height 0.3s ease;
}
#navbar label.hamburger {
    display: none;
    min-width: 32px;
    height: 40px;
    margin-top: 0.5em;
    position: relative;
    cursor: pointer;
}
#navbar input#hamburger {
    display: none;
}
#navbar .line {
    position: absolute;
    border-radius: 3px;
    height: 3px;
    width: 100%;
    background: rgb(var(--color-secondary));
    transition: 0.3s;
}
#navbar .line:nth-child(1) {
    top: 10px;
}
#navbar .line:nth-child(2) {
    top: 20px;
}
#navbar .line:nth-child(3) {
    top: 30px;
}
#navbar #hamburger:checked + .hamburger .line:nth-child(1) {
    transform: translateY(10px) rotate(-45deg);
}
#navbar #hamburger:checked + .hamburger .line:nth-child(2) {
    opacity: 0;
}
#navbar #hamburger:checked + .hamburger .line:nth-child(3) {
    transform: translateY(-10px) rotate(45deg);
}
#navbar .nav-links {
    margin-left: 5%;
    display: flex;
    column-gap: 2em;
    height: 100%;
    align-items: center;
    font-size: 1.3em;
}
#navbar a {
    text-decoration: none;
    color: white;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 5px;
    position: relative;
}
#navbar a:before {
    content: "";
    opacity: 0;
    transition: opacity 0.3s ease;
}
#navbar a:hover:before, #navbar a:active:before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    z-index: -1;
    opacity: 1;
    background: linear-gradient(to top,  rgba(var(--color-secondary), 0.8) 0%, rgba(var(--color-secondary), 0.1) 50%, transparent 50%, transparent 100%);
    border-radius: 8px;
}
#navbar #nav-logo {
    margin-right: 5%;
    height: 192px;
    max-width: 30%;
    transition: height 0.3s ease;
}
#navbar.scrolled #nav-logo {
    height: 64px;
}
#navbar.scrolled, #navbar:has(#hamburger:checked) {
    background-color: rgba(26, 26, 26, 0.97);
}
.hero-bg {
    background-image: linear-gradient(to bottom right, rgba(var(--color-primary), 0.4), rgba(var(--color-secondary), 0.4)), url("assets/images/cyclassics_large.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 100vh;
    position: relative;
}
.hero-bg .image-copyright {
    position: absolute;
    bottom: 0;
    right: 5px;
    color: lightgray;
    opacity: 0.5;
    font-size: 0.7em;
}
.hero-bg .hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #f0f0f0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.hero-bg .hero-content h1 {
    max-width: 80%;
    text-align: center;
    font-size: 3.5em;
    text-shadow: rgb(var(--color-secondary)) 1px 1px;
}
.hero-bg .hero-content p {
    backdrop-filter: brightness(0.85);
    text-shadow: 3px 2px 1px rgba(0, 0, 0, 1);
}
.hero-bg .hero-content a, .info-card .info-links a {
    margin-top: 8em;
    border-radius: 3px;
    border: 2px solid rgb(var(--color-secondary));
    text-decoration: none;
    background-color: transparent;
    transition: all 0.3s ease;
    color: white;
    text-align: center;
    backdrop-filter: blur(3px);
    padding: 15px 10px;
}
.hero-bg .hero-content a:hover, .hero-bg .hero-content a:active, .info-card .info-links a:hover, .info-card .info-links a:active {
    color: #1a1a1a;
    background-color: rgb(var(--color-secondary));
    box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;
}
.info-card {
    background-color: #f0f0f0;
    color: #1a1a1a;
    padding: 36px;
    max-width: 80%;
    height: 100%;
    width: min(768px, 80%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    flex-direction: column;
}
.info-card h1 {
    text-align: center;
}
.info-card .info-links {
    display: flex;
    flex-wrap: wrap;
    column-gap: 1em;
    justify-content: center;
}
.info-card .info-links a {
    width: 200px;
    margin-top: 0;
    margin-bottom: 1em;
    color: #1a1a1a;
}
.info-card p {
    text-align: center;
}
.parallax1 {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 0;
    min-height: 600px;
}
.parallax1:before {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    z-index: -1;
    background-image: url("assets/images/Como_1.jpg");
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: blur(3px);
}
.carousel-track {
    display: flex;
    flex-direction: row;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 40px 0;
    mask: linear-gradient(90deg,#0000 10%,#000 33% 66%,#0000 90%);
}
.carousel-track::-webkit-scrollbar {
    display: none;
  }
.carousel-track img {
    scroll-snap-align: center;
    touch-action: pan-y;
    height: clamp(150px, calc(33vw*9/16), 30vh);
}
.parallax2 {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 0;
    min-height: 600px;
}
.parallax2:before {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    z-index: -1;
    background-image: url("assets/images/Como_2.jpeg");
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: blur(3px);
}
.partner-section {
    margin-bottom: 2em;
}
.partner-section h1 {
    text-align: center;
    color: #1a1a1a;
}
.partner-section .sponsor-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1em;
}
.partner-section .sponsor-grid .sponsor {
    background-color: #f0f0f0;
    height: clamp(125px, 10vw, 250px);
    width: clamp(125px, 10vw, 250px);
    border-radius: 50%;
    outline: 2px solid #f0f0f0;
    position: relative;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: border-radius 0.3s ease-out;
}
.partner-section .sponsor-grid .sponsor:hover {
    border-radius: 8px;
    outline: none;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;
}
.partner-section .sponsor-grid .sponsor p {
    display: none;
}
.partner-section .sponsor-grid .sponsor:hover p {
    display: block;
    position: absolute;
    color: white;
    width: 95%;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}
.partner-section .sponsor-grid .sponsor:hover:before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.9));
    border-radius: inherit;
}
.footer {
    min-height: 100px;
    background-color: #1a1a1a;
    display: flex;
    row-gap: 30px;
    justify-content: space-between;
    align-items: center;
    color: lightgray;
    padding: 10px 20px;
}
.footer .socials {
    display: flex;
    column-gap: 1em;
}
.footer .socials a {
    display: flex;
    gap: 1em;
    align-items: center;
    text-decoration: none;
    color: lightgray;
}
.footer .socials a img {
    width: 48px;
    height: 48px;
    filter: saturate(0);
    transition: filter 0.5s ease;
}
.footer .socials a:hover img {
    filter: saturate(1);
}
.footer .footer-nav {
    display: flex;
    gap: 1em;
}
.footer .footer-nav a {
    text-decoration: none;
    color: lightgray;
}
@media screen and (max-width: 860px) {
    #navbar #nav-logo {
        margin-right: 20px;
   }
    #navbar label.hamburger {
        display: block;
        margin-left: 20px;
   }
    #navbar #hamburger:checked ~ .nav-links {
        display: flex;
        flex-direction: column;
        margin-top: 2em;
        height: 100%;
   }
    #navbar #hamburger:checked ~ .nav-links a {
        max-height: 50px;
   }
    #navbar .nav-links {
        display: none;
        font-size: 1em;
   }
   #navbar #nav-logo {
        height: 64px;
    }
    #navbar:has(#hamburger:checked) {
        height: 200px;
   }
   .hero-bg {
        background-image: linear-gradient(to bottom right, rgba(var(--color-primary), 0.4), rgba(var(--color-secondary), 0.4)), url("assets/images/cyclassics_small.jpg");
   }
    .footer {
        flex-direction: column;
   }
}
