* {
    box-sizing: border-box;
}

body {
    margin: 1px;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: large;
}

.container {
    background-color: whitesmoke;
    display: grid;
    height: 100vh;
    grid-gap: 2em;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: 3rem 17.5rem 15rem 25rem 30rem 20rem 20rem 3rem;
    grid-template-areas: 
    "nav nav nav nav nav"
    "pho n n n n"
    "ls pro pro pro pro"
    "ls exp exp exp exp"
    "ls edu edu edu edu"
    "ls oth oth oth oth"
    "ls hob hob hob hob"
    "foot foot foot foot foot";
    text-align: center;
}

.navbar {
    background-color: darkblue;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    grid-area: nav;
}

.headline {
    font-size: 1.5rem;
    margin: 1rem;
}

.navbar-links ul {
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar-links li {
    list-style: none;
    padding: 1rem;
}

.navbar-links li a {
    color: white;
    text-decoration: none;
    display: block;
}

.navbar-links li:hover {
    background-color: lightblue;
}

#photo {
    background-color: whitesmoke;
    grid-area: pho;
}

#photo img{
    padding: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 16rem;
}

.name {
    background-color: whitesmoke;
    grid-area: n;
    align-items: center;
    margin: .5rem;
    padding: .5rem;
}

.name h1 {
    text-align: center;
    font-size: 5rem;
}

.name h3 {
    text-align: center;
    font-size: 2rem;
}

.lang_skills {
    background-color: whitesmoke;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 2px solid black;
    border-radius: 1rem;
    grid-area: ls;
    margin-left: 1px
}

.contact {
    margin-top: 3rem;
    padding: 1rem;
}

.contact p{
    text-align: center;
}

.profile {
    background-color: whitesmoke;
    grid-area: pro;
    border: 2px solid black;
    border-radius: 1rem;
}

.profile p {
    font-size: large;
}

.exp {
    background-color: whitesmoke;
    grid-area: exp;
    border: 2px solid black;
    border-radius: 1rem;
}
.link-btn {
    display: block;
    position: absolute;
    right: 5rem;
    background-color: darkblue;
    color: white;
    text-decoration: none;
    text-align: right;
    border: 1px solid black;
    border-radius: 1rem;
    padding: 1rem;
}

.link-btn:hover {
    background-color: lightblue;
}

.edu {
    background-color: whitesmoke;
    grid-area: edu;
    border: 2px solid black;
    border-radius: 1rem;
}

.other {
    background-color: whitesmoke;
    grid-area: oth;
    border: 2px solid black;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 1rem;
}

.hobbies {
    background-color: whitesmoke;
    grid-area: hob;
    border: 2px solid black;
    border-radius: 1rem;
}

footer {
    text-align: right;
    grid-area: foot;
}

.toggle-button {
    position: absolute;
    top: 1.2rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

.toggle-button .bar {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 10px;
}

/*Laptop view*/
@media (max-width: 1024px) {
    .container {
        background-color: whitesmoke;
        display: grid;
        height: 100vh;
        grid-gap: 2em;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 3rem 17.5rem 15rem 25rem 30rem 80rem 20rem 25rem 3rem;
        grid-template-areas: 
        "nav nav nav"
        "pho n n"
        "pro pro pro"
        "exp exp exp"
        "edu edu edu"
        "ls ls ls"
        "oth oth oth"
        "hob hob hob"
        "foot foot foot";
        text-align: center;
    }
}
/*Tablet view*/
@media (max-width: 800px) {
    .container {
        background-color: whitesmoke;
        display: grid;
        height: 100vh;
        grid-gap: 2em;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 3rem 22rem 15rem 25rem 30rem 80rem 20rem 25rem 3rem;
        grid-template-areas: 
        "nav nav nav"
        "pho n n"
        "pro pro pro"
        "exp exp exp"
        "edu edu edu"
        "ls ls ls"
        "oth oth oth"
        "hob hob hob"
        "foot foot foot";
        text-align: center;
    }
}
/*Smartphone view*/
@media (max-width: 425px) {
    .container {
        display: flex;
        flex-direction: column;
    }
    .profile {
        padding: 1rem;
    }

    .strengths{
       padding: 1rem;
    }

    /*.container:nth-child(1) {order: 1;}
    .container:nth-child(2) {order: 1;}
    .container:nth-child(3) {order: 1;}
    .container:nth-child(4) {order: 2;}
    .container:nth-child(5) {order: 1;}
    .container:nth-child(6) {order: 2;}
    .container:nth-child(7) {order: 2;}
    .container:nth-child(8) {order: 2;}
    .container:nth-child(9) {order: 2;}
    .container:nth-child(10) {order: 2;}*/

    .link-btn {
        display: inline-block;
        position: static;
        background-color: darkblue;
        color: white;
        text-decoration: none;
        text-align: right;
        border: 1px solid black;
        border-radius: 1rem;
        padding: 1rem;
        margin: 2px;
    }

    .toggle-button {
        display: flex;
    }

    .navbar-links {
        display: none;
        width: 100%;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .navbar-links ul {
        width: 100%;
        flex-direction: column;
    }

    .navbar-links li {
        text-align: center;
    }

    .navbar-links.active {
        display: flex;
    }
}