.fade-in {
    opacity: 0;
    /* Start with 0 opacity */
    transition: opacity 1s ease-in-out;
    /* Transition for opacity change */
}

.fade-in.active {
    opacity: 1;
    /* At the active state, opacity becomes 1 */
}

body {
    background-color: #1c1c1c;
}

.navbar-nav.ms-auto a:hover {
    background-color: rgb(25, 25, 25) !important;
}

.page-container {
    background-color: #1c1c1c;
    /*background-image: url('Black_colour.jpg.webp');*/
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
}

#socials{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;

}

@media (max-width: 820px) {

    .row{
        --bs-gutter-x: 1.5rem;
        --bs-gutter-y: 0rem;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        
    }
    

}

@media (max-width: 991px){ /*for tablets + phones*/
    div .content-wrap{        
        padding: 10px 30px;
        
    }
    .nav-item{
        padding: 3px;
        font-size: 1rem;
    }

    .navbar-nav{
        display: flex;
        align-items: center;
    }
    #socials{
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        width: 35%;

    }
    

    html{
        overflow-x:hidden;
    }

    .navbar{
        width: 100%;
    }
    

}

@media (max-width: 450px) /*for phones*/
{
    .row{
        --bs-gutter-y: -2.5rem;
    }

    .nav-item{
        padding: 3px;
        font-size: 1.25rem;
    }
    .footer-content{
        height: 300px;
        padding-top: 10px;
    }

    .footer-content > h3{

        position: relative;
        top: 20px;
    }
    
    .footer-content > p{
        position: relative;
        top: 0px;
    }

    

    




}

@media (max-width: 700px) /*for long tables*/
{
    
    .long-table{
        table-layout:fixed;
        width:100%;
        overflow-x: scroll;
    }

    .long-table thead tr{
        display: none;
    }
    .long-table tr{
        display: block;
    }
    .long-table th, .long-table td{
        padding: 0.5em;
    }
    .long-table td{
        text-align: right;
        display: block;
        font-size: 1em;
        padding-top: 30px;
        text-align: left;
    }
    .long-table td::before{
        content: attr(data-title)": " ;
        float: left;
        font-size: 1.5rem;
        font-weight: bold;
        padding-right: 3px;

    }
    .long-table td ul{
        padding-top: 15px;
        
    }

    .long-table .table-name{
        font-size: 2rem;
        text-align: right; 
        padding-bottom: 25px;
    }

    

    .long-table td ul li{
        text-align: left;
    }


}

@media ((max-width: 480px)) { /*responsive design for social media icons*/
    #socials{
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        width: 35%;

    }

    #socials > div{
        padding: 0;
        margin: 0;
    }
}

@media ((max-height: 950px) and (min-height: 700px)) /*for iphone X and similar hights*/
{
    .footer-content{
        height: 50vh;
        
    }


    .footer-content > h3{

        position: relative;
        top: -80px;
    }
    
    .footer-content > p{
        position: relative;
        top: -40px;
    }

    #socials{
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        padding: 0;
        margin-bottom: -40px;

    }

}

.nav-link{
    text-align: center;
}

.content-wrap {
    padding-bottom: 100px;
    min-height: 100vh;
}

.ankibutton:hover {
    color: #555 !important;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: white;
    border-radius: 50%;
    opacity: 0.8;
    animation: twinkle 3s infinite;
}

span.text-purple{
    color: #aa77ff;
}
a {
    text-decoration-color: #aa77ff;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.75;
    }
}