@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Poppins:wght@200&family=Roboto:wght@300&display=swap');

html {

}

body {
    transition: 0.3s;
    min-height: 100%;
    width: 100%;
    margin: 0px;
    padding: 0;
    background-color:  rgb(255, 255, 255);
    font-family: 'Poppins', sans-serif;
    color: rgb(202, 202, 202);
    background: url(images/back.JPG) no-repeat center center fixed; 
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

h1 {
    font-size: 70px;
    line-height: 70px;
    font-weight: 700;
    margin: 10px 0;
}

h2 {
    font-size: 40px;
    line-height: 40px;
    margin: 10px 0;
}

p {
    margin: 0px;
    font-weight: 700;
    font-size: 30px;
}

a {
    color: rgb(202, 202, 202);
    font-size: 20px;
    text-decoration: none;
    font-weight: 100;
}

.dark a {
    color: rgb(71, 71, 71);
}

.square h2 {
    margin: 50px 0 10px 0;
}

header {
    display: flex;
    justify-content: flex-end;
    padding: 30px;
}

.switch {
    width: 60px;
    height: 30px;
    border-radius: 20px;
    background-color: rgb(44, 44, 44);
    position: relative;
}

.flicker {
    width: 20px;
    height: 20px;
    border-radius: 10px;
    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;
}

.moon {
    width: 15px;
    height: 15px;
    border-radius: 10px;
    box-shadow: 4px 4px 0 0 rgb(255, 255, 255);
    position: absolute;
    top: 5px;
    left: 35px;
}

.dark .flicker {
    transform: translateX(30px);
}

.dark > * {
    color: rgb(255, 255, 255);
}

.main {
    height: 80vh;
    display: flex;
    flex-direction: row;
}

.main-text {
    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;
}

.hero-image {
    position: relative;
    width: 50%;
    height: 350px;

}

.cube {
    position: absolute;
    width: 80px;
    height: 80px;
/*     background-color: pink; */
    transform: rotate(-25deg) skew(25deg);
}

.cube::before {
    position: absolute;
    content: "";
    width: 21px;
    height: 100%;
    transform: skewY(-45deg);
    left: -20px;
    bottom: -10px;
}

.cube::after{
    position: absolute;
    content: "";
    width: 100%;
    height: 21px;
    transform: skewX(-45deg);
    left: -10px;
    bottom: -20px;
}

#IT {
    left: 100px;
    bottom: 100px;
    background-image: url("images/code.png");
    background-size: cover;
    background-color: rgb(44, 44, 44);
    box-shadow: -60px 60px 20px rgb(50 50 50/ 10%);

}

#IT::before {
    
    background-color: rgb(184, 184, 184);
    
}

#IT::after {
    background-color: rgb(105, 105, 105);
}

.dark .IT {
    box-shadow: -60px 60px 20px rgb(255 255 255/ 30%);
}

#velo {
    left: 250px;
    bottom: 240px;
    background-image: url("images/code.png");
    background-size: cover;
    background-color: rgb(154, 46, 187);
    box-shadow: -100px 100px 20px rgb(50 50 50/ 10%);

}

#velo::before {
    background-color: rgb(219, 116, 250);
}

#velo::after {
    background-color: rgb(226, 162, 252);
}

#gaming {
    left: 450px;
    bottom: 200px;
    background-image: url("images/code.png");
    background-size: cover;
    background-color: rgb(0, 168, 173);
    box-shadow: -40px 40px 20px rgb(50 50 50/ 10%);

}

#gaming::before {
    background-color: rgb(45, 214, 226);
}

#gaming::after {
    background-color: rgb(147, 248, 248);
}

#cook {
    left: 350px;
    bottom: 40px;
    background-image: url("images/code.png");
    background-size: cover;
    background-color: rgb(235, 16, 205);
    box-shadow: -80px 80px 20px rgb(50 50 50/ 10%);

}

#cook::before {
    background-color: rgb(240, 53, 209);
}

#cook::after {
    background-color: rgb(250, 145, 232);
}

footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    justify-content: center;
    text-align: center;
    padding: 50px 30px;
    
    background-color:  rgb(27, 27, 27);
}

.dark footer {
    background-color:  rgb(136, 136, 136);
}

@media only screen and (min-width: 970px) {
    .main-text {
        width: 50%;
    }
    .square {
        width: 48%;
        margin: 1%;
        height: 600px;
    }
}