a{
    color: darkblue;
}
a:hover{
    color: purple;
}

body{
    background-color: rgb(33,37,41);
}

div.container-fluid{
    position: relative; 
}

body{
    color: white;
}

.projectHeader{
    color: black;
}

.projectDesc{
    color: rgb(10, 10, 10);
}

#titleDiv{
    width: 100%;
    height: 100vh;
    margin: auto auto auto auto;
    background-image: url("images/fractal_hassan_quantum_background.webp");
    background-color: rgba(33, 37, 41, 50%);
    background-repeat:no-repeat;
    background-size:cover;
    background-blend-mode: multiply;
}

#picture-title{
    padding-top:15vh;
    color: white;
}

#me{
    width: 300px;
    margin: 5% auto auto auto;
    padding: 5px;
    position: relative;
    border-radius: 50%;
}

.foreground{
    position: relative;
    z-index: 5;
}

#AboutPage{
    width: 50%;
    border-radius: 10px;
    padding: 10px;
    background-color:rgba(200, 200, 200, 50%);
    color: white;
}

#ProjectsTitle{
    padding-top:15vh;
}

#projectsPage{
    margin-top: -20px;
    /* height: 100vh; */
    width: 100%;
    margin: auto auto auto auto;
    background-image: url("images/anton-maksimov-5642-su-wrkNQmhmdvY-unsplash.webp");
    background-color: rgba(33, 37, 41,70%);
    background-blend-mode: multiply;
    background-repeat:no-repeat;
    background-size:cover;
}
#card-grid{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.card{
    display: flex;
    flex: none;
    justify-content: space-around;
    min-width: 30em;
    max-width: 40em;
    min-height: 15em;
    max-height: 35em;
    margin: 5px;
}

.img-fluid{
    height: 5em;
    display: block;
    margin: auto auto auto auto;
}

.img-container{
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-body{
    margin-left: -40px;
}

#hobbiesSection{
    margin-top: -20px;
    height: 100vh;
    width: 100%;
    margin: auto auto auto auto;
    background-image: url("images/abstract-neon-light-background.webp");
    background-color: rgba(33, 37, 41, 80%);
    background-blend-mode: multiply;
    background-repeat:no-repeat;
    background-size:cover;
}

#navbarIcon{
    height:5vh;
}

#hobbiesCarousel{
    width: min(80%, 100em);
    margin-left: auto;
    margin-right: auto;
}

.hobbyImageContainer{
    width: 100%;
    height: 40vh;
}

.hobbyImage{
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.svgIcon{
    width: 1em;
    display: inline;
    margin-left: 1em;
}

.attributionLink, #emailLink{
    color: #8b97a1!important;
}

.attributionLink:hover, #emailLink:hover{
    color: white!important;
}


.carousel-caption-text{
    width: calc(40vh * 4 / 3);
    margin-left: auto;
    margin-right: auto;
    color: white;
    background-color:rgba(100, 100, 100, 0.5);
    border-radius: 10px;
}

/* Responsive adjustments to avoid overlapping on small screens */
@media (max-width: 992px) {
    #titleDiv{
        height: auto;
        padding-bottom: 2rem;
        background-position: center top;
    }
    #picture-title{
        padding-top: 8vh;
        font-size: 2.25rem;
    }
    #me{
        width: 200px;
        margin: 3% auto;
    }
    #AboutPage{
        width: 85%;
        padding: 12px;
    }
    #projectsPage, #hobbiesSection{
        margin-top: 0;
        height: auto;
        padding-top: 2rem;
        padding-bottom: 2rem;
        background-size: cover;
    }
    #hobbiesCarousel{
        width: 100%;
    }
    .carousel-caption-text{
        width: 90%;
    }
}

@media (max-width: 576px) {
    #picture-title{
        padding-top: 6vh;
        font-size: 1.8rem;
    }
    #me{
        width: 140px;
        margin: 2rem auto;
    }
    #AboutPage{
        width: 95%;
        padding: 8px;
    }
    .card{
        min-width: 18rem;
        max-width: 100%;
    }
    .img-fluid{
        height: auto;
        max-height: none;
    }
    .svgIcon{
        display: none;
    }
}

/* Clear any negative margin behavior used for desktop that causes overlap on small screens */
@media (max-width: 768px) {
    #projectsPage, #hobbiesSection {
        margin-top: 0 !important;
    }
}