* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    height: 60px;
    width: 100%;
    background-color: #333;
    position: relative;
}

header nav {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
}

ul li {
    list-style: none;
    float: left;
    margin: 10px;
}

ul li a {
    color: #fff;
    text-decoration: none;
    text-shadow: 0px 0px 3px black;
    padding: 10px;
}

main {
    height: 100vh;
    width: 100%;
    position: relative;
}

#main {
    height: 100vh;
    width: 100%;
    background-image: url(/images/img1.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

#darken {
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, .7);
    display: flex;
    justify-content: center;
    align-items: center;
}

#container {
    position: relative;
    height: 45vh;
    width: 90%;
    background-color: #333;
    border-radius: 10px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
}

#image {
    min-height: 200px;
    width: 100%;
    background-image: url(/images/img2.jpg);
    background-position: center;
    background-size: cover;
}

#text {
    padding: 20px;
    font-family: sans-serif;
    color: #fff;
}

#apropos {
    font-size: 3em;
    font-family: sans-serif;
    color: brown;
    display: block;
    margin: 10px;
}

#contacte_me_button {
    margin: 10px;
    display: inline-block;
    padding: 10px;
    border: 1px solid #fff;
    border-radius: 5px;
    color: #fff;
    text-decoration: none;
}

.logos {
    height: 50px;
    width: 50px;
    border-radius: 50%;
}

#contact {
    display: flex;
    justify-content: center;
    align-items: center;
}

#competences_container {
    height: 100vh;
    width: 40%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
}

#main_container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    margin-bottom: 10px;
    max-height: auto;
}

.cometences {
    border: 1px solid;
    background-position: center;
    background-size: cover;
    border-radius: 10px;
}

#i1 {
    background-image: url(/images/img3.jpg);
}

#i2 {
    background-image: url(/images/img4.jpg);
}

#i3 {
    background-image: url(/images/img5.jpg);
}

#message_for_competences {
    padding: 10px;
    color: royalblue;
}

#message {
    font-family: 2em;
    font-family: sans-serif;
    color: #333;
}

footer {
    background-color: #333;
    position: relative;
}

@media screen and (max-width:950px) {
    #container {
        height: 36vh;
    }
    #contact {
        position: relative;
        height: 15vh;
    }
    #competences_container {
        height: 100vh;
        width: 90%;
    }
    #main_container {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        position: relative;
        margin-bottom: 10px;
        max-height: auto;
    }
    .cometences {
        border: 1px solid;
        background-position: center;
        background-size: cover;
    }
}

@media screen and (max-width:600px) {
    main {
        background-position: center;
    }
    #apropos {
        font-size: 2em;
        max-width: 2px;
    }
    #container {
        position: relative;
        min-height: 80vh;
        max-height: auto;
        width: 90%;
        background-color: #333;
        border-radius: 10px;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        box-shadow: 0px 0px 5px #fff;
    }
}

@media screen and (max-width:300px) {
    #container {
        min-height: 90vh;
    }
}