/* .text-lavender {
    color: #4B0082;
    font-weight: bold;
} */
/* !! color set right in extra_filters.py and .html */

body, html {
    margin: 0;
    padding: 0;
    /* height: 100%; */
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
}

.table tbody tr td {
    height: 80px;
}

.btn-lavender {
    background-color: #E6E6FA;
    color: #4B0082;
    font-size: 0.8rem;
}
.btn-lavender:hover {
    background-color: #D8BFD8;
}
.toolbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-top: 2px solid #E6E6FA;
    padding: 10px 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}
/* .image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: auto;
    overflow: visible;
} */

/* .container-fluid {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
} */

/* .image-container {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 0 10px;
} */

#messages-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .centered-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 16px 24px;
    margin: 10px;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 1;
    transition: opacity 0.5s ease-out;
    max-width: 90vw;
    text-align: center;
    font-size: 1.1rem;
  }

  .centered-message.fade-out {
    opacity: 0;
  }

.image-container {
    position: relative;
    width: 100%;
    height: auto;
    min-height: auto;
    display: block;
    overflow: visible;
    /* padding-bottom: 80px; */
    margin-bottom: 0;
    padding-bottom: 0;
}

.small-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.tiny-image {
    max-width: 50%;
    height: 50%;
    display: block;
    margin: 10px auto;
    margin-top: 10 !important;
    margin-bottom: 0 !important;
}

.images-row {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.form-overlay {
    position: absolute;   /* форма поверх картинки */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
}

.image-text-overlay {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(192, 214, 201, 0.5);
    color: rgb(5, 5, 5);
    padding: 8px 15px;
    font-size: 1.2rem;
    text-align: center;
    z-index: 2;
    white-space: nowrap;
}

.title-text {
    font-size: 1.0rem;
    margin-top: 0 !important;
    padding-top: 10px;
    margin-bottom: 5px !important;
}

.regular-text {
    text-align: center;
    margin-top: 0 !important;
    padding-bottom: 0;
    margin-bottom: 0 !important;
}

.tiny-text{
    font-size: 0.9rem !important;
    display: block;
}

.opacity-100 { opacity: 1; }
.opacity-70 { opacity: 0.7; }

.icon-link {
    text-decoration: none; /* rid of underline */
    display: inline-block; /* buttons behavior */
    padding: 10px;
    /* background-color: #E6E6FA; color of background */
    /* border-radius: 50%; round icons */
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); shadow */
    transition: background-color 0.3s ease;
}

.icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.icon-tiny {
    width: 15px;
    height: 15px;
}

img.icon {
    width: 50px !important;
    height: 50px !important;
}

.icon-link:hover {
    background-color: #D8BFD8; /* change color with cursor */
}

.all-chapters {
    text-decoration: none; /* rid of underline */
    color: #272429;
    font-size: 1.2rem;
    display: block;
    width: 100%;
    height: 100%;
    /* position: absolute; */
    z-index: 1;

}

body {
    /* padding-bottom: 100px; */
    padding-bottom: 80px !important;
    margin: 0;
}

.card {
    margin-bottom: 2px;
    border-radius: 6px;
}

.card-body {
    padding: 2px 10px;
}

.card-title {
    font-size: 1.0rem;
    margin-top: 0 !important;
    padding-top: 10px;
    margin-bottom: 5px !important;
}

.buzzword {
    color: #4B0082;
    cursor: pointer;
    text-decoration: underline;
}
.buzzword:hover {
    text-decoration: none;
}

.modal {
    position: absolute; /* let image be close to word */
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 10px;
    display: none;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    width: auto;
    height: auto;
    max-width: 300px;
}

.modal-content {
    text-align: center;
    max-width: 300px;
    position: relative;
    display: inline-block;
}

.close {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 20px;
    cursor: pointer;
    background-color: white;
    padding: 5px 10px;
    border-radius: 100%;
    z-index: 1100;
}

#modalImage {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.modal-content video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

.modal-button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    background-image: url("/static/icons/maximize.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
.modal-button img {
    display: none;
}

.icon-wild {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
}

.modal-button:hover {
    background-color: rgba(255, 255, 255, 1);
}

.image-wrapper {
    position: relative;
    display: inline-block;
}

.fixed-size-image{
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.icon-heart {
    /* width: 20px !important;
    height: 20px !important; */
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.video-preview-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.video-preview-icon {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 35px;
    height: 35px;
    background: rgba(241, 238, 238, 0.4);
    border-radius: 50%;
    padding: 4px;
}

.media-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.responsive-media {
    max-width: 100%;
    max-height: 60vh;
    height: auto;
    width: auto;
    display: block;
    margin: 0 auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

@media (max-width: 768px) {
    .responsive-media {
        max-width: 100%;
        border-radius: 0;
    }
}
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    color: white;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loading-gif {
    width: 80px;
    height: 80px;
}
