﻿@keyframes slideInFromRight {
    from {
        transform: translateX(100%); /* Start off-screen to the right */
    }

    to {
        transform: translateX(0); /* End at its normal position */
    }
}

.hide{
    display:none;
}
.ghd-glossary-widget-modal {
    position: fixed;
    /*background-color: rgba(128,128,128,0.8);*/
    top: 0px;
    right: 0px;
    width: 20%;
    height: 100%;
    z-index:99999;
    transform: translateX(100%); /* Start off-screen initially */
    visibility: hidden; /* Hide until animation starts */
    
    animation: slideInFromRight 0.5s ease-out forwards;
    animation-delay: 0.1s; /* Optional: delay before animation starts */
    visibility: visible; /* Make visible when animation starts */
}
@media (max-width: 767px) {
    .ghd-glossary-widget-modal{
        width:100%;
    }
}
@media (min-width: 768px) and (max-width: 991px) {
    .ghd-glossary-widget-modal {
        width: 50%;
    }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .ghd-glossary-widget-modal {
        width: 50%;
    }
}
.ghd-glossary-widget-modal-inner {
    position: relative;
    top: 0px;
    left: 0px;
    height: 100%;
    background-color: #ffffff;
    padding: 10px 10px 10px 20px;
    box-shadow: -5px 0px 10px rgba(0, 0, 0, 0.5);
    overflow:auto;
}

.ghd-glossary-widget-modal-titlebar {
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #000;
}

.ghd-glossary-widget-modal-titlebar h2 {
    margin: 0px;
    display: inline-block;
    text-transform: capitalize;
    max-width: calc(100% - 35px);
}

.ghd-glossary-widget-modal-close {
    float: right;
    margin-right: 10px;
}
.ghd-glossary-widget-modal-close:focus {
    outline: 2px dashed rgba(var(--base-highlight), 1) !important;
    outline-offset: 2px !important;
}
.ghd-glossary-widget-term::after {
    content: "";
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/> </svg>');
    display: inline-block;
    height: 15px;
    width: 15px;
    margin-left: 2px;
    background-size: contain;
    background-position: center;
    color: black;
}
