
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 20px;

    background-color: #c95b8e;

    color: #702044;

    font-family: "Courier New", monospace;
    font-size: 14px;
}

body::before {
    content: "";
    position: fixed;

    top: 0;
    left: 0;

    width: 50%;
    height: 100vh;

    background-image: url("images/wallpaper.gif");
    background-repeat: repeat;
    background-position: left top;
    background-size: 397px 400px;

    z-index: -2;
}

body::after {
    content: "";
    position: fixed;

    top: 0;
    right: 0;

    width: 50%;
    height: 100vh;

    background-image: url("images/wallpaper.gif");
    background-repeat: repeat;
    background-position: right top;
    background-size: 397px 400px;

    z-index: -2;
}


/* ОСНОВНОЙ САЙТ */

.site {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;

    background-color: #ffd0e3;
    background-image: url("images/wallpapersecond.jpg");
    background-repeat: repeat;
    background-attachment: fixed;

    border: 3px solid #df3d82;
    box-shadow: 8px 8px 0 #d87da5;
}

/* ВЕРХ */

.header {
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: center;
    background: none;
    border-bottom: 3px solid #d52f74;
}

.main-banner {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

.header-small {
    color: white;
    font-size: 11px;
    letter-spacing: 4px;
}

.header p {
    margin: 0;
    color: white;
}

/* МАЛЕНЬКИЕ БАННЕРЫ */

.blinkies {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    background-color: white;
    border-bottom: 2px dashed #e85c9c;
}

.blinkie {
    padding: 5px 8px;
    background-color: #ff75b5;
    color: white;
    border: 1px solid #c92f70;
    font-size: 10px;
    font-weight: bold;
    animation: blink 1.5s infinite alternate;
}

@keyframes blink {
    from {
        opacity: 0.65;
    }

    to {
        opacity: 1;
    }
}

/* МЕНЮ */

.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    background-color: #ffd5e7;
    border-bottom: 3px solid #e35495;
}

.nav a {
    padding: 7px 12px;
    background-color: white;
    border: 2px solid #e45b99;
    color: #b32263;
    text-decoration: none;
    font-weight: bold;
    font-size: 11px;
}

.nav a:hover {
    background-color: #ed4d97;
    color: white;
}

/* ОТСТУПЫ */

.page {
    padding: 15px;
}

/* ЗАГОЛОВКИ РАЗДЕЛОВ */

.section-title {
    margin-bottom: 10px;
    padding: 9px;
    background: linear-gradient(to right, #ff69ae, #ffafd2, #ff69ae);
    border: 2px solid #d93679;
    color: white;
    text-align: center;
    font-family: Georgia, serif;
    font-size: 21px;
    font-style: italic;
    text-shadow: 1px 1px 0 #b92463;
}

/* ОБЫЧНЫЙ БЛОК */

.box {
    margin-bottom: 15px;
    padding: 13px;
    background-color: white;
    border: 2px solid #e46a9f;
    box-shadow: 4px 4px 0 #efb0c9;
    margin-bottom: 15px;
}

.box-title {
    margin: -13px -13px 12px -13px;
    padding: 7px;
    background-color: #ffb5d4;
    border-bottom: 2px solid #e3619b;
    color: #8d194c;
    text-align: center;
    font-weight: bold;
    margin-bottom: 15px;
}

/* ГЛАВНАЯ СЕТКА */

.home-grid {
    display: grid;
    grid-template-columns: 220px 1fr 180px;
    gap: 12px;
}

/* ПРОФИЛЬ */

.profile {
    text-align: center;
}

.profile img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 3px solid #e85098;
}

.profile-name {
    margin-top: 8px;
    color: #d72d78;
    font-family: Georgia, serif;
    font-size: 22px;
    font-style: italic;
}

.online {
    color: #cf3477;
    font-size: 10px;
}

.online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 4px;
    background-color: #ff4d9b;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff2290;
}

/* ТЕКСТ */

.welcome {
    color: #682143;
    line-height: 1.8;
}

.welcome strong {
    color: #db2879;
}

/* БЛЕСТКИ */

.sparkles {
    margin: 12px 0;
    text-align: center;
    color: #ec4c98;
    font-size: 18px;
    letter-spacing: 7px;
    animation: sparkle 1.2s infinite alternate;
}

@keyframes sparkle {
    from {
        opacity: 0.5;
    }

    to {
        opacity: 1;
    }
}

/* ИНФОРМАЦИЯ */

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.info-item {
    padding: 10px;
    background-color: #fff8fb;
    border: 2px dashed #ed77aa;
    color: #6b2446;
    font-size: 11px;
}

.info-item b {
    color: #dc357f;
}

/* ИЗБРАННОЕ */

.favorite-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.favorite {
    padding: 12px;
    background-color: #fff8fb;
    border: 2px dotted #e36a9f;
}

.favorite h3 {
    margin-top: 0;
    color: #d93079;
    font-family: Georgia, serif;
    font-style: italic;
}

.favorite p {
    margin-bottom: 0;
    color: #75465b;
    font-size: 11px;
    line-height: 1.6;
}

/* КАРТИНКИ */

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 3px solid #ed75aa;
    background-color: #ffd4e6;
}

.gallery img:hover {
    transform: rotate(-2deg);
    box-shadow: 0 0 12px #ff4d9b;
}

.random-image {
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto;
    margin-bottom: 15px;
}

/* КНИГИ / ФИЛЬМЫ / КОМИКСЫ */

.media-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.media-card {
    padding: 7px;
    background-color: white;
    border: 2px solid #e2649e;
    box-shadow: 3px 3px 0 #f2aecb;
}

.media-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 12px #ff63aa;
}

.media-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.media-card h3 {
    margin: 7px 0 2px;
    color: #d32d76;
    font-family: Georgia, serif;
    font-size: 14px;
}

.media-card p {
    margin: 3px 0;
    color: #82516a;
    font-size: 10px;
}

.rating {
    color: #eb4190;
    letter-spacing: 2px;
}

/* ТЕКСТОВЫЕ СПИСКИ */

.simple-list {
    padding: 12px;
    background-color: white;
    border: 2px dashed #e86c9f;
}

.simple-list p {
    margin: 7px 0;
    padding-bottom: 7px;
    border-bottom: 1px dotted #efa2c2;
    color: #672143;
}

.simple-list p::before {
    content: "♡ ";
    color: #e73885;
}

/* МУЗЫКА */

.player {
    padding: 15px;
    text-align: center;
    background-color: #ffd0e3;
    border: 2px solid #df4e92;
}

.song-title {
    color: #d42776;
    font-family: Georgia, serif;
    font-size: 19px;
    font-style: italic;
}

.song-artist {
    color: #88556c;
    font-size: 10px;
}

audio {
    width: 100%;
    margin-top: 10px;
}

/* ДНЕВНИК */


.diary-box {
    position: relative;

    padding: 22px 20px 25px;

    text-align: center;

    background:
        linear-gradient(
            180deg,
            #fffafd,
            #ffe8f2
        );

    border: 3px solid #e34c90;

    box-shadow:
        5px 5px 0 #f0a6c5,
        0 0 15px rgba(255, 70, 155, 0.25);

    overflow: hidden;
}

.diary-box::before {
    content: "♡";
    position: absolute;

    top: 7px;
    left: 12px;

    color: #ff65aa;
    font-size: 18px;

    animation: diarySparkle 1.4s infinite alternate;
}

.diary-box::after {
    content: "✦";
    position: absolute;

    top: 9px;
    right: 13px;

    color: #ff65aa;
    font-size: 18px;

    animation: diarySparkle 1.1s infinite alternate;
}

.diary-decoration {
    margin: 5px 0;

    color: #ec4c98;

    font-size: 16px;

    letter-spacing: 7px;

    animation: diarySparkle 1.3s infinite alternate;
}

@keyframes diarySparkle {
    from {
        opacity: 0.45;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1.1);
    }
}

.diary-label {
    display: inline-block;

    margin: 4px 0 8px;

    padding: 4px 9px;

    background: #ff83ba;

    color: white;

    border: 1px solid #d43177;

    font-size: 9px;

    font-weight: bold;

    letter-spacing: 2px;

    transform: rotate(-2deg);
}

.diary-box h2 {
    margin: 8px 0;

    color: #d52d78;

    font-family: Georgia, serif;

    font-size: 28px;

    font-style: italic;

    text-shadow:
        1px 1px 0 #f5b1ce;
}

.diary-box p {
    max-width: 550px;

    margin: 0 auto 12px;

    color: #71415a;

    font-size: 12px;

    line-height: 1.7;
}

.diary-header {
    padding: 0;
    margin: 0;
    background: none;
}

.diary-banner {
    display: block;
    width: 500px; 
    max-width: 90%;
    height: auto;
    margin: 0 auto;
}

.diary-link {
    display: inline-block;

    padding: 10px 20px;

    background: #ff6eae;

    border: 2px solid #cc2e70;

    color: white;

    text-decoration: none;

    font-size: 11px;

    font-weight: bold;

    box-shadow:
        3px 3px 0 #e29ab8;

    transition: 0.2s;
}

.diary-link:hover {
    background: #ed3f8c;

    transform: translateY(-2px);

    box-shadow:
        0 0 12px rgba(255, 50, 145, 0.55);
}

/* ТЕГИ */

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag {
    padding: 5px 8px;
    background-color: white;
    border: 1px solid #e575a7;
    color: #c12d6d;
    font-size: 9px;
}

/* СЧЁТЧИК */

.counter {
    padding: 8px;
    background-color: white;
    border: 2px solid #df568f;
    color: #d92f79;
    text-align: center;
    font-family: monospace;
    font-size: 18px;
    letter-spacing: 3px;
}

/* ПОДВАЛ */

.footer {
    padding: 18px;
    background-color: #ffbedb;
    border-top: 3px solid #df4d8f;
    color: #894b67;
    text-align: center;
    font-size: 10px;
    line-height: 1.8;
}

.footer b {
    color: #d52d76;
}

/* АДАПТАЦИЯ */

@media (max-width: 900px) {

    .home-grid {
        grid-template-columns: 200px 1fr;
    }

    .right-column {
        display: none;
    }
}

@media (max-width: 650px) {

    body {
        padding: 5px;
    }

    .home-grid {
        display: block;
    }

    .right-column {
        display: block;
    }

    .favorite-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .media-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .header h1 {
        font-size: 36px;
    }
}

