:root {
    /* --background-color: #11001C;
    --project-backgrounds: #220135;
    --text-color: #EDF2FB;
    --link-color: #FF5A5F; */
    --background-color: #121420;
    --project-backgrounds: #1B2432;
    --shadow-color: #2c2b3c48;
    --link-color: #FF5A5F;
    --text-color: #EDF2F4;
    --title-color: #EDF2F4;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Monaco, Consolas, Lucida Console, monospace;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
}


button {
    background-color: var(--text-color);
    border: none;
    padding: 0.7rem;
    border-radius: 10px;
    color: var(--background-color);
    transition: color 0.2s ease, background-color 0.2s ease;

}

button:hover {
    background-color: var(--link-color);
    color: var(--text-color);
}

#dnd_reroll_button {
    padding: 0.5rem;
}

select {
    background-color: var(--text-color);
    border: none;
    padding: 0.5rem;
    border-radius: 10px;
    color: var(--background-color);
    transition: color 0.2s ease, background-color 0.2s ease;
}

footer {
    text-align: center;
    font-size: smaller;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

h4 {
    text-align: center;
    margin-bottom: 1rem;

}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-color);
}

.intro {
    color: var(--title-color);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../images/personal/hero_smaller.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    text-align: center;
    animation: fadeIn 2s ease-in-out;
}

.intro h1 {
    font-size: 3rem;
    margin: 0;
}

.intro p {
    font-size: 1.5rem;
    margin: 0.5rem 0 0;
}

#down_arrow_icon {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 3rem;
}

.project_card {
    padding: 3rem 3rem 3rem 3rem;
    box-shadow: 10px 10px 10px var(--shadow-color);
    background-color: var(--project-backgrounds);
    width: 50%;
    height: 50%;
    margin: 3em auto;
    align-items: center;
}

.contact-links {
    text-align: center;
    margin: 1rem 0;
}

.contact-links a {
    color: var(--text-color);
    margin: 0 0.5rem;
    font-size: larger;
}

.contact-links a:hover {
    color: var(--link-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.about-images {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.about-images img {
    width: 25%;
    height: 25%;
    /* border-radius: 50%; */
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-images img:hover {
    transform: scale(1.1);
}

.navbar-container {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--light-color);
    box-shadow: 0 4px 8px var(--shadow-color);
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
    transition: background-color 0.3s ease;
    padding: 1rem;
}

.navbar-container.sticky {
    background-color: var(--primary-color);
}

/* Navbar toggler button hover effect */
.navbar-toggler {
    border: none;
    color: var(--background-color); /* Default color */
    transition: color 0.3s ease;
}

.navbar-toggler:hover {
    color: var(--link-color); /* Change icon color on hover */
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.nav-link {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--link-color);
}

/* Horizontal scrolling container */
.photo-gallery {
    display: flex;
    flex-wrap: nowrap; /* Prevent wrapping of images */
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 1rem 0;
    justify-content: flex-start; /* Align items to the start */
}

.photo-gallery img {
    flex-shrink: 0; /* Prevent images from shrinking */
    width: 100%; /* Make images responsive */
    max-width: 300px; /* Set a maximum width for images */
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.photo-gallery img:hover {
    transform: scale(1.1);
}

/* Hide scrollbar for a cleaner look */
.photo-gallery::-webkit-scrollbar {
    display: none;
}

.photo-gallery {
    -ms-overflow-style: none; /* Internet Explorer 10+ */
    scrollbar-width: none; /* Firefox */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    html, body {
        font-size: 14px;
    }

    .intro h1 {
        font-size: 2rem;
    }

    .intro p {
        font-size: 1rem;
    }

    .project_card {
        width: 90%;
        padding: 2rem;
    }

    .about-images img {
        width: 50%;
        height: auto;
    }

    .navbar-container {
        padding: 0.5rem;
    }

    button {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    #down_arrow_icon {
        width: 30px;
        height: 30px;
        font-size: 2rem;
    }

    .photo-gallery img {
        max-width: 200px; /* Reduce image size on smaller screens */
    }
}

@media (max-width: 480px) {
    .intro h1 {
        font-size: 1.5rem;
    }

    .intro p {
        font-size: 0.9rem;
    }

    .project_card {
        width: 100%;
        padding: 1.5rem;
    }

    .about-images img {
        width: 70%;
    }

    button {
        padding: 0.4rem;
        font-size: 0.8rem;
    }

    #down_arrow_icon {
        width: 25px;
        height: 25px;
        font-size: 1.5rem;
    }

    .photo-gallery img {
        max-width: 150px; /* Further reduce image size on very small screens */
    }
}