/* обще */

* {
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.header {
    width: 60%;
    height: 30vh;
    background-color: rgb(54, 184, 171);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.logo {
    font-size: 30px;
}

.nav {
    margin-top: 20px;
    width: 60%;
    height: 40%;
    background-color: cornflowerblue;
    border-radius: 25px;
    display: flex;
    justify-content: center;
}

.nav ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.nav ul li {
    background-color: rgb(110, 82, 136);
    padding: 8px;
    width: 20%;
    border-radius: 16px;
    list-style: none;
    margin: 1em 1.5em;
    cursor: pointer;
}

.nav ul li a {
    text-decoration: none;
    font-size: 20px;
    color: white;
}

.footer {
    margin-top: 40px;
    width: 60%;
    height: 15vh;
    background-color: rgb(54, 184, 171);
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.footer p {
    font-size: 19px;
}

hr {
    margin: 0 auto;
    width: 70%;
    border: 2px dashed;
    border-color: black
}


/* Home */
.wrapper-home {
    margin-top: 40px;
    width: 60%;
    display: flex;
    justify-content: space-between;
}

.left-wrapper {
    padding: 10px;
    width: 22%;
    border-radius: 15px;
    background-color: rgb(173, 175, 176);
}

.right-wrapper {
    padding: 10px;
    width: 72%;
    border-radius: 15px;
    background-color: rgb(173, 175, 176);
}

.update {
    padding: 15px;
    border: 3px solid black;
    border-bottom-left-radius: 15px;
    border-top-left-radius: 15px;
    width: 70%;
    max-height: 200px;
    overflow-y: auto;
}


/* Projects */
.wrapper-projects {
    border-radius: 15px;
    margin-top: 40px;
    padding: 30px 5px;
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-self: center;
    align-items: center;
    background-color: rgb(173, 175, 176);
}

.wrapper-projects h1,
h2 {
    margin: 7px;
    display: flex;
    justify-self: start;
    align-self: start;
}

.overflay {
    background-color: rgb(167, 209, 236);
    margin: 5px;
    border-radius: 10px;
}

.overflay-fon {
    background-color: rgba(0, 0, 0, 0.423);
    width: 300px;
    height: 80px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.overflay a {
    text-align: center;
    text-decoration: none;
    color: white;
    font-size: 25px;
}

/* Links */
.wrapper-links {
    border-radius: 15px;
    margin-top: 40px;
    /* padding: 30px; */
    width: 60%;
    display: flex;
    justify-content: space-between;
    align-items: start;
    background-color: rgb(173, 175, 176);
}

.div-links {
    margin: 30px 15px;
    width: 49%;
}

.div-resource {
    margin: 30px 15px;
    width: 49%;
}

.card {
    border: 2px dashed black;
    padding: 5px;
    border-radius: 10px;
}



/* Blog */
.wrapper-blog {
    border-radius: 15px;
    margin-top: 40px;
    width: 60%;
    background-color: rgb(173, 175, 176);

}

.wrapper-blog h1 {
    margin: 15px;
    text-align: center;
}

#blog {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.post {
    /* border: 1px solid #ddd; */
    width: 80%;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 8px 19px rgba(0, 0, 0, 0.1);
}

.post img {
    width: 100%;
    border-radius: 10px;
    margin: 10px 0;
}

.post h2 {
    margin: 0;
    color: #333;
}

.post p {
    color: #555;
    line-height: 1.5;
}

.date {
    color: gray;
    font-size: 0.9em;
}

/* gallery */

.wrapper-gallery {
    border-radius: 15px;
    margin-top: 40px;
    width: 60%;
    background-color: rgb(173, 175, 176);
}

.wrapper-gallery section {
    margin: 15px;
    /* display: flex;
    flex-direction: column;
    align-items: start; */
}

.w-h {
    border: 3px dashed black;
    border-radius: 15px;
    padding: 20px;
    background-color: rgb(241, 230, 165);
    margin: 20px 0;
}

#grid {
    margin-top: 20px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 5px;
}

#grid div {
    background-color: blanchedalmond;
    width: 20px;
    height: 20px;
    border-radius: 35px;
}