/* Подключение собственных шрифтов */
@font-face {
    font-family: 'BlackCAPS';
    src: url('fonts/BlackCAPS.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LightCAPS';
    src: url('fonts/LightCAPS.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Общие стили для тела и фона */
body {
    font-family: 'LightCAPS', sans-serif;
    color: #020A0D;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: white;

    /* Фоновое изображение на всю страницу */
    background-image: url('Logo.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
    background-repeat: no-repeat;

    /* Привязываем подвал к низу страницы */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Стили для новой шапки */
.tavern-header {
    text-align: center;
    padding: 20px 20px;
    background: white; /* Фон шапки стал белым */
    color: #020A0D; /* Текст стал темным */
    border-bottom: 2px solid #B60000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1000;
}

.tavern-header h2 {
    font-size: 2.5em;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px #B60000;
    font-family: 'BlackCAPS', serif;
    color: #B60000;
}

.tavern-header .dungeon-subtitle {
    font-family: 'LightCAPS', sans-serif;
    font-size: 1.2em;
    color: #020A0D; /* Текст подзаголовка стал темным */
    margin-bottom: 0;
}

/* Основной контент */
.tavern-main {
    padding: 20px 20px;
    flex-grow: 1;
}

/* Зал Мастеров без серого фона */
.dungeon-masters-hall {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    border-radius: 10px;
}

.dungeon-masters-hall h2 {
    display: none;
}

/* Карточка ведущего */
.master-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.master-card {
    background: white;
    color: #020A0D;
    border: 2px solid #B60000;
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.master-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.8);
}

.master-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid #B60000;
    object-fit: cover;
    margin-bottom: 15px;
}

.master-name {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #B60000;
    font-family: 'BlackCAPS', serif;
}

/* Детали карточки (скрыты по умолчанию) */
.master-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.master-card.active .master-details {
    max-height: 300px;
    padding-top: 15px;
}

.master-bio {
    font-style: italic;
    color: #020A0D;
    margin-bottom: 15px;
    font-family: 'LightCAPS', sans-serif;
}

.tip-info {
    text-align: left;
    background: rgba(182, 0, 0, 0.2);
    padding: 10px;
    border-radius: 5px;
}

.tip-info p {
    margin: 5px 0;
    font-family: 'LightCAPS', sans-serif;
}

/* Подвал сайта */
.tavern-footer {
    text-align: center;
    padding: 20px;
    background: white; /* Фон подвала стал белым */
    color: #020A0D; /* Текст подвала стал темным */
    border-top: 2px solid #B60000;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.4);
    font-family: 'LightCAPS', sans-serif;
    position: relative;
    z-index: 1000;
}

/* Стили для маскота */
.mascot-container {
    position: fixed;
    bottom: 80px;
    left: 20px;
    display: inline-flex;
    align-items: flex-end;
    z-index: 1001;
}

.mascot-image {
    width: 150px;
    height: auto;
    cursor: pointer;
}

.mascot-speech-bubble {
    background: #B60000;
    color: #FFFFFF;
    padding: 15px;
    border-radius: 15px 15px 15px 0;
    margin-left: -20px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    font-family: 'LightCAPS', sans-serif;
}

.mascot-speech-bubble p {
    margin: 0;
    font-size: 1em;
}

.mascot-speech-bubble p:not(:last-child) {
    margin-bottom: 5px;
}

.mascot-speech-bubble a {
    color: #FFFFFF;
    text-decoration: underline;
}

.mascot-speech-bubble a:hover {
    color: #020A0D;
}

.mascot-container:hover .mascot-speech-bubble {
    opacity: 1;
    visibility: visible;
}