*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Roboto;
    /* outline: 1px solid rgb(0, 0, 0); */
}


html { 
    scroll-behavior: smooth;
}

#counter {
    display: flex;
    font-size: .95rem;
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    background: red;
    height: 80px;
    font-size: 1.2rem;
    position: sticky;
    z-index: 999;
    top: 0;
    margin: 0 auto;
}

.navbar_container {
    display: flex;
    justify-content: space-between;
    height: 80px;
    z-index: 1;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 50px;
}

#name {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 2rem;
    cursor: pointer;
    color: rgb(0, 0, 0);
    text-decoration: none;
}

#visit {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    color: rgb(0, 0, 0);
    text-decoration: none;
}


.navbar_menu {
    display: flex;
    align-items: center;
    text-align: center;
    list-style: none;

}

.navbar_link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: black;
    height: 100%;
    padding: 0 1rem;
}

.navbar_link:hover{
    color: white;
    text-decoration: underline;
    transition: all .3s ease;
}

@media screen and (max-width:960px ) {
    .navbar_container {
        display: flex;
        justify-content: space-between;
        height: 80px;
        z-index: 1;
        width: 100%;
        max-width: 1300px;
        padding: 0;
    }

    .navbar_menu {
        display: grid;
        grid-template-columns: auto;
        margin: 0;
        width: 100%;
        position: absolute;
        top: -1000px;
        opacity: 0;
        transition: all .5s ease;
        height: 50vh;
        z-index: -1;
        background-color: #e93333;
    }

    .navbar_menu.active {
        background: red;
        top: 100%;
        opacity: 1;
        transition: all .5s ease;
        z-index: 99;
        font-size: 1.6rem;
    }

    #name {
        padding-left: 25px;
    }

    .navbar_toggle .bar {
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all .3s ease-in-out;
        background: #fff;
    }

    .navbar_tab {
        width: 100%;
    }

    .navbar_link {
        text-align: center;
        padding: 2rem;
        width: 100%;
        display: table;
    }

    #mobile-menu {
        position: absolute;
        top: 20%;
        right: 5%;
        transform: translate(5%, 20%);
    }

    .navbar_toggle .bar {
        display: block;
        cursor: pointer;
    }

    #mobile-menu.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    #mobile-menu.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    #mobile-menu.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/*About section*/

.about {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 700px;
    background-color: #8a9096;
}

.title {
    font-size: 3rem;
    text-align: center;
    height: 150px;
    padding-top: 50px;
    margin-top: 75px;
}

.content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-self: center;
    margin: 0 auto;
    z-index: 1;
    width: 100%;
    height: 100%;
    max-width: 1300px;
    padding-top: 25px;
    padding-bottom: 50px;
}

.my_picture {
    display: flex;
    justify-content: center;
    align-items: center;
}

#Oliver_pic {
    width: 300px;
    height: 300px;
}

.about_text {
    padding: 0 50px;
    height: 100%;
}

.about_text h2 {
    font-size: 4rem;
    padding-bottom: .25rem;
}

.about_text h3 {
    font-size: 2.5rem;
    padding-bottom: .35rem;
}

.about_text p {
    font-size: 2rem;
}

.wavered {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wavered svg {
    position: relative;
    display: block;
    width: calc(127% + 1.3px);
    height: 51px;
}

.wavered .shape-fill {
    fill: red;
}

.wavegrey {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wavegrey svg {
    position: relative;
    display: block;
    width: calc(135% + 1.3px);
    height: 69px;
}

.wavegrey .shape-fill {
    fill: #8a9096;
}

@media screen and (max-width:960px ) {
    .about {
        height: 100%;
    }

    .skills_headers {
        font-size: 1.3rem;
    }

    .slides_navbar {
        justify-content: space-evenly;
    }
}

/*Skills Section*/

.skills_content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-self: center;
    margin: 0 auto;
    z-index: 1;
    width: 100%;
    height: 100%;
    max-width: 1300px;
    padding-top: 15px;
}

.skills {
    position: relative;
    /* display: flex; */
    display: grid;
    grid-template-rows: 1fr 3fr;
    justify-content: center;
    align-items: center;
    height: 1000px;
    /* background-image: url(/images/background.jpg);
    background-size:  100% 100%;
    background-repeat: no-repeat; */
}

#skill_title {
    margin-top: 100px;
}

.skills_container {
    /* align-items: center;
    justify-content: center; */
    display: grid;
    /* height: 100%; */
}

.skills_text {
    font-size: 2.5rem;
    padding: 0 50px;
    padding-bottom: 50px;
}

.skills_text p {
    padding-top: 25px;
}

.skills_visuals {
    display: grid;
    grid-template-rows: repeat(auto-fit, minmax(100px, 1fr));
}

.skills_headers {
    font-size: 1.5rem;
    padding-bottom: 25px;
    text-align: center;
}

.visuals_container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}

.visuals {
    display: grid;
    justify-content: center;
    align-items: center;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
}

.skill_box {
    width: 125px;
    height: 125px;
    display: grid;
    padding: 20px 20px;
    margin: 20px 20px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid #e93333;
    box-shadow: 0px 0px 5px #8a9096;
    background: #ffffff;
    cursor: pointer;
}

.skill_box img {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 7px;
    padding-bottom: 10px;
}

.skill_box p {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 85px;
    font-weight: 700;
}

.skill_box:hover {
    scale: 1.15;
    transition: 0.2s ease-in;
}

/*Popup Section*/

.popup {
    display: grid;
    position: fixed;
    font-size: 1.2rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 20px
        rgba(0, 0, 0, 0.3);
    z-index: 1000;
    visibility: hidden;
    width: 550px;
}

.popup p {
    text-align: center;
    margin-bottom: 20px;
}

.popup button {
    width: 75px;
    margin: auto;
    background-color: #e93333;
}

.close_popup {
    padding: 10px 20px;
    background-color: #4caf50;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s
        ease-in-out;
}

@media screen and (max-width:600px ) {
    .popup {
        width: 300px;
    }
}
/*Projects Section*/

#projects_title {
    margin-bottom: 50px;
    margin-top: 75px;
}

.projects {
    position: relative;
    background-color: #8a9096;
    display: flex;
    align-items: center;
    justify-content: center;
}

.projects_container {
    display: grid;
    grid-template-columns: 1fr;
    padding-bottom: 100px;
}

.slides_container {
    position: relative;
}

.slides {
    display: none;
    width: 480px;
    height: 480px;
    text-align: center;
    margin: auto;
    margin-bottom: 25px;
}

.slide_img {
    border-radius: 10px;
    width: 450px;
    height: 450px;
    border: 1px solid #e93333;
    box-shadow: 0px 0px 5px #8a9096;
}

.slides_navbar {
    display: flex;
    /* align-items: center; */
    justify-content: space-evenly;
}

.prev,
.next {
    cursor: pointer;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: rgb(82, 82, 82);
    font-weight: bold;
    font-size: 20px;
    border-radius: 20%;
    user-select: none;
    -webkit-user-select: none;
    bottom: 0;
}

.circle {
    /* position: absolute; */
    cursor: pointer;
    margin-top: -30px;
    height: 25px;
    width: 25px;
    background-color: #e93333;
    border-radius: 50%;
    display: inline-block;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.circle:hover {
    scale: 1.25;
    transition: 0.2s ease-in;
}

.numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

#slide1 {
    background-image: url(/images/project_slides/slide1.png);
}

#slide1 {
    background-image: url(/images/project_slides/slide2.png);
}

#slide1 {
    background-image: url(/images/project_slides/slide3.png);
}

#slide1 {
    background-image: url(/images/project_slides/slide4.png);
}

.wavewhite {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wavewhite svg {
    position: relative;
    display: block;
    width: calc(115% + 1.3px);
    height: 76px;
    transform: rotateY(180deg);
}

.wavewhite .shape-fill {
    fill: white;
}

/* Contact Section */

.contacts {
    position: relative;
    display: grid;
    grid-template-rows: 1fr;
    background-color: red;
}

.contacts_container {
    display: flex;
    grid-template-columns: 1fr 1fr;
    justify-content: center;
    padding-bottom: 150px;
}

#contact_title {
    margin-top: 75px;
    padding-bottom: 50px;
}

.contact_box {
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 20px;
    margin: 20px 20px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid #e93333;
    box-shadow: 0px 0px 5px #8a9096;
    background: #ffffff;
    cursor: pointer;
}

.contact_box img {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 120px;
    height: 120px;
    padding-bottom: 15px;
}

.contact_box a {
    text-align: center;
    text-decoration: none;
    font-size: 1.5rem;
    color: #000;
    font-weight: 500;
}

.contact_box:hover {
    scale: 1.15;
    transition: 0.2s ease-in;
}

.wavegrey2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wavegrey2 svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 62px;
    transform: rotateY(180deg);
}

.wavegrey2 .shape-fill {
    fill: #8a9096;
}

@media screen and (max-width:1400px ){
    .title {
        font-size: 2.5rem;
    }

    .skills {
        height: 1300px;
    }

    .skills_container {
        height: 1300px;
    }

    .skills_content {
        width: 960px;
        display: grid;
        height: 60%;
        grid-template-columns: 1fr;
    }

    .skill_box {
        margin: 25px auto;
    }
}

@media screen and (max-width:960px ) {
    .title {
        width: 100vw;
    }

    .skills_content {
        width: 100vw;
        display: grid;
    }
    
    .visuals_container {
        width: 100vw;
        grid-template-columns: 1fr;
        justify-content: center;
        align-items: center;
    }

    .visual_box {
        width: 700px;
        margin: 0 auto;
    }

    .skill_box {
        width: 175px;
        height: 175px;
    }

    .skills_text {
        text-align: center;
    }

    .skill_box p {
        font-size: 1.2rem;
    }

    .skills {
        height: 1950px;
    }
}

@media screen and (max-width:700px ) {
    #counter {
        justify-content: center;
    }

    .content {
        display: grid;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about {
        height: 800px;
    }

    .about_text h2 {
        font-size: 2.2rem;
    }

    .about_text h3 {
        font-size: 1.8rem;
    }

    .about_text p {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }

    /* Skills section */

    #skill_title {
        margin-bottom: 40px;
    }

    .skills {
        height: 1600px;
    }

    .skills_container {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
    }

    .skills_headers {
        width: 100vw;
    }

    .skills_text h1 {
        font-size: 2.2rem;
    }

    .skills_text p {
        font-size: 1.8rem;
    }

    .skills_content {
        text-align: center;
    }

    .visuals_container {
        width: 100%;
    }

    .visual_box {
        display: grid;
        grid-template-rows: auto auto;
        width: 100vw;
    }

    .visuals {
        display: grid;
        grid-template-columns: auto auto;
    }

    .skill_box {
        width: 100px;
        height: 100px;
        margin: 30px;
    }

    /* Projects Section */

    .projects_container {
        width: 100vw;
        height: 750px;
    }

    .slides_container {
        align-items: center;
        width: 100vw;
        height: 80vh;
    }

    .slides {
        width: 100vw;
        height: 400px;
    }

    .slide_img {
        width: 300px;
        height: 300px;
    }

    /* Contacts Section */

    .contacts_container {
        display: grid;
        grid-template-columns: 1fr;
    }

    .contact_box {
        justify-self: center;
    }
}

@media screen and (max-width:500px ) {
    .about {
        height: 1000px;
    }

    .skills {
        height: 1800px;
    }
}
