html, body {
    margin: 0;
    padding: 0;
    background: #b7b7b7;
    color: #222;
    font-family: "Times New Roman", Times, serif;
    font-size: 14px;
}

body {
	background-size: cover;
	background-image: url("https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fwallpapercave.com%2Fwp%2Fwp2894344.jpg&f=1&nofb=1&ipt=16351bac505b3072f28e8596a2cb099d2a50eaf01a33a9704a35fc5a1e505668");
}

/* старый фиксированный сайт */
#page {
width: 75%;
margin: 12px auto 40px auto;
background: #e9e9e9;
border: 3px outset #eeeeee;
box-shadow: 3px 3px 0 #555;
}

/* верхняя полоса */
.topline {
    height: 9px;
    background: #152d55;
    border-bottom: 2px solid #c8a84b;
}

.header {
    height: 108px;
    background:
    linear-gradient(to bottom, #274d82 0%, #16325b 65%, #102744 100%);
    color: white;
    border-bottom: 4px double #d3b34f;
    position: relative;
    overflow: hidden;
}

.header h1 {
    margin: 14px 0 0 18px;
    font-size: 31px;
    font-weight: bold;
    letter-spacing: -1px;
    text-shadow: 2px 2px #081425;
}

.header h2 {
    margin: 1px 0 0 20px;
    font-size: 17px;
    font-weight: normal;
    color: #e5d38a;
}

.header .old-url {
    position: absolute;
    right: 14px;
    bottom: 9px;
    font-size: 11px;
    color: #bfcde0;
}

/* звезды */
.star {
    position: absolute;
    color: #e1bd44;
    font-size: 32px;
    text-shadow: 1px 1px #111;
}

.star.s1 { right: 110px; top: 17px; }
.star.s2 { right: 60px; top: 35px; font-size: 22px; }
.star.s3 { right: 26px; top: 13px; font-size: 18px; }

/* меню */
.menu {
    background: #d6d6d6;
    border-top: 2px solid white;
    border-bottom: 2px solid #777;
    padding: 5px;
    text-align: center;
}

.menu a {
    display: inline-block;
    background: #eeeeee;
    border: 2px outset white;
    padding: 3px 10px;
    margin: 1px;
    color: #000080;
    font-weight: bold;
    text-decoration: underline;
}

.menu a:active {
    border-style: inset;
}

/* бегущая строка */
.marquee {
    background: #fffbd7;
    color: #7b0000;
    border-bottom: 1px solid #777;
    height: 21px;
    line-height: 21px;
    overflow: hidden;
    white-space: nowrap;
    font-weight: bold;
}

/* основной layout */
table.layout {
    width: 100%;
    border-collapse: collapse;
}

td.left {
    width: 13%;
    vertical-align: top;
    background: #d0d0d0;
    border-right: 2px solid #888;
    padding: 7px;
}

td.main {
    width: 594px;
    vertical-align: top;
    padding: 9px 12px 20px 12px;
}

/* боковые блоки */
.sidebox {
    margin-bottom: 10px;
    border: 1px solid #555;
    background: #ededed;
}

.sidebox-title {
    background: #243e65;
    color: white;
    font-weight: bold;
    padding: 3px 5px;
    border-bottom: 2px solid #c5a83d;
}

.sidebox-content {
    padding: 6px;
    font-size: 12px;
}

.sidebox a {
    color: #000080;
}

.counter {
    font-family: "Courier New", monospace;
    font-size: 15px;
    background: #000;
    color: #00ff00;
    padding: 3px 6px;
    display: inline-block;
    border: 2px inset #777;
}

/* заголовки */
h3.section {
    font-size: 19px;
    margin: 4px 0 8px 0;
    padding: 4px 7px;
    color: white;
    background: #304f7b;
    border: 1px solid #172d4b;
    border-bottom: 3px solid #c7a83f;
}

hr.old {
    border: 0;
    height: 6px;
    background:
    repeating-linear-gradient(
        90deg,
        #17345e 0px,
        #17345e 15px,
        #c6a43b 15px,
        #c6a43b 30px,
        #eee 30px,
        #eee 45px
    );
}

/* портрет */
.portrait {
    float: left;
    width: 190px;
    margin: 0 14px 8px 0;
    padding: 4px;
    background: white;
    border: 1px solid #555;
    box-shadow: 2px 2px #999;
}

.portrait img {
    width: 190px;
    height: 235px;
    object-fit: cover;
    display: block;
    filter: contrast(1.03) saturate(.8);
}

.caption {
    font-size: 11px;
    color: #444;
    padding-top: 4px;
    text-align: center;
}

/* гербовые / георгиевские ленты */
.ribbon {
    height: 14px;
    margin: 7px 0;
    border-top: 2px solid #222;
    border-bottom: 2px solid #222;
    background:
    repeating-linear-gradient(
        90deg,
        #111 0px,
        #111 14px,
        #e5a629 14px,
        #e5a629 25px,
        #111 25px,
        #111 39px
    );
}

/* фото-галерея */
.gallery {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.photo {
    width: 155px;
    background: #fff;
    border: 1px solid #666;
    padding: 4px;
}

.photo img {
    width: 155px;
    height: 105px;
    object-fit: cover;
    display: block;
}

.photo div {
    font-size: 10px;
    text-align: center;
    padding-top: 3px;
}

/* цитаты */
.quote {
    background: #f5f0d4;
    border: 1px dashed #876e25;
    padding: 9px 12px;
    margin: 8px 0;
    font-size: 16px;
    line-height: 1.3;
}

.quote-source {
    display: block;
    text-align: right;
    font-size: 11px;
    line-height: 1.2;
    color: #555;
    margin-top: 5px;
}


/* гостевая */
.guestbook {
    background: #fafafa;
    border: 1px solid #777;
    padding: 7px;
}

.message {
    border-bottom: 1px dotted #888;
    padding: 5px;
}

.message b {
    color: #7a0000;
}

/* кнопки */
.button88 {
    display: inline-block;
    width: 88px;
    height: 31px;
    line-height: 31px;
    text-align: center;
    background: linear-gradient(#4d6c98, #172f54);
    color: white;
    border: 2px outset #ddd;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: bold;
    margin: 2px;
}

/* подвал */
.footer {
    clear: both;
    background: #ccc;
    border-top: 3px double #777;
    padding: 9px;
    text-align: center;
    color: #444;
    font-size: 11px;
}

.footer a {
    color: #000080;
}

/* секретный эффект */
.blink {
    animation: blink 1.2s steps(2, start) infinite;
}

@keyframes blink {
    50% { visibility: hidden; }
}

/* на маленьком экране сайт всё равно остается "старым" */
@media (max-width: 780px) {
    #page {
    margin-left: 4px;
    margin-right: 4px;
    }
}
