#wrapper {
    width: 100%;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#header {
    padding: 15px 0;
    background:rgb(216, 186, 53);
    position: fixed;
    width: 100%;
}

main {
    display: flex;
    flex-grow: 1;
    margin-top: 180px;
}

.header_content nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body {
    min-width: 320px;
}

.items {
    display: flex;
    padding: 35px 20px;
}

.burger,
#menu_btn {
    display: none;
}

.items li {
   list-style-type: none;
   margin-left: 12px;
   font-size: 25px;
}

.items li a {
    text-decoration: none;
    color: black;
}

.items li a:hover {
    color: cornsilk;
}

nav img {
    display: flex;
    min-width: 250px;
    padding: 27px 20px;
}

.content {
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
}

.content p {
    font-size: 27px;
    padding: 35px;
    text-align: center;
}

h1 {
    font-size: 35px;
    text-align: center;
}

.list {
    display: flex;
    flex-wrap: wrap;
    padding-right: 40px;
}

.list li {
    display: flex;
    width: calc(100% / 3);
    padding: 10px;
}

.list_box {
    display: flex;
    border: 2px solid black;
    border-radius: 20px 20px;
    flex-direction: column;
    width: 100%;
    padding: 15px;
}

.list_body {
    flex-grow: 1;
}

.list_box img {
    align-self: center;
    width: 130px;
    border-radius: 50% 50%;
    border: 14px solid #c8b8b8;
    overflow: hidden;
    transition: all 0.8s;
}

.list_box img:hover {
    transform: scale(1.2);
}

.list_body p {
    font-size: 20px;
}

h2 {
    margin-bottom: -30px;
}

.list_box a {
    padding: 10px 30px;
    align-self: center;
    border-radius: 20px;
    text-decoration: none;
    background: #7a6586;
    color: white;
}

.list_box a:hover {
    background: #fd644c;
}

aside {
    display: flex;
    justify-content: center;
    min-width: 210px;
    text-align: center;
    padding: 20px;
    font-size: 20px;
}

.one {
    order: -1;
    background: rgb(216, 148, 176);
}

.two {
    background: rgb(95, 161, 223);
}

.holder {
    display: flex;
    flex-wrap: wrap;
    min-width: 300px;
    min-height: 100px;
    border: 2px solid black;
    border-radius: 30px 30px 0 0;
    overflow: hidden;
    margin: 50px auto 0px;
}

.item {
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.item:first-child {
    width: 50%;
    background: #fd644c;
    order: -2;
}

.item:nth-child(2) {
    background: #2977b3;
    order: 1;
}

.item:nth-child(3) {
    background: #663498;
}

.item:nth-child(2), .item:nth-child(3), .item:nth-child(4) {
    width: calc(100% / 3);
}

.item:nth-child(4) {
    background: #057c1f;
    order: 2;
}

.item:last-child {
    width: 50%;
    background: #fda524;
    order: -1;
}

footer {
    display: block;
    margin-top: auto;
    height: 50px;
    text-align: center;
    background:rgb(99, 233, 66);
}

h4 {
    font-size: 20px;
    margin-top: 15px;
}

@media (max-width:1400px) {
    .content {
        display: flex;
        order: -1;
        flex-direction: column;
    }

    main {
        display: flex;
        flex-direction: column;
        margin-top: 150px;
    } 
}

@media (max-width:992px) {
     main {
        display: flex;
        flex-direction: column;
        margin-top: 180px;
    }

    .content {
        display: flex;
        order: -1;
        flex-direction: column;
    }

    .content p {
        font-size: 18px;
        padding: 15px;
        text-align: center;
    }

    .content h1 {
        font-size: 19px;
        text-align: center;
        margin-top: 0;
    }

    .list li {
        display: flex;
        width: calc(100% / 2);
        padding: 10px;
    }

    h2 {
    margin-bottom: -10px;
    }
}

@media (max-width:767px) {
    .menu {
        display: flex;
        justify-content: flex-end;
        flex-grow: 1;
        padding: 0 10px;
    }

    .burger {
        position: relative;
        z-index: 9;
        display: block;
        width: 40px;
        height: 30px;
        font-size: 0;
    }

    .burger:before,
    .burger:after,
    .burger span {
        position: absolute;
        content: '';
        display: block;
        height: 4px;
        width: 40px;
        background: #fff;
        left: 50%;
        transform: translateX(-50%);
        transition: all .8s;
    }

    .burger:before {
        top: 0;
    }

    .burger:after {
        top: calc(100% - 4px);
    }

    .burger span {
        top: 50%;
        margin-top: -2px;
        transition: opacity .5s .5s;
    }

    .menu ul {
        display: block;
        min-height: 100vh;
        position: fixed;
        top: 94px;
        left: -220px;
        width: 220px;
        background:rgb(216, 186, 53);
        transition: left .8s;
    }

    #menu_btn:checked ~ ul {
        left: 0;
        top: 94px;
    }

    #menu_btn:checked ~ .burger:after {
        top: 50%;
        transform: translate(-50%, -50%) rotate(45deg);
    }

    #menu_btn:checked ~ .burger:before {
        top: 50%;
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    #menu_btn:checked ~ .burger span {
        opacity: 0;
        transition: opacity .5s;
    }

    .list > li {
        width: 100%;
        width: 450px;
    }

    nav img {
       max-width: calc(100% / 2);
       padding: 13px 10px;
    }

    .content {
        display: flex;
        order: -1;
        max-width: 690px;
        padding: 0;
        justify-content: space-between;
        flex-direction: column;
    }

    .list li {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    main {
        margin-top: 130px;
    }
}

