/**
* 2007-2025 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2025 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/

.misteryBoxInner canvas {
    margin-left: auto;
    margin-right: auto;
}

.mysteryBoxModal .modal-dialog {
    max-width: 545px;
}

.mysteryBoxModal .demoText span {
    color: #fff !important;
}

.mysteryBoxModal .modal-content {
    border-radius: 10px;
    border: 5px solid #3F2BB9;
    width: 100%;
    overflow: hidden;
}

.mysteryBoxModal .modal-content .misteryBoxInner {
    background-size: cover !important;
    background-position: center !important;
    margin-top: -1px;
}

.mysterybox-reveal {
    /* Match .key-container dimensions */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    padding: 6px 6px 6px 10px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    /* border: 1.5px solid transparent; */
    border: none;
    cursor: pointer;
    background-color: #EEECFB;
    isolation: isolate;
    transition: all 0.3s ease;
    outline: none !important;
}

/* Colored blur ellipses effect - PNG background */
.mysterybox-reveal::before {
    content: '';
    position: absolute;
    left: 0 !important;
    /* inset: 0; */
    left: 0px !important;
    width: 100%;
    height: 100%;
    z-index: 0;
    border-radius: 8px;
    background: url('../img/mystery_reveal.png') center / cover no-repeat;
    pointer-events: none;
    background-size: 100% 100%;
    transition: all 0.3s ease;
}

.mysterybox-reveal:hover::before {
    background-image: url('../img/mystery_reveal_hover.png');
}

.mysterybox-reveal span {
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    color: #312770;
    position: relative;
    z-index: 5;
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mysterybox-reveal:hover {
    /* border-color: white; */
    /* border: 1.5px solid transparent; */
    /* box-shadow: 0px 0px 10px 0px rgba(19, 13, 51, 0.39); */
    box-shadow: 0 8px 15px 0 rgba(255, 255, 255, 0.25) inset, 0 0 10px 0 rgba(19, 13, 51, 0.39);
}

/* Hide .key-container styles when mysterybox-reveal is inside */
.key-container:has(.mysterybox-reveal:not([style*="display: none"])) {
    background: none;
    padding: 0;
    border: none;
}

/* Hide copy button when mystery box not revealed */
.key-container:has(.mysterybox-reveal) .copy-button {
    display: none;
}

/* Modal styling */
/* .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
} */

/* .modal-container {
    width: 90%;
    max-width: 500px;
    background: rgba(25, 25, 45, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 
                0 0 100px rgba(80, 120, 255, 0.15);
    border: 1px solid rgba(100, 100, 180, 0.3);
    position: relative;
    overflow: hidden;
} */

/* .modal-title {
    color: white;
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
} */

/* .modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
} */

/* .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
} */

#3d-container {
    width: 300px;
    height: 450px;
    margin: 0 auto;
}

/* .controls {
    margin-top: 40px;
} */

.controls {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* #model-info {
    color: #fff;
    margin-top: 20px;
    text-align: center;
} */

.mysterybox-text-box {
    border: 1px solid #fff;
    padding: 1px 7px 0px 7px;
    display: block;
    margin-left: 5px;
}

.product-miniature  .mysterybox-text-box {
    padding: 1px 4px 0px 4px;
}

.mysterybox-text {
    display: block;
    position: relative;
    top: 2px;
}

.product-miniature .mysterybox-text {
    top: 1px;
}

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

#spinBtn svg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.product-mystery-box {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.misteryBoxInner .mysteryBoxContainer {
    padding-top: 50px;
    height: 450px;
    display: flex;
    justify-content: center;
}

.product-mystery-box .mystery-box-open-wrapper {
    width: auto !important;
    max-width: 60% !important;
    height: auto;
    position: relative;
    margin-bottom: 20px;
}

.mystery-box-edition {
    position: absolute;
    top: 5%;
    max-width: 60%;
}

.product-mystery-box img {
    /* width: auto !important;
    max-width: 48% !important;
    height: auto; */
    pointer-events: auto !important;
    cursor: pointer !important;
    height: auto !important;
}

.demo-button {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: -17px;
}

.product-card .mystery-box-open-wrapper .demo-button .btn-demo {
    padding: 10px 0 !important;
    display: block;
    width: 90%;
    margin-left: 5%;
    font-size: 18px !important;
    text-transform: uppercase !important;
    border-radius: 6px;
    border-color: #fff;
    transition: all 0.22s cubic-bezier(0.07, 0.74, 0.56, 0.89);
}

.product-card .mystery-box-open-wrapper .demo-button .btn-demo:hover,
.product-card .mystery-box-open-wrapper:hover .demo-button .btn-demo {
    border-color: #fff;
}

.product-miniature .mystery-box-open-wrapper .demo-button .btn-demo {
    padding: 3px 0 !important;
    font-size: 12px !important;
}

.mysteryBoxCover {
    width: 100%;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 100px;
}

#spinBtn {
    position: relative;
    background: none;
    border: none;
    padding-top: 10px;
    padding-bottom: 10px;
}

#spinBtn span {
    z-index: 9;
    position: relative;
}

.spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    animation: spin 1s infinite linear;
    margin: 20px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* #model-status {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 100;
} */

#loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    z-index: 1000;
}

#serial-key-display {
    max-width: 70%;
}

.mysteryClose .close {
    color: #fff;
    opacity: 1;
    font-size: 26px;
}

.mysteryBoxProductName {
    color: var(--purple_default);
    display: block;
}

.mysterybox-stickers img {
    max-height: 40px;
    width: auto !important;
}

.mysterybox-stickers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
    width: 75%;
    overflow: hidden;
}

.mysterybox-stickers .mysterybox-sticker {
    flex: 0 0 50%;
    text-align: center;
    margin-bottom: 10px;
}

.product-miniature .mysterybox-stickers img {
    max-height: 30px;
}

.product-miniature .mysterybox-stickers .mysterybox-sticker {
    margin-bottom: 5px;
}

.product-miniature .mysterybox-stickers {
    margin-top: 10px;
}

body main > #header.mysterybox-modal-open {
    transition: none !important;
}

/*==========  Mobile First Method  ==========*/

@media only screen and (max-width : 991px) {

}

/* Phones Portrait */ 
@media only screen and (min-width : 320px) and (max-width : 479px) {
    .centerProductName .product-game-type {
        top: 1px;
    }

    /* .misteryBoxInner canvas {
        transform: scale(0.95);
        transform-origin: center;
    } */

    .misteryBoxInner .mysteryBoxContainer {
        height: 400px;
        transform: scale(0.75);
    }

    .mysteryBoxCover {
        height: 400px; 
    }

    .product-mystery-box img {
        width: 100% !important;
    }

    .product_image_wrapper .product-card .mystery-box-open-wrapper .demo-button .btn-demo {
        font-size: 13px !important;
        padding: 5px 0 !important;
    }

    .misteryBoxInner {
        background-image: url("/modules/mysterybox/views/img/animation-background-mobile.jpg") !important;
    }
}

/* Phones Landscape */ 
@media only screen and (min-width : 480px) and (max-width : 767px) {

}

/* Phones Portrait and Landscape */ 
@media only screen and (min-width : 320px) and (max-width : 767px) {
    .product-card .centerProductName .product-game-type {
        padding-left: 0 !important;
    }
}

/* Small Devices, Tablets */
@media only screen and (min-width : 768px) and (max-width : 991px) {

}

@media only screen and (min-width : 992px) {

}

/* Medium Devices, Desktops */
@media only screen and (min-width : 992px) and (max-width : 1199px) {

}

/* Small and Medium Devices */
@media only screen and (min-width : 768px) and (max-width : 1199px) {

}

/* Large Devices, Wide Screens */
@media only screen and (min-width : 1200px) {

}
