* {
    box-sizing: border-box;
}
html {
    font-size: 14px;
    scroll-behavior: smooth;
}

body {
    width: 95%;
    margin: auto;
    margin-top: 10px;
    background-image: linear-gradient(to top, red, pink, white);
    font-size: 1em;    
}

header {
    font-size: 1em;
    color: red;
    border-radius: 10px;
    border: dotted 1px red;
    background: white;
    padding: 0px;
    /*padding: 5px 5px 5px 5px;*/
    margin-top: 0px;
    margin-bottom: 10px;
    text-align: left;
    display: flex;
}

/* Эффект для целевого твита */
.twit-card:target {
    animation: highlight-fade 2s ease-out;
    a.link-twit-id {
        color: red;
    }
}

/* Настройка анимации */
@keyframes highlight-fade {
    0% {
        background-color: #fff3cd; /* Светло-желтый цвет Bootstrap */
        border-color: #ffecb5;
        transform: scale(1.01);     /* Легкое увеличение для акцента */
        box-shadow: 0 0 15px rgba(255, 193, 7, 0.4);
    }
    70% {
        background-color: #fff3cd; /* Удерживаем цвет чуть дольше */
    }
    100% {
        background-color: transparent; /* Плавно возвращаем к прозрачному/исходному */
        transform: scale(1);
        box-shadow: none;
    }
}

#logo {
    display: inline-block;
    width: 35%;
    padding: 10px;
}

#header {
    width: 65%;
    margin-right: 10px;
}

#site-title {
    font-size: 2rem;
}

/* Стили для лого */
#img-logo {
    width: 100% !important;
    border-radius: 10px;
}

#today-past-logo {
    color: black;
    margin-bottom: -15px;
    font-size: 0.9em;
    text-align: right;
}

#subtitle-site {
    color: black;
    font-size: 0.9em;
    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: white;
    padding: 10px;
    padding-top: 0px;
    border-radius: 10px;
    border: dotted 2px red;
}

.add-twit {
    text-align: right !important;
}
.form-check-input {

}
a {
    color: blue;
    text-decoration: none;
}
a:hover {
    color: red;
}

a.link-twit-id {
    color: black;
}

a.link-twit-id:hover {
    color: yellow;
}

a.link-twit-id:target {
    color: red;
}


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

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

/*Тег для программного кода*/
pre, code {
    all: unset;
    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: 1em;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}


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

figcaption {
    color: grey;
    font-size: 1em;
}

#surprised-cat{
    display: block;
    width: 50% !important;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    border: 0px;
    border-radius: 1000px;
}

ul {
    font-size: 14px;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
li {
    padding: 0px;
    margin: 0px;
    line-height: 0.2em;
}
/*-----------------------------------------------*/
/*Подвал*/
/*-----------------------------------------------*/
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: 2rem;
    text-align: center;
}

.form-control {
    width: 95%;
}

.twit-input {
    
}

/*Кот на странице 404*/
#surprised-cat{
    display: block;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    border: 0px;
    border-radius: 1000px;
}




