body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    color: #333;
}

p {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 1em;
    text-align: justify;
}

header {
    position: relative;
    height: 80px;
    overflow: hidden;
    text-align: center;

    background-color: #007bff; /* Синий */
    display: flex;           /* Используем Flexbox */
    align-items: center;     /* Вертикальное центрирование */
    justify-content: center; /* Горизонтальное центрирование */
}

nav {

    color: white;
    padding: 10px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 5px;
    display: flex;
    justify-content: space-around;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.h2-left {
    text-align: left;
}

div {
    padding: 50px;
    margin: 50px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: justify;
}

.div-made {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-height: 700px;

    overflow: auto;
}

ul {
    display: flex;
    align-items: center; /* Центрирует по вертикали */
    justify-content: center; /* Центрирует по горизонтали, если нужно */
}

.logs {
    margin: 15px;
    height: 37.5px;
    width: 37.5px;
    cursor: pointer; 
}

footer {
    background-color: #007bff; /* Синий */
    color: white;
    padding: 20px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

footer ul li {
    margin: 0 10px;
}

footer i.fab {
    font-size: 1.5em;
    color: white;
}

footer i.fab:hover {
    color: lightblue;
    cursor: pointer;
}

/* Для акцента на отдельные элементы */
.highlight {
    background-color: #4CAF50; /* Зелёный */
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
}

button {
    background-color: #4CAF50; 
    border: none; 
    color: white; 
    padding: 15px 32px; 
    text-align: center; 
    text-decoration: none; 
    display: inline-block; 
    font-size: 16px;
    width: 20%;
    cursor: pointer; 
 
    transition-duration: 0.4s; 
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.26);

    border-radius: 10px;
}

button:hover {
    background-color: #3e8e41; 
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.32); 
}


button:active {
    background-color: #2e6b2f; 
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.38); 
    transform: translateY(1px); 
}

.italic {
    font-style: italic;
}

.bold {
    font-weight: bold;
}

.center-bold {
    text-align: center;
    font-weight: bold;
}

.logo-main {
    text-align: center;
    background-image: linear-gradient(to right, #0D47A1, #1B5E20); /* Тёмно-голубой плавно переходит в тёмно-зелёный */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-size: 350%;
    font-weight: bold;
    line-height: normal;
    letter-spacing: 0.07em;
    margin-bottom: 10px;

}

.banner {
    background-image: linear-gradient(to bottom right, #add8e6, #1e90ff);
    display: flex;

    justify-content: center; /* Центруем по горизонтали */
    align-items: center; /* Центруем по вертикали */
    color: white;

    overflow: auto;
}

.banner h3 {
    font-size: 24px;
    text-align: center;
    line-height: 0.25em;
    letter-spacing: 1px;

}

img {
    height: 15%;
    width: 15%;
    padding: 15px;
}

.banner-href {
    display: inline-block;
    position: relative;
    padding: 1px 20px;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    font-weight: bold;
    font-size: 18px;
}

@media only screen and (max-width: 1299px) {

    img {
        height: 20%;
        width: 20%;
    }

}

@media only screen and (max-width: 1099px) {

    img {
        height: 25%;
        width: 25%;
    }

    .banner h3 {
        line-height: 1em;
    }
}

@media only screen and (max-width: 1020px) {

    img {
        height: 30%;
        width: 30%;
    }

    button {
        background-color: #4CAF50;
        border: none;
        color: white;
        padding: 15px 32px;
        text-align: center;
        text-decoration: none;
        display: inline-block;
        font-size: 16px;
        width: 100%;
        cursor: pointer;

        transition-duration: 0.4s;
        box-shadow: 0 2px 5px 0 rgba(0,0,0,0.26);
    }

    .logo-main {
        text-align: center;
        font-size: 320%;

    }

}

@media only screen and (max-width: 720px) {

    img {
        height: 40%;
        width: 40%;
    }

    .logo-main {
        text-align: center;
        font-size: 290%;

    }



}

@media only screen and (max-width: 600px) {

    .not_important {
        display: none;
    }

    .search {
        width: 100%;
    }

    nav {
        color: white;
        padding: 15px;
    }

    div {
        padding: 10px;
        margin: 20px;
        background-color: white;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    img {
        height: 50%;
        width: 50%;
    }

    .logs {
        margin: 20px;
        height: 35px;
        width: 35px;
    }

    .logo-main {
        text-align: center;
        font-size: 250%;

    }

    .banner h3 {
        line-height: 1.2em;

    }

}

@media only screen and (max-width: 500px) {
    .logo-main {
        text-align: center;
        font-size: 190%;
    }

    img {
        height: 60%;
        width: 60%;
    }
}

@media only screen and (max-width: 400px) {
    .logo-main {
        text-align: center;
        font-size: 160%;
    }

    .logs{
        width: 17%;
        height: 17%;
    }

    .highlight {
        background-color: #4CAF50; /* Зелёный */
        color: white;
        padding: 5px 10px;
        border-radius: 20px;
    }

}

input[name="submit"] {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    color: #ffffff;
    background: linear-gradient(to right, #ffa500, #ff7f50); /* Оранжевый градиент */
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.center-main {
    text-align: center;
    font-size: 11px;

}

.clear {
    display: inline-block;
    padding: 10px;
    border-radius: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,.1);
    background-image: linear-gradient(to right, #ffa500, #ff7f50); /* Оранжевый градиент */
    transition: all 0.3s ease-in-out;
}

.input-clear[type=submit] {
    font-size: 14px;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem 1rem;
    outline: none;
}

.input-clear[name="search"]:focus {
    border-color: #4285F4;
    box-shadow: 0 0 0 1px #4285F4;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 40%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease-in-out;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.like-button {

    background-color: #fff;
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease-in-out;
}

.like-button.active {
    background-color: #ff6b6b;
    color: white;
}

textarea {
    width: 50%;
    height: 520px;
    padding: 15px;
    border-radius: 10px;
    resize: none;
    outline: none;
    transition: all 0.3s ease-in-out;

    /* Фон и тени */
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
    background-image: linear-gradient(to bottom right, #ffffff, #fafafa);

    /* Стили текста внутри поля */
    color: #333;
    font-size: 16px;
    line-height: 1.5;
}

.center-center {
    text-align: center;
}


.post-container {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.post-meta {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9em;
}
.post-content {
    text-align: justify;
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 25px;
}
.post-buttons {
    display: flex;
    gap: 15px;
}
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s;
}
.btn-like {
    background-color: #5252ff;
    color: white;
}
.btn-like:hover {
    background-color: #5252ff;
    color: white;
}
.btn-like.active {
    background-color: #ff6b6b;
}
.btn-next {
    background-color: #4CAF50;
    color: white;
}

.btn-next:hover {
    background-color: #4CAF50;
    color: white;
}
.no-posts {
    text-align: center;
    padding: 40px;
    color: #666;
}
