/* generics */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif !important;
}
:root{
    --sidebar: rgb(219, 219, 219);
    --xs: 0;
    --sm: 576px;
    --md: 768px;
    --lg: 992px;
    --xl: 1200px;
    --xxl: 1400px;

    --cursorTop: -200px;
    --cursorleft: -200px;
}
body{
    background-color: #333 !important;
    color: white;
    overflow-x: hidden;
    background-image: url(../resources/img/bg.png);
    background-repeat: no-repeat;
    background-size: cover;
}

ul{
    padding: 0 !important;
}

li{
    list-style: none;
}

a{
    text-decoration: none !important;
}
a:hover{
    color: white;
}

::-webkit-scrollbar {
    width: 7px;
}
::-webkit-scrollbar-track {
    background: transparent; 
}
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15); 
    border-radius: 2rem;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5)
} 

section{
    min-height: 0;
}

.randCursor{
    background-image: url(../resources/img/cursor.webp);
    background-repeat: no-repeat;
    background-size: contain;
    height: 20px;
    aspect-ratio: 1/1;
    position: fixed;
    top: var(--cursorTop);
    left: var(--cursorleft);
    transition: all 1500ms ease-in-out;
}


#bot{
    height: 500px;
    width: 90vw;
    scale: .35;
    position: absolute;
    right: 0;
    transform: translateY(-80%);
}
input[type="number"]::-webkit-inner-spin-button{
    display: none;
}

input[type="number"]{
    -moz-appearance: textfield;
}
/* custom scrollbar */
#scrollbar, #checkpoint{
    position: fixed;
    top: 0;
    right: .5rem;
    height: calc(50vh - 20px);
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 300ms ease;
}
.scrollbar-thumb{
    height: 20px;
    width: 20px;
    border-radius: 50%;
    border: 3px solid var(--sidebar);

    position: absolute;
    top: 0px;
}
.scrollbar-top{
    width: 3px;
    border-radius: 2rem;
    background-color: var(--sidebar);
    
    position: absolute;
    top: 0px;
}

.scrollbar-bottom{
    width: 3px;
    border-radius: 2rem;
    background-color: var(--sidebar);
    
    position: absolute;
    bottom: -20px;
    opacity: .3;
}

#checkpoint{
    right: auto;
    left: .5rem;
    display: flex;
    justify-content: space-between;
}

.checkpoint-anchor{
    height: 20px;
    width: 20px;
    border-radius: 50%;
    border: 3px solid var(--sidebar);
    position: relative;
    opacity: .5;
    transition: all 300ms ease;
}

.active-anchor{
    opacity: 1;
}

.checkpoint-anchor > svg{
    fill: rgb(255, 255, 255, 0);
    width: 20px;
    position: absolute;
    top: 50%;
    right: 50%;
    translate: 50% -50%;
}

.active-anchor > svg{
    fill: rgb(255, 255, 255, 1);
    width: 20px;
    position: absolute;
    top: 50%;
    right: calc(-100% - 5px);
    translate: 50% -50%;
    transition: all 300ms ease;
}

.checkpoint-line{
    width: 3px;
    border-radius: 2rem;
    background-color: var(--sidebar);
    height: calc((100% - 100px)/2);
    opacity: .3;
}
video{ 
    position: fixed; 
    inset: 0; 
    mix-blend-mode: soft-light;
    z-index: -1;
    opacity: .7; 
}
/* home */
#home .row{
    height: auto;
    margin-top: 15rem;
}

.home-icon svg{
    height: 250px;
    transform: translateY(-40px);
}

.section-title{
    font-size: 3rem;
    font-weight: 500;
}
.section-medium{
    font-size: 1.7em;
    font-weight: 100;
    opacity: .8;
}
.section-text{
    font-size: 1rem;
    font-weight: 300;
    margin-top: 1rem;
    opacity: .5;
}

.tag{
    padding: .3rem .5rem;
    border-radius: 20rem;
    margin-right: .5rem;
    backdrop-filter: blur(10px);
    background-color: rgba(53, 53, 53, 0.322);
    filter: brightness(200%);
    font-size: .8rem;
}

#tagSection{
    position: absolute;
}
/* about */
#about{
    margin-top: 20rem;
}
.about-card{
    height: 450px;
    border-radius: 1rem;
    box-shadow: 6px 4px 20px 5px rgba(0, 0, 0, 0.2);
}
.carousel{
    position: absolute;
    top: -300px;
    overflow: hidden;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    margin-bottom: 1rem !important;
}
.carousel-card{
    height: 100px;
    border-radius: .6rem;
    background-color: rgb(231, 231, 231);
    color: rgb(70, 70, 70);
    padding: 1rem;
    transition: 300ms ease-in-out;
}
.carousel-card-title{
    text-decoration: none;
    font-size: 1.1rem;
    color: rgb(70, 70, 70);
    font-weight: 500;
}
.carousel-card-text{
    font-size: .5rem;
}
.carousel-card-icon img{
    margin: 9px 9px 0 0;
    height: 20px;
    filter: grayscale(.8);
}
.carousel-card-content{
    width: 250px;
    
}

/* contact */

#submit:hover{
    color: rgb(170, 61, 61) !important;
}
    
    
/* md */
@media (min-width: 768px) {
    #bot{
        height: 500px;
        width: 100vw;
        scale: .35;
        position: absolute;
        right: -30%;
        transform: translateY(-100%);
    }
}
/* lg */
@media (min-width: 992px) {
    #bot{
        height: 500px;
        scale: .6;
        position: absolute;
        right: 0;
        transform: translateY(-120%);
    }
    section{
        min-height: 100vh;
    }
    
    /* custom scrollbar */
    #scrollbar, #checkpoint{
        position: fixed;
        top: 0;
        right: 4rem;
        height: calc(50vh - 20px);
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        z-index: 99;
        display: flex;
        flex-direction: column;
        align-items: center;
        transition: all 300ms ease;
    }
    #checkpoint{
        right: auto;
        left: 4rem;
    }
    .scrollbar-top{
        width: 3px;
        border-radius: 2rem;
        background-color: var(--sidebar);
        position: absolute;
        top: 0px;
    }

    .scrollbar-bottom{
        width: 3px;
        border-radius: 2rem;
        background-color: var(--sidebar);
        position: absolute;
        bottom: -20px;
        opacity: .3;
        
    }
    
    /* home */
    #home .row{
        height: auto;
        margin-top: 11rem;
    }
    .home-icon{
        height: 500px!important;
    }
    
    .home-icon svg{
        height: 100%;
        transform: translateY(30px);
    }
    
    .section-title{
        font-size: 4.5rem;
        font-weight: 500;
    }
    .section-medium{
        font-size: 2rem;
        font-weight: 100;
        opacity: .8;
    }
    .section-text{
        font-size: 1rem;
        font-weight: 300;
        margin-top: 1rem;
        opacity: .5;
    }
    
    /* about */
    #about{
        margin-top: 2rem;
    }
    .about-card{
        height: 800px;
        border-radius: 1rem;
    }
    .carousel{
        position: absolute;
        top: -450px;
        overflow: hidden;
        width: 100%;
        padding: 0 !important;
        margin: 0 !important;
        margin-bottom: 1rem !important;
    }
    .carousel-card{
        height: 150px;
        border-radius: .5rem;
        background-color: rgb(231, 231, 231);
        padding: 1rem;
        transition: 300ms ease-in-out;
    }
    .carousel-card-title{
        text-decoration: none;
        font-size: 1.8rem;
        font-weight: 500;
    }
    .carousel-card-text{
        font-size: .6rem
    }
    .carousel-card-icon{
        width: 100px;
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }
    .carousel-card-icon img{
        height: 50px;
        margin: 0;
    }
    .carousel-card-content{
        width: 250px;
        
    }
    
    /* projects */
    
    
}

@media (min-width: 1200px) {
    #bot{
        height: 500px;
        width: 100vw;
        scale: .5;
        position: absolute;
        right: -40%;
        transform: translateY(-130%);
    }
}