#popup-container svg {
    stroke: white;
    width: 25px;
}

#popup-loader {
    color: transparent;
    border: none;
    background: linear-gradient(120deg, #ddd 25%, #eee 50%, #ddd 75%);
    background-size: 200% 100%;
    animation: flow 5s linear infinite;
    z-index: 5;
    position: absolute;
    display: flex;
    width: 80%;
    height: 50%;
    border-radius: 10px;
    background-color: #000;
    align-items: center;
    justify-content: center;
}

#popup-overlay iframe {
    z-index: 20;
}

#popup-bar {
    background-color: #3a2e92;
	width:100%;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    font-size: 18px;
    font-weight: bold;
}

#popup-bar .title {
    font-size: 18px;
    color: white;
}

#popup-bar .buttons {
    display: flex;
    gap: 10px;
}

#popup-bar button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

#popup-bar button:hover {
    color: #ddd;
}

/* Ensure the container has a max-width and is centered */
#slot-filter-container {
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    max-width: 1200px;
    margin: 0 auto 15px auto;
    padding: 20px;
}

#slot-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-group {
    width: fit-content;
    display: flex;
    flex-direction: column;
}

.filter-group.align-filter {
    margin-bottom: 15px;
}

#slot-filter label {
    margin-bottom: 5px;
}

#slot-filter input, #slot-filter select {
    padding: 8px;
    font-size: 16px;
}

#your-filters h4 {
    margin-bottom: 10px;
}

#applied-filters {
    margin-bottom: 10px;
}

#your-filters {
    display: flex;
    align-items: flex-start;
    flex-direction: row;
}

#applied-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tag {
    background: #f1f1f1;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.filter-tag .remove-filter {
    margin-left: 5px;
    color: red;
    cursor: pointer;
}

/* Ensure the container has a max-width and is centered */
#slot-grid {
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    gap: 20px;
    justify-items: start;
}

/* Adjust the slot-card max-width for better responsiveness */
.slot-card {
    position: relative;
    box-shadow: 0px 3px 3px 0px #000;
    height: 118px;
    max-width: 100%;
    width: 100%;
    background: white;
    border-radius: 5px;
    text-align: center;
    padding: 0;
    overflow: hidden;
}

.slot-card .slot-image {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slot-card .slot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
    transition: all 0.3s ease;
}

.slot-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    border-radius: 5px;
}

.slot-card:hover .overlay {
    opacity: 1;
}

.play-button {
    box-shadow: 0px 2px 9px 0px #000000;
    padding: 10px;
    margin: 2px;
    color: #fff;
    font-size: 16px;
    text-align: center;
    text-transform: uppercase;
    font-weight: bolder;
    transition: all 0.5s;
    cursor: pointer;
    letter-spacing: 2.5px;
    background: #65c82d;
    border-radius: 6px;
    border: none;
}

.play-button:hover {
    background: #41811d;
    color: white;
}

.play-button.review {
    background: #f9bc06;
    border: none;
}

.play-button.review:hover {
    background: #f56c0a;
}

/* Placeholder styles */
.slot-card.placeholder {
    background: white;
    border: 1px solid #ddd;
    text-align: center;
    border-radius: 5px;
}

.slot-card.placeholder .slot-image {
    background: linear-gradient(120deg, #ddd 25%, #eee 50%, #ddd 75%);
    background-size: 200% 100%;
    width: 100%;
    position: relative;
    animation: flow 1.5s linear infinite;
}

.slot-card.placeholder .slot-image img {
    border-radius: 0px;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
}

.placeholder-text {
    color: #ddd;
    background: #ddd;
    border-radius: 3px;
    height: 20px;
}

.placeholder-text.h3 {
    width: 60%;
    margin: 10px auto;
}

.placeholder-text.p {
    width: 80%;
    margin: 10px auto;
}

.placeholder .play-button {
    color: transparent;
    border: none;
    padding: 10px 15px;
    cursor: default;
    background: linear-gradient(120deg, #ddd 25%, #eee 50%, #ddd 75%);
    background-size: 200% 100%;
    animation: flow 1.5s linear infinite;
}

.play-button.placeholder {
    padding: 10px 20px;
}

.hidden-img {
    display: none;
}

.play-button .final {
    box-shadow: 1px 2px 3px 1px #6c7781 !important;
    color: #fff !important;
    font-size: 16px !important;
    text-align: center;
    padding: 5px;
    width: 20%;
    -moz-transition: 0.5s;
    transition: all 0.5s;
    cursor: pointer;
    letter-spacing: 2.5px;
    position: relative;
    background: #65c82d;
    border-radius: 6px;
    border: 3px solid #41811d;
    margin: 5px;
}

.reset-filter {
    align-self: flex-end;
    margin-left: auto;
    background: #0073aa;
    border-radius: 3px;
    font-weight: 700;
    color: #fff;
    border: none;
    padding: 5px 7px;
    cursor: pointer;
}

.reset-filter:hover {
    color: white;
    background: #005b8a;
}

.reset-filter-container .titletext {
    font-size: 150%;
    font-weight: bolder;
    margin-bottom: 0;
}

.reset-filter-container .decotext {
    margin-bottom: 5px;
}

.reset-filter-container .reset-filter {
    align-self: center;
    display: flex;
    margin-left: 0;
}

.main-slot-container {
    margin-bottom: 20px;
}

.reset-filter-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#slot-not-found {
    margin-top: 35px;
    margin-bottom: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes flow {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes shake {
    0% { transform: translateX(0); }
    5% { transform: translateX(-10px); }
    10% { transform: translateX(10px); }
    15% { transform: translateX(-10px); }
    20% { transform: translateX(10px); }
    25% { transform: translateX(0); }
    100% { transform: translateX(0); }
}

.shake {
    display: inline-block;
    animation: shake 2s ease-in-out infinite;
}

@keyframes shake-pause {
    0%, 50% { transform: translateX(0); }
    10% { transform: translateX(-10px); }
    20% { transform: translateX(10px); }
    30% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
}

.shake-with-pause {
    display: inline-block;
    animation: shake-pause 2s ease-in-out infinite;
}

/* Mobile-specific styles */
@media (max-width: 767px) {
	#popup-container{
		border-radius: 0 !important;
	}
	#popup-bar{
		border-radius: 0 !important;
		}
		#popup-overlay iframe{
		border-radius: 0 !important;
	}
	#popup-container{
		position: relative;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
	}
	#fullscreenbtn{
		display:none !important;
	}
    #popup-loader {
        width: 100%;
        height: 100%;
    }

    .slot-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .slot-card {
        height: 88px;
        max-width: 100%;
        width: 100%;
        background: #fff;
        border-radius: 5px;
        text-align: center;
        padding: 0;
    }

    .slot-card .slot-image {
        height: 100%;
        display: flex;
        position: relative;
        width: 100%;
        background: #ddd;
    }

    #popup-overlay button {
        top: -30px;
        right: 33px;
        display: grid;
        font-size: 24px;
        background-color: red;
        color: #fff;
        padding: 0;
        border: none;
        border-radius: 50% 50% 0 0;
        width: 30px !important;
        height: 30px;
        cursor: pointer;
        z-index: 1001;
        align-items: center;
        justify-content: center;
        align-content: center;
        justify-items: center;
    }

    #popup-container iframe {
        width: 100%;
        height: 100%;
        border: none;
        border-radius: 8px;
    }

    #popup-container svg {
        stroke: #fff;
        width: 30px;
    }

    .slot-card .slot-button-container {
        display: flex;
        padding: 6px 0;
        justify-content: center;
    }

    .play-button {
        padding: 5px;
    }

    .pagination-button.mobile-hide {
        display: none !important;
    }

    #sort-filter {
        padding: 5px;
        width: 100%;
    }

    .filter-group-left {
        max-width: 50%;
    }

    .active-filters-group {
        width: 60%;
    }
}

/* Tablet-specific styles */
@media (min-width: 768px) and (max-width: 1023px) {
	#popup-container{
		border-radius: 0 !important;
	}
	#popup-bar{
		border-radius: 0 !important;
		}
		#popup-overlay iframe{
		border-radius: 0 !important;
	}
	#popup-container{
		position: relative;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
	}
	#fullscreenbtn{
		display:none !important;
	}
    .slot-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    #popup-overlay iframe {
        width: 100%;
        height: 100%;
    }

    #popup-overlay button {
        top: 68px;
        right: 250px;
        display: grid;
        font-size: 24px;
        background-color: red;
        color: #fff;
        border: none;
        border-radius: 50% 50% 0 0;
        width: 40px;
        height: 40px;
        cursor: pointer;
        z-index: 1001;
        align-items: center;
        justify-content: center;
        align-content: center;
        justify-items: center;
    }
}

/* Desktop-specific styles */
@media (min-width: 1024px) {
    .slot-grid {
        grid-template-columns: repeat(4, 1fr);
    }
	.fullscreen #popup-container{
		border-radius: 0 !important;
	}
	.fullscreen #popup-bar{
		border-radius: 0 !important;
	}
	.fullscreen iframe{
		border-radius: 0 !important;
	}
	#popup-bar{
		border-radius: 10px 10px 0 0;
	}
	#popup-container{
		position: relative;
		border-radius:15px;
    width: 80%;
    height: 80%;
    background: white;
    display: flex;
    flex-direction: column;
	}
    #popup-overlay iframe {
        width: 100%;
        height: 50%;
        border-radius: 0 0 10px 10px;
    }

    #popup-overlay button {
        top: 233px;
        right: 250px;
        display: grid;
        font-size: 24px;
        background-color: red;
        color: #fff;
        border: none;
        border-radius: 50% 50% 0 0;
        width: 40px;
        height: 40px;
        cursor: pointer;
        z-index: 1001;
        align-items: center;
        justify-content: center;
        align-content: center;
        justify-items: center;
    }
}

/* Loader CSS */
.lds-dual-ring,
.lds-dual-ring:after {
    box-sizing: border-box;
}

.lds-dual-ring {
    display: inline-block;
    width: 80px;
    height: 80px;
}

.lds-dual-ring:after {
    content: " ";
    display: block;
    width: 64px;
    height: 64px;
    margin: 8px;
    border-radius: 50%;
    border: 6.4px solid white;
    border-color: white transparent white transparent;
    animation: lds-dual-ring 1.2s linear infinite;
}

@keyframes lds-dual-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.main-slot-container .pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination-button {
    margin-left: 2px;
    margin-right: 2px;
    color: #666666;
    background-color: transparent;
    border: none;
    padding: 5px 15px 5px 15px;
    border-radius: 0.7rem;
}

.pagination-button:hover {
    background-color: #eee8ff;
}

.pagination-button.current {
    color: white;
    background-color: #3002b2;
}

.pagination .placeholder {
    background: linear-gradient(120deg, #ddd 25%, #eee 50%, #ddd 75%);
    background-size: 200% 100%;
    position: relative;
    animation: flow 1.5s linear infinite;
}

.pagination-button.disabled {
    background: #dadada;
}

.pagination-button.disabled:hover {
    background: #ccc;
}

.pagination-button svg {
    fill: #828282;
    transition: fill 0.3s ease;
}

.pagination-button.disabled {
    cursor: not-allowed;
}

.pagination-button.disabled svg {
    fill: #828282; /* Color for the disabled state */
}

.filter-group.align-filter.sort-filter {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-content: center;
    align-items: center;
}

.filter-group-left span {
    font-weight: bolder;
}

.filter-group label {
    font-weight: bolder;
}

.main-slot-container select {
    border-radius: 4px !important;
    padding: 10px 15px !important;
}

.main-slot-container input {
    border-radius: 4px !important;
    padding: 10px 15px !important;
}

.reset-filter {
    margin-left: auto;
    font-weight: bold;
    border: none;
    padding: 5px 7px;
    cursor: pointer;
    background: none;
    border: none;
    color: #5800c5;
}

.reset-filter:hover {
    margin-left: auto;
    font-weight: bold;
    border: none;
    padding: 5px 7px;
    cursor: pointer;
    background: none;
    border: none;
    color: #5800c5;
}

#slot-filter-container button {
    margin-left: auto;
    font-weight: bold;
    border: none;
    padding: 5px 7px;
    cursor: pointer;
    background: none;
    border: none;
    color: #5800c5;
}

#slot-filter-container button:hover {
    margin-left: auto;
    font-weight: bold;
    border: none;
    padding: 5px 7px;
    cursor: pointer;
    background: none;
    border: none;
    color: #5800c5;
}

.reset-filter-container button {
    font-weight: bold;
    border: none;
    padding: 5px 7px;
    cursor: pointer;
    background: none;
    border: none;
    color: #5800c5;
}

.reset-filter-container button:hover {
    font-weight: bold;
    border: none;
    padding: 5px 7px;
    cursor: pointer;
    background: none;
    border: none;
    color: #5800c5;
}
