@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

:root{
    --skin-color: #A39;
    --bg-black-900: #151515;
    --bg-black-100: #222222;
    --bg-black-50: #393939;
    --text-black-900: #ffffff;
    --text-black-700: #e9e9e9;
}

body.dark{
    --skin-color: #A39;
    --bg-black-900: #f2f2fc;
    --bg-black-100: #fdf9ff;
    --bg-black-50: #e8dfec;
    --text-black-900: #302e4d;
    --text-black-700: #504e70;
}


body::-webkit-scrollbar{
    width: 1vw;
}

body::-webkit-scrollbar-thumb{
    border-radius: 20px;
    background: var(--skin-color);
}


body::-webkit-scrollbar-track{
    background: var(--bg-black-900);
}

.tools{
    color: var(--text-black-900);
}


*{
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

.container-img{
    position: relative;
}

.overlay{
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	opacity: 0;
	transition:opacity 0.4s ease-in-out;
	background-color: var(--bg-black-900);
}


.content-img{
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: var(--text-black-900);
	text-align: center;

}

.container-img:hover .overlay{
	opacity: 0.8;
}

/* ======== photo gallery====== */


body{
    background: var(--bg-black-900);
}

.gallary{
    width: 100%;
    text-align: center;
    color: var(--text-black-900);
}



.gallary h1,
.gallary h2{
    font-weight: normal;
    font-size: 35px;
    position: relative;
    margin: 40px 0;
}

.gallary h1::before,
.gallary h2::before{
    content: '';
    position: absolute;
    width: 100px;
    height: 3px;
    background: var(--skin-color);
    bottom: -10px;
    left: 50%;
    transform: translatex(-50%);
    animation: animate 4s linear infinite;
}

@keyframes animate{
    0%{
        width: 100px;
    }
    50%{
        width: 200px;
    }
    100%{
        width: 100px;
    }
}

.top-content{
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg-black-50);
    width: 90%;
    margin: 0 auto 20px auto;
    height: 60px;
    display: flex;
    /* align-items: center; */
    border-radius: 5px;
    box-shadow: 3px 3px 5px var(--bg-black-100) ;
    /* transition: 0.6s; */
}

.top-content h3{
    padding: 0 20px;
    color: var(--skin-color);
    background: var(--bg-black-100);
    height: 100%;
    /* line-height: 60px; */
}


.gallary h2{
    height: 100%;
    line-height: 60px;
    padding: 0 50px;
    /* color: var(--skin-color); */
}


.gallary a{
    display: inline-block;   
    height: 100%;
    padding: 0 10px;
    margin: 0 50px;
    /* line-height: 60px; */
    font-size: 18px;
    color: var(--text-black-900);
    cursor: pointer;
    transition: 0.5s;
}

.gallary a:hover{
    color: var(--skin-color);
}

.photo-gallery{
    width: 90%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
}

.pic{
    position: relative;
    /* height: 230px; */
    height: auto;
    border-radius: 10px;
    /* box-shadow: 3px 3px 5px var(--bg-black-50); */
    cursor: pointer;
    transition: 0.5s;
}

.pic img{
    width: 100%;
    /* height: 100%; */
    border-radius: 10px;
}









/* ================== style switcher =================== */
.switcher{
    height: 90px;
    position: fixed;
    right: 0;
    top: 20px;
    padding: 15px;
    width: 100px;
    /* border: 1px solid var(--bg-black-50); */
    /* background: var(--bg-black-100); */
    z-index: 120;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.switcher .s-icon{
    top: 40px;
    position: absolute;
    height: 40px;
    width: 40px; 
    text-align: center;
    font-size: 20px;
    background: var(--bg-black-100);
    color: var(--text-black-900);
    /* right: 100%; */
    border: 1px solid var(--bg-black-50);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.switcher .s-icon i{
    line-height: 40px; /* centers the moon icon **/
}