* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto';
    margin: 20px;
    scroll-behavior: smooth;

    margin-bottom: 0;
}

.top {
    display: flex;
    justify-content: space-between;
    align-items: center;

    background-color: #e4f9f5;
}

.top-text {
    margin-left: .9vw;
    font-family: 'Montserrat';
    font-size: 20px;
    font-weight: bold;
    animation: tilt 1.5s ease;
}

@keyframes tilt {
    from {transform: rotate(30deg);}
    to {transform: rotate(-30deg);}
}

.list {
    display: flex;
    width: 30vw;
    justify-content: space-around;
}

@media only screen and (max-width: 900px) {
    .list {transform: translateX(-35px)}
}

@media only screen and (max-width: 705px) {
    .list { transform: translateX(-45px)}
}

@media only screen and (max-width: 570px) {
    .list { transform: translateX(-55px)}
}

@media only screen and (max-width: 500px) {
    .list {transform: translateX(-72px)}
}

.list-item {
    display: inline;
    text-decoration: none;
    padding: 5px;
}

.list-item:hover {
    background-color: azure;
}

p > a {
    text-decoration: none;
    color: black;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}

.header-img {
    width: 150px;
    height: 150px;
    border-radius: 100%;
}

.header-text {
    margin-top: 10px;
    font-size: 40px;

    font-family: 'Montserrat';
}

#skills {
    background: #e4f9f5;
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
}

@media only screen and (min-width: 601px) and (max-width: 670px) {
    #skill {
        flex-direction: column;
        align-content: center;
    }
}

@media only screen and (max-width: 600px) {
    #skills {
        flex-direction: column;
        align-items: center;
    }
}

.skill-card {
    background: wheat;
    margin: 50px;
    padding: 10px;
    flex-grow: 1;
    width: 25vw;
    overflow: hidden;
    flex-basis: 25%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.skill-p {
    text-align: center;
}

@media only screen and (max-width: 691px) {
    .skill-prof {
        font-size: 15px;
    }
}

@media only screen and (min-width: 601px) and (max-width: 670px) {
    .skill-card {
        min-width: 60%;
    }
}

@media only screen and (max-width: 600px) {
    .skill-card {
        min-width: 60%;
    }
}


#education {
    display: flex;
    flex-wrap: wrap;
    margin-top: 50px;
    padding: 10px;
    background: #e4f9f5;
}

.edu1 {
    width: 50%;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.edu2 {
    width: 50%;

    display: flex;
    flex-direction: column;
    align-items: center;
}

@media only screen and (max-width: 540px) {
    .edu1-h1 {
        font-size: 20px;
    }

    .edu2-h1 {
        font-size: 20px;
    }
}

@media only screen and (max-width: 460px) {
    .edu1-h1 {
        font-size: 15.5px
    }

    .edu2-h1 {
        font-size: 15.5px;
    }

    .edu1-name {
        font-size: 12px;
    }
    .edu2-name {
        font-size: 12px;
    }

    .edu1-date {
        font-size: 12px;
    }

    .edu2-date {
        font-size: 12px;
    }
}


.edu1-img {
    width: 150px;
    height: 150px;
    border-radius: 100%;
    float: left;
    margin-right: 30px;
    padding: 20px;
}


.edu2-img {
    width: 150px;
    height: 150px;
    border-radius: 100%;
    float: left;
    margin-right: 30px;
    padding: 20px;

}

.details {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#projects {
    margin-top: 50px;
    background: #e4f9f5;
}

@media only screen and (max-width: 670px) {
    
}
/* 
.projects-img{ 
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease-out;
}.projects-img1 {
    grid-row: 1 / span 4;
    grid-column: 1 / span 4;
}.projects-img2 {
    grid-row: 5 / 8;
    grid-column: 1 / span 2;
}.projects-img3 {
    grid-column: 5 / 7;
    grid-row: 1 / 3;
}.projects-img4 {
    grid-column: 6 / 9;
    grid-row: 4 / 8;
}.projects-img5 {
    grid-row: 5 /8;
    grid-column: 3 / span 3;
}.projects-img6 {
    grid-row: 1 / span 3;
    grid-column: 7 / 9;
} */

#contact {
    display: grid;
    place-items: center;
    grid-template-columns: repeat(9, 1fr);
    background: black;
    margin-left: -20px;
    margin-right: -20px;
    min-height: 45px;
}

#contact > div > a {
    text-decoration: none;
    color: white;
}

#contact > div:hover {
    animation: tilt 2s infinite;
}

@keyframes tilt {
    from {transform: rotate(30deg);}
    to {transform: rotate(-30deg);}
}

.twitter {
    grid-column: 2 / 3;
}

.linkedin {
    grid-column: 4 / 5;
}

.github {
    grid-column: 6 / 7;
}

.mail {
    grid-column: 8 / 9;
}

.up {
    position: fixed;
    bottom: 10px;
    right: 10px;
    font-size: 40px;
    height: 40px;
}

.up > a {
    text-decoration: none;
}

.gallery-image {
    text-align: center;
}

.gallery-img {
    width: 70%;
    height: 70vh;
    object-fit: contain;
}

@media only screen and (max-width: 600px) {
    .gallery-img {
        width: 90%;
        height: 55vh;
    }
}