@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;1,800;1,900&display=swap');


body{
    transition: 0.3s;
    margin: 0;
    padding: 0;
    background-color: rgb(235, 235, 235);
    font-family: 'Poppins', sans-serif;
    color: rgb(57, 57, 57);
}

h1 {
    font-size: 70px;
    line-height: 70px;
    font-weight: 300;
    margin: 10px 0;
}
 

h2 {
    font-size: 40px;
    line-height: 40px;
    font-weight: 300;
    margin: 10px 0;
    margin: 50px 0 10px 0
}



p {
    margin: 0px;
    font-size: 20px;
}

a {
    color:rgb(4, 104, 255);
    font-size: 20px;
    text-decoration: none;
    font-weight: 200;
     
}

.dark a {
    color:rgb(75, 243, 255)
}
header {
    display: flex;
    justify-content: flex-end;
    padding: 30px

}

.switch{
    width: 80px;
    height: 40px;
    border-radius: 20px;
    background-color: rgb(39, 38, 38);
    position: relative;
}

.flicker{
    width:30px;
    height: 30px;
    border-radius: 15px;
    background-color: rgb(255, 255, 255);
    position: absolute;
    top: 5px;
    left: 5px;
    transition: 0.3s; 
    box-shadow: 
        inset 4px 4px 4px rgb(255, 255, 255), 
        inset -4px -4px 4px rgb(195 193 198/90%);
}

.dark{
    background-color: rgb(57, 57, 57);
    transition: 0.3s;
}

.dark > * {
    color: rgb(255, 255, 255);
}

.moon{
    width: 20px;
    height: 20px;
    border-radius: 10px;
    box-shadow: 4px 4px 0 0 rgb(255, 255, 255);
    position: absolute;
    top: 5px;
    left: 45px;
}

.dark .flicker {
    transform: translateX(40px);

}

.main {
    height: 80vh;
}

.main-text {
    /* width: 50%; */
    padding: 30px;
}

.square {
    width: 98%;
    margin: 1%;
    height: 350px;
    background-color: rgb(255, 255, 255);
    text-align: center;
}

.dark .square {
    background-color: rgb(71,71 ,71);
}


.sub-section {
    display: flex;
    flex-wrap: wrap;
}

footer {
    display: flex;
    justify-content: center;
    padding: 100px 30px;
    background-color: rgb(138, 138, 138);

}

.dark footer {
    background-color: rgb(29, 29, 29);
}

#project1 {
    background-image: url(images/bitcoin_transparent.png);
    background-size: cover;
}
#project2 {
    background-image: url(images/bitcoin.jpeg);
    background-size: cover;
}
#project3 {
    background-image: url(images/bitcoin_transparent.png);
    background-size: cover;
}
#project4 {
    background-image: url(images/bitcoin.jpeg);
    background-size: cover;
}

@media only screen and (min-width: 970px) {
    .main-text{
        width: 50%;
    }
    .square {
        width: 48%;
        margin: 1%;
        height: 600px;
    }
}