@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300&display=swap');

@media screen and (max-width: 1060px) {
    #primary { width:67%; }
    #secondary { width:30%; margin-left:3%;}  
}

@media screen and (max-width: 768px) {
    #primary { width:90%; }
    #secondary { width:100%; margin:0; border:none;}
}

@media (min-width: 700px) {
    .navbar-toggler {
        display: none;
    }
    .nav-normal {
        display: block;
    }
    .nav-collapsed li {
        float: right;
        margin: 5px 30px 5px 30px;
    }
}

@media (max-width: 699px) {
    .navbar-toggler {
        display: block;
        margin-right: 15px;
    }
    .nav-normal {
        display: none;
    }
    .nav-collapsed li {
        margin: 7px 10px 7px 10px;
    }
}

@media (min-width: 1000px) {
    .cards {
        margin: 15px;
    }
    .projects_card {
        margin: 15px 45px;
    }
    #hero {
        padding-top: 12%;
    }
}

@media (max-width: 999px) {
    .ma_name {
        margin-left: 10%;
        margin-bottom: 55px;
        padding-top: 255px;
    }
    .cards {
        margin: 15px 5px;
    }
    .projects_card {
        margin: 15px 5px;
    }
    #hero {
        padding-top: 6%;
    }
}

* {
    padding: 0;
    margin: 0;
}

html {
    font-size: 10px;
    font-family: 'Open Sans', sans-serif;
}

a {
    text-decoration: none;
}

body {
    margin: 0;
    padding: 0;
    background-color: #f7f3f3;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: -1;
  }

#header {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
}

#header .header {
    min-height: 7vh;
    background-color: rgba(31, 30, 30, 0.24);
}

.brand {
    margin-bottom: 5px;
}

.brand a {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
}

a img {
    width: 32px;
    height: 23px;
}

span {
    color: rgb(224, 64, 96);
}

.navbar-toggler img {
    width: 30px;
    height: 30px;
}

.nav-collapsed {
    display: block;
}

#header .nav-list ul {
    margin-right: 30px;
    margin-left: 20px;
    list-style: none;
    width: 100%;
    height: 100%;
}

.nav-normal li {
    float: right;
    margin: 5px 30px 5px 30px;
}

#header .nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    max-width: 1300px;
    padding: 0 0 0 35px;
}

#header .nav-list ul a {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: .2rem;
    text-decoration: none;
    color: white;
    display: block;
}

.contain {
    height: 100%;
    width: 100%;
    z-index: 1;
    margin-bottom: 7%;
    padding-bottom: 4%;
    position: static;   
}

#skills, #projects, #contact {
    padding-top: 5%;
}

.inner {
    margin: auto;
}

.ma_name {
    margin-left: 14%;
    margin-bottom: 45px;
}  

.ma_name h1 {
    font-size: 6rem;
    color: black;
}

.ma_name p {
    margin-top: 40px;
    font-size: 2.5rem;
}

.cubes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.cards {
    height: 370px;
    width: 250px;
    border: 1px solid black;
}

.icon {
    margin: 20px auto;
    height: 24%;
    width: 35%;
    border-radius: 50%;
    background-size: cover;
}

.law {
    background-image: url(/imgs/auction.png);
}

.code {
    background-image: url(/imgs/laptop.png);
}

.data {
    background-image: url(imgs/statistics.png);
}

.description {
    text-align: center;
    padding: 0 8px;
}

h3 {
    font-size: 2.3rem;
}

.description p {
    font-size: 1.7rem;
}

h2 {
    font-size: 4.5rem;
}

.sect_title {
    text-align: center;
    padding-top: 40px;
    margin-bottom: 50px;
}

.lang_logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.lang_logos img {
    width: 80px;
    height: 80px;
    filter: grayscale(1) opacity(80%);
    border-radius: 20%;
}

.lang_logos .imgs {
    margin: 20px 45px;
    border-radius: 50%;
    padding: 12px;
    transition: box-shadow .2s; 
}

.lang_logos .imgs:hover {
    box-shadow: 0 0 15px rgba(241, 13, 59, 0.384),
    0 0 60px rgba(241, 13, 59, 0.712);
}

.github {
    background-image: url(/imgs/github.png);
}

.disciplinapp {
    background-image: url(/imgs/stopwatch.png);
}

.projects_card {
    height: 370px;
    width: 250px;
    border: 1px solid black;
    transition: transform .2s;
}

.projects_card:hover {
    -webkit-box-shadow: 0px 8px 15px 7px rgba(97, 97, 97, 0.69);
    box-shadow: 0px 8px 15px 7px rgba(97, 97, 97, 0.69);
    transform: scale(1.1);
    cursor: pointer;
}

.contact_form {
    width: 80%;
    height: 300px;
    margin-top: 50px;   
}

.form_label {
    font-size: 15px;
}