/* Объявление шрифтов */
@font-face {
    font-family: 'CustomFont';
    src: url('../img/regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'CustomFont';
    src: url('../img/bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

/* Применяем шрифт ко всему сайту */
body {
    margin: 0;
    font-family: 'CustomFont', Verdana, sans-serif;
}

.video{
    position: relative;
    padding-bottom: 56.25%;
    z-index: 1;
}

.video_media{
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
}

.intro {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.video {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.video_media {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.welcome-content {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 100%;
    max-width: 800px;
}

.welcome-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.welcome-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Add a dark overlay to make text more readable */
.video::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.content_logo{
    position: absolute;
    color: white;
}

/* Удаляем стили для visitor-info и добавляем стили для комментариев */
.comments-section {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    max-width: 600px;
    width: 90%;
    z-index: 2;
    position: relative;
}

.comments-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.comment-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 2px solid #4CAF50;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.95);
    font-family: 'CustomFont', Verdana, sans-serif;
    font-size: 1rem;
    resize: vertical;
    position: relative;
    z-index: 2;
}

.comment-form button {
    padding: 10px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'CustomFont', Verdana, sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s;
    position: relative;
    z-index: 2;
}

.comment-form button:hover {
    background: #45a049;
}

.comments-list {
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.comment {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.comment-text {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 5px;
}

.comment-date {
    color: #4CAF50;
    font-size: 0.9rem;
}

/* Удаляем старые стили */
.content,
.visitor-info,
.visitor-info h2,
#visitor-details p,
#visitor-details strong {
    display: none;
}

.error-message {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    color: #fff;
}

.error-message pre {
    margin: 10px 0 0 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: monospace;
    font-size: 0.9em;
    color: #ffcccc;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.comment-link {
    color: #4CAF50;
    text-decoration: none;
    font-size: 0.9em;
    padding: 3px 8px;
    border: 1px solid #4CAF50;
    border-radius: 3px;
    transition: all 0.3s;
}

.comment-link:hover {
    background: #4CAF50;
    color: white;
}

.comment-link-box {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.comment-link-content {
    color: white;
}

.comment-link-input {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.comment-link-input input {
    flex: 1;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-family: monospace;
}

.comment-link-input button {
    padding: 8px 15px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.comment-link-input button:hover {
    background: #45a049;
}

.share-link {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.share-link input {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: 2px solid #4CAF50;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.95);
    font-family: monospace;
    font-size: 1em;
    box-sizing: border-box;
}

.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    margin-bottom: 15px;
}

.comments-counter {
    color: #4CAF50;
    font-size: 1.1em;
    font-family: 'CustomFont', Verdana, sans-serif;
}

.sound-btn {
    margin: 0;
}


