@import url('https://fonts.googleapis.com/css2?family=IM+Fell+English&family=Pirata+One&display=swap');

/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'IM Fell English', serif; /* Основной текст */
    font-size: 1rem;
}

h1, h2 {
  font-family: 'Pirata One', cursive; /* Заголовки */
}

body {
    background-color: #f0e6d2;
    color: #3a2c1a;
    line-height: 1.6;
    padding: 20px;
    background-image: url('img/back1.avif');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

/* Контейнер досье */
.dossier {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(255, 248, 220, 0.9);
    border: 3px solid #8b5a2b;
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    padding: 30px;
    position: relative;
    overflow: hidden;
    background-image: url('img/back2.avif');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;

}

/* Эффект старинной бумаги */

/* Заголовок */
h1 {
    color: #8b4513;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    font-family: 'Times New Roman', serif;
}

h1::after {
    content: "";
    display: block;
    width: 150px;
    height: 3px;
    background: linear-gradient(to right, transparent, #8b4513, transparent);
    margin: 10px auto;
}

/* Фото */
.photo-container {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid #8b4513;
    object-fit: cover;
    box-shadow: 0 0 15px rgba(139, 69, 19, 0.5);
    transition: transform 0.3s;
}

.photo:hover {
    transform: scale(1.05);
}

.photo-frame {
    position: absolute;
    width: 210px;
    height: 210px;
    border: 2px dashed #8b4513;
    border-radius: 50%;
    top: 43.5%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.photo-caption {
    margin-top: 20px;
    font-style: italic;
    color: #5a3921;
    font-size: 0.9rem;
                text-align: center;
}

/* Эффекты для стиля мультфильма */
.pirate-stamp {
    position: absolute;
    right: 30px;
    top: 30px;
    width: 100px;
    height: 100px;
    background-color: #8b4513;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f0e6d2;
    font-weight: bold;
    transform: rotate(15deg);
    opacity: 0.8;
    font-family: 'Times New Roman', serif;
    font-size: 0.8rem;
    text-align: center;
    border: 2px dashed #f0e6d2;
    z-index: 2;
    background-image: url('img/stamp.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

.tear {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 248, 220, 0.7);
    border-radius: 50%;
    top: -25px;
    right: -25px;
}

.fold {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 40px 40px 0;
    border-color: transparent #d2b48c transparent transparent;
    top: 0;
    right: 0;
}

/* Эффект поляроида для фото */
.polaroid-effect {
    display: inline-block;
    background: white;
    padding: 15px 15px 40px 15px;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transform: rotate(3deg);
    transition: transform 0.3s;
    position: relative;
}

.polaroid-effect:hover {
    transform: rotate(0deg) scale(1.05);
}

.polaroid-effect::after {
    content: "Evmaster";
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    text-align: center;
    font-family: 'Times New Roman', serif;
    color: #8b4513;
    font-size: 1rem;
}

/* Секции */
section {
    margin-bottom: 25px;
    position: relative;
    padding-left: 20px;
}

section::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #8b4513;
    font-size: 1.5rem;
}

h2 {
    color: #8b4513;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

p {
    margin-bottom: 15px;
    text-align: justify;
}

/* Списки */
ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 8px;
}

/* Выделение важного */
.highlight {
    font-weight: bold;
    color: #5a3921;
}

/* Футер */
footer {
    text-align: center;
    margin-top: 30px;
    font-style: italic;
    color: #5a3921;
    position: relative;
    font-family: 'Dancing Script', cursive; /* Подпись */
}

footer::before {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #8b4513, transparent);
    margin: 20px 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .dossier {
        padding: 20px;
        border-width: 5px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .photo {
        width: 180px;
        height: 180px;
    }

    .photo-frame {
        width: 190px;
        height: 190px;
    }
    
    .pirate-stamp {
        right: 5px;
        top: 40px;
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .dossier {
        padding: 15px;
    }

    h1 {
        font-size: 1.8rem;
    }

    section {
        padding-left: 15px;
    }

    .photo {
        width: 150px;
        height: 150px;
    }

    .photo-frame {
        width: 160px;
        height: 160px;
    }
}
