/*
Theme Name:     DETH Blue Troxos
Description:    Chapter5 Contests Project
Author:         toolbox

*/

:root {
    --primary: #ffffff;
    --main-color: #ffffff;
    --popup-background-color: #27e2cc;
    --popup-color: #1d4757;
    --checkbox-fill-color: #ffffff;
    --checkbox-border-color: #ffffff;    
    
    --width: 1080px;
    --height: 1920px;    
    --footer-height: 92px;
    --header-top-height: 80px;
    --height-header: calc(374px + var(--header-top-height));
    --main-top: var(--height-header);
    --main-height: calc(var(--height) - var(--footer-height) - var(--main-top));     
    --footer-black: #000000;
}

@font-face {
    font-family: 'DINNextW1G-Bold';
    src: url('./fonts/DINNextW1G-Bold.otf')  format('opentype');
}

@font-face {
    font-family: 'DINNextW1G-Regular';
    src: url('./fonts/DINNextW1G-Regular.otf')  format('opentype');
}

@font-face {
    font-family: 'DINNextW1G-Medium';
    src: url('./fonts/DINNextW1G-Medium.otf')  format('opentype');
}

@font-face {
    font-family: 'Ubuntu-Medium';
    src: url('./fonts/Ubuntu-Medium.ttf')  format('truetype');
}

html{
    font-size: 16px;        
}

body{
    background-color: green;
    font-family: 'DINNextW1G-Medium';
    color: var(--primary);
    width: var(--width);
    height: var(--height);
    padding: 0;
    margin: 0;
}

body *{
    font-family: 'DINNextW1G-Medium';    
}

.center-line {
    position: fixed;
    top: 0;
    left: 50%;

    width: 1px;
    height: 100vh;

    background: #000;

    transform: translateX(-50%);
    z-index: 9999;
}

.app-area{
    overflow: hidden;    
    
}

.main-area{
    position: absolute;   
    width: var(--width);
    height: var(--height);    
    top: 0;
    left: 0;        
    z-index: 10;
    
}

.imperial-message{
    display: block;
    width: 337px;
    height: 115px;
    margin: 230px auto 0 auto;
}

.troxos-area{
    margin-top: var(--main-top);
    width: var(--width);
    height: var(--main-height);
}

#troxos-area-775{
    padding-top: 120px;
    margin-bottom: 0px;    
    margin-left: auto;
    margin-right: auto;
    width: 775px;        
}

#canvasContainer-775{
    position: relative;
    width: 775px;
    z-index: 30;
}

#prizePointer {
    position: absolute;
    left: 287px;
    top: -105px;
    z-index: 999;
    width: 200px;
    height: 185px;
}

#payButton{
    position: absolute;
    z-index: 800;
    width: 351px;
    height: 351px;
    left: 212px;
    top: 212px;    
}

.footer{
    background-color: white;
    color: var(--footer-black);
    width: var(--width);
    height: var(--footer-height);   
    
}

.footer, .footer *{
    font-family: 'Ubuntu-Medium', sans-serif;
    
}

.footer p{
    text-align: center;
    display: block;
    width: 100%;
    font-weight: bold;
    color: var(--footer-black);
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--footer-black);
    font-size: 25px;
    
}

.footer a{
    text-decoration: none;
    color: var(--footer-black);
    
}

.footer .col{
    width: 250px;
    height: 40px;
    float: left;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    font-size: 0.9rem;
    
}

.footer .col.middel-col{
    width: 580px;
    
}


.background{
    position: absolute;
    width: var(--width);
    height: var(--height);
    top: 0;
    left: 0; 
    z-index: 1;
    
}

.header-message{
    position: absolute;
    width: 667px;
    height: 374px;
    top: var(--header-top-height);
    left: 219px; 
    z-index: 2;    
}

.jconfirm .jconfirm-holder{
    width: 50%;
    margin: 0 auto;
    
}
.jconfirm-box{text-align: center;}
.jconfirm.jconfirm-light .jconfirm-box{background-color: var(--popup-background-color) !important; border: 1px solid color: var(--popup-color);}
.jconfirm .jconfirm-box div.jconfirm-content-pane .jconfirm-content, .jconfirm .jconfirm-box div.jconfirm-content-pane.no-scroll{ min-height: 60px;}
.jconfirm.jconfirm-light .jconfirm-box .jconfirm-buttons button.btn-default{color: var(--popup-color) !important; background-color: transparent !important;}
.jconfirm.jconfirm-light .jconfirm-box .jconfirm-buttons{text-align: center; float: none!important;}
.jconfirm-title-c{font-family: 'DINNextW1G-Medium', sans-serif; line-height: 1.5; font-weight: 400; color: var(--popup-color);}
.jconfirm-content{font-family: 'DINNextW1G-Medium', sans-serif; font-weight: 400; color: var(--popup-color);}
.jconfirm .jconfirm-box div.jconfirm-content-pane .jconfirm-content{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    
}

/*
 * Fancy Box Area
*/

.fancybox__carousel .fancybox__slide.has-iframe .fancybox__content{
    width  : 80%!important;
    height : 80%!important;
    max-width  : 80%!important;
    max-height : 80%!important;
    margin: 0;
    
}

.fancybox__iframe html,
.fancybox__iframe body{
    background-color: #ffffff; 
    
}

body.simple{ 
    background-color: #ffffff;
    color: #000000; 
    font-family: 'InterTight', sans-serif;
    font-size: 1.2rem;       
    width: 96%; 
    top: 0px;
    height: auto;
    padding: 2%;
    overflow: auto;
    
}

.simple p{
    padding-bottom: 1rem;
    text-align: justify;
    
}

.simple strong{
    font-weight: bold;
    
}

.simple a{
    font-weight: bold;    
    color: #000000;    
    
}

/*
 * Fancy Box Area
*/

.hide-area{
    display: none;
}

.error-message{
    color: red;
    font-size: 2rem;
    font-weight: bold;
    line-height: 2.5rem;
    padding-bottom: 1rem;
    position: relative;
    z-index: 2; 
}

.popup-area.extra-class{
    background-color: white;
    border-radius: 10px;
    padding: 2rem 0;
    position: relative;    
    z-index: 2;     
}

.pop-up {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* full screen */
    background: rgba(0, 0, 0, 0.4); /* απαλό γκρι/μαύρο φόντο */
    align-items: center;
    justify-content: center;
    z-index: 9999;
    pointer-events: auto; /* επιτρέπει click μόνο στο popup */
    display: none;
}

.pop-up.active{
    display: flex;                
}

.pop-up .hide{
    display: none;
}

.pop-up::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* το ημιδιαφανές overlay */
    pointer-events: none; /* δεν μπλοκάρει το popup */
}

.pop-up button.close-popup {
    position: relative;
    z-index: 2; /* πάνω από το overlay */
    background: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.pop-up button.close-popup:hover {
    background: #f0f0f0;
}     

.popup-area{
    margin-top: 320px;
    width: 80%;
    text-align: center;
}

.full-image{
    width: 100%;
}

.full-image img{
    width: 100%;
    height: auto;
}

.popup-area h2{
    font-size:3rem; color: #ffffff; font-weight: bold;                
}

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

.winning-image {
    display: block;
    width: 300px; /* παράδειγμα */
    height: auto;
    transition: opacity 0.3s;
}

.image-wrapper.loading .winning-image {
    opacity: 0.5; /* δείχνει ότι φορτώνει */
    
}

.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 4px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.image-wrapper.loading .loader {
    display: block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

