@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');

*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}
:root {
    --primary-color : #ddf;
    --secondary-color : rgb(39, 39, 39);
}
body{
    width: 100%;
    height: 100vh;
    background-color: var(--primary-color);
    color: #000;
}

.dark-theme {
    --primary-color : rgb(39, 39, 39);
    /* background-color: ; */
    color: #eee;
}

.gallery{
    min-height: 100%;
    width: 80%;
    display: grid;
    margin: auto;
    justify-items: stretch;
    align-content: center;
    grid-template-rows: repeat(3, 1fr);
    grid-template-columns: repeat(4, 2fr);
    padding: 0.5rem;
    row-gap: 2.5rem;
    column-gap: 2rem;
}

figure{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fdf;
    color: #000;
    padding: 0.5rem;
    border-radius: 1rem;
    max-height: 100%;
    cursor: pointer;
    transition: box-shadow 0.3s ease-in-out;
}

figure:hover{
    box-shadow: 0 0 20px 0 #000;
    background-color: #9da4f5;
    border: 5px solid #010742;
}

#title{
    margin:1rem 0;
    text-align: center;
}

.divide>img.photo{
    width: 300px;
    height: 300px;
    border-radius: 1rem;
    background-size: cover;
    max-width: 100%;
}

.divide{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 1rem;
    width: 100%;
}

.switch {
	display: block;
	position: relative;
  margin: auto; 
	width: 60px;
	height: 30px;
	cursor: pointer;
	overflow: hidden;
}
.switch input {
	position: absolute;
	top: -30px;
	left: -30px;
	width: 0;
	height: 0;
}
.switch input + span {
 	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background: #99b4df;
	border-radius: 20px;
}
.switch input:checked + span {
	background: #346abf;
}
.switch input + span:before {
	content: "";
	display: inline-block;
	position: absolute;
	top: 50%;
	left: 4px;
	width: 22px;
	height: 22px;
	background: white;
	border-radius: 50%;
	transform: translateY(-50%);
	transition: all .3s;
}
.switch input:checked + span:before {
	left: 32px;
}
.dark-btn {
    margin:15px;
    float:right;
}
