body {
    background-image: linear-gradient(to top, red, white);
    width: 95%;
    margin: 0 auto;
}

header {
    font-size: 15px;
    color: red;
    border-radius: 10px;
    border: dotted 2px red;
    background: white;
    padding: 0px;
    padding-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 10px;
    margin-top: 0px;
    margin-bottom: 10px;
    text-align: left;
    display: flex;
}


/* Стили для лого */
#img_logo {
    width: 150px !important;
    display: inline-block;
    border: 0px;
    margin: 10px;
    border-radius: 10px;
}

#today-past-logo {
    color: black;
    margin-bottom: -15px;
    font-style: italic;
}

#subtitle-site {
    color: black;
    font-size: 14px;
    font-weight: bold;
    margin-top: -10px;
}

nav {
    margin-top: 10px;
    margin-bottom: 10px;
    border: dotted 2px red;
    background-color: white;
    border-radius: 10px;
}

.main-menu {
    display: flex;
    list-style-type: none;
    gap: 20px;
}


main {
    background-color: whitesmoke;
    padding: 10px;
    padding-top: 0px;
    border-radius: 10px;
    border: dotted 2px red;
}

.add-twit {
    text-align: right !important;
}
a {
    color: blue;
    text-decoration: none;
}
a:hover {
    color: red;
}


/*--------------------------------------------*/
/*Теги для вывода текста в списке */
/*--------------------------------------------*/

/*Тег NB!*/
nb {
    display: inline-block;
    background-color: yellow;
    padding: 3px;
    margin: 3px 3px 0px 0px;
}

/*Тег для программного кода*/
code {
    display: inline-block;
    text-decoration: underline;
    font-style: italic;
    margin-left: 1vw;
}

/*Тег для постскриптума*/
ps {
    font-style:italic;
    font-weight: bold;
}

.created_date {
    display: inline-block;
    color: red;
    background-image: linear-gradient(to right, lightblue 30%, lightyellow);
    padding: 5px;
    margin-bottom: -10px;
    border: 0;
    border-radius: 5px;
}
p {
    font-size: 14px;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}


/*--------------------------------------------*/
/*Теги для изображений в списке постов */
/*--------------------------------------------*/
figure {
    display: inline-block;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
    margin-right: 0px;
}
img {
    display: inline-block;
    border: solid 1px red;
    border-radius: 10px;
    margin-right: 5px;
}

figcaption {
    color: grey;
    font-size: 14px;
}



/*-----------------------------------------------*/
/*Подвал*/
/*-----------------------------------------------*/
footer {
    text-align: center;
    font-size: 14px;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    border: dotted 2px red;
    background: white;
    padding: 20px;
    padding-left: 20px;
    margin-top: 10px;
    margin-bottom: 20px; 
    border-radius: 10px;
    /*width: 100%;*/
}

h1.alert {
    color: red;
    font-size: 32px;
    text-align: center;
}

.form-control {
    width: 95%;
}

.twit-input {
    
}


@media (min-width: 768px) {
    body {
        width: 50%;
        margin: auto;
        margin-top: 10px;
    }
}