h1 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 2rem;
    margin: 0;
}

.logo {
    height: 1em;
    width: auto; /* Maintain aspect ratio */
    display: block;
    padding-bottom: 0.1em;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', sans-serif;
    margin: 0;
    background-color: #f7f7f7;
    font-family: 'Inter', sans-serif;
}

header {
    background-color: rgb(34,32,32);
    color: white;
    padding: 1rem;
    position: relative;
    border-bottom: 1rem solid rgb(151, 189, 189)
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-family: 'Bebas Neue', sans-serif;
}

nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav li {
    margin-left: 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: white;
}

@media (max-width: 768px) {
    nav ul {
    display: none;
    flex-direction: column;
    background-color: #333;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    }

    nav ul.active {
    display: flex;
    }

    .burger {
    display: flex;
    position: absolute;
    top: 1.2rem;
    right: 1rem;
    }
}

main {
    padding: 2rem;
}

.riders {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.rider {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.rider img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    max-width: 150px;
    margin-bottom: 1rem;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    margin-top: 0.5rem;
    text-decoration: none;
}

.social-icon {
    max-width: 0.8em; /* Scale icon to 80% of text size */
    height: auto;
    margin-left: 8px; /* Space between icons */
    vertical-align: middle; /* Align icon with text */
}

.social-link:hover .social-icon {
    opacity: 0.8; /* Optional hover effect */
}

.contact {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: left;
}

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

a:link {
    text-decoration: none;
}
  
a:visited {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

a:active {
    text-decoration: none;
}

@media (max-width: 600px) {
    header {
        padding: 0.8rem 1rem;
    }

    a,
    a:link,
    a:visited,
    a:hover,
    a:active,
    a:focus {
        color: inherit !important;
        text-decoration: none !important;
        -webkit-text-decoration: none !important;
        -webkit-tap-highlight-color: transparent;
    }

    h1 {
        font-size: 1.2rem;
    }

    .logo {
        height: 1em; /* stays in sync with text */
    }

    nav ul {
        width: 100%;
        right: 0;
        top: 55px;
    }

    nav ul li {
        padding: 0.5rem 1rem;
        border-top: 1px solid #444;
    }

    nav ul li:first-child {
        border-top: none;
    }
}