*, *::before, *::after { box-sizing: border-box; } /* WRAPPER */ .wrapper{ display: flex; flex-direction: column; min-height: 100vh; } /* HEADER */ .header{ background: rgb(222, 184, 0); } .container-logo-nav{ padding: 15px; display: flex; justify-content: space-between; align-items: center; } .logo{ width: 220px; height: 70px; } li, a{ text-decoration: none; color: rgb(0, 0, 0); display: inline; margin-right: 3px; font-size: 20px; } li>a:hover{ color: rgb(255, 255, 255); } /* MAIN */ .main{ display: flex; text-align: center; flex-grow: 1; } .block-center{ order: 2; padding-top: 20px; } .block-center>p{ padding-top: 20px; font-weight: bold; font-size: 20px; } .flex-boxs{ margin: 30px 30px 5px; display: flex; justify-content: space-around; flex-wrap: wrap; } .box{ border: 2px rgb(128, 128, 128) solid; border-radius: 20px; width: 285px; height: 350px; padding-top: 15px; margin-bottom: 25px; display: flex; flex-direction: column; align-items: center; } .box:hover{ transform: scale(1.1); background: rgb(16, 157, 251); color: rgb(255, 255, 255); box-shadow: 3px 5px 5px black; } .img-box{ height: 100px; border: 10px rgb(208, 187, 187) solid; border-radius: 100%; } h1{ font-size: 20px; font-weight: bold; padding-top: 10px; } .box>p{ padding: 20px 20px 0 ; flex-grow: 1; } .box>a{ border: 1px rgb(112, 80, 118) solid; border-radius: 20px; background: rgb(112, 80, 118); width: 60px; height: 30px; display: inline-block; padding-top: 3px; margin-bottom: 10px; color: rgb(255, 255, 255); font-weight: bold; } .box>a:hover{ color: rgb(255, 255, 0); transform: scale(1.4); background: rgb(0, 128, 0); border: 1px rgb(0, 128, 0) solid; width: 70px; box-shadow: 3px 3px 5px rgb(0, 0, 0); } .aside-left{ background: rgb(215, 153, 187); width: 210px; order: 1; padding-top: 10px; } .aside-right{ background: rgb(148, 178, 201); width: 210px; order: 3; padding-top: 10px; } /* Уровень 3 */ .holder{ border: 2px black solid; border-radius: 15px 15px 0 0; width: 1138.5px; height: 104px; display: flex; flex-wrap: wrap; justify-content: space-between; } .item:first-child{ background: #fd644d; border-radius: 15px 0 0 0; width: 567.3px; height: 50px; order: 1; padding-top: 15px; } .item:nth-child(2){ background: #4983b2; width: 376.3px; height: 50px; order: 4; padding-top: 15px; } .item:nth-child(3){ background: #663797; width: 379px; height: 50px; order: 3; padding-top: 15px; } .item:nth-child(4){ background: #0e7f12; width: 379px; height: 50px; order: 5; padding-top: 15px; } .item:last-child{ background: #fda429; border-radius: 0 15px 0 0; width: 567px; height: 50px; order: 2; padding-top: 15px; } /* FOOTER */ .footer{ background: rgb(11, 236, 128); text-align: center; height: 30px; padding-top: 7px; }