/*
Theme Name:     Dettol Game
Description:    Dettol Project
Author:         toolbox

*/

:root {    
  --main-color: #ffffff;  
  --border-color: #ffffff;

  --main-background-color: #ef3232;
    
  --button-color: #ffffff;
  --border-color: #ffffff; 
  --button-background-color: #ef3232;  

  --popup-background-color: #ef3232;
  --popup-color: #ffffff;    
}

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

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

html{
    font-size: 16px;            
}

body{
}

body *{
}

html, body{
    overflow: hidden;
}

.img img{
    width: 100%;
    height: auto;
}

.action-button{
    background-color: transparent;
    border: 0;
    padding: 0;
    margin: 0;
}

#main-bord, #intro, #end, #bord-effect{
    position: relative;
    width: 1250px;
    height: 800px;
    overflow: hidden;
    margin: 0;
    display: none;
}

#main-bord.active, #intro.active, .bug.active, #blue-circle.active, #green-circle.active, #end.active, #bord-effect{
    display: block;    
}

.start-game{
    position: absolute;    
    z-index: 5;    
}

.start-action, .badge-canvas, .top-title, .block-bottles, .end-image{
    position: absolute;    
    z-index: 30;
}

.end-image{
    bottom: 30px;
}

.block-bottles{
    right: 0;
    bottom: 0;
    z-index: 70;
}

.top-title{
    top: 0;
    left: 0;
}

.badge-canvas, .start-action.hide, .block-bottles.hide{
    display: none;
}

#blue-circle{
    z-index: 35;    
}

#game-bord{
    width: 1250px;
    height: 500px;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 5;
    pointer-events: none; /* να μην εμποδίζει drag */
    overflow: hidden;                
}


.canvas-area{
    position: absolute;
    left: 0;
    top: 0;			
    width: 1250px;
    height: 500px;			
    z-index: 6;
}
			
#topCanvas{
    z-index: 7;
}

#topImageCanvas{
    display: none;
}

.zone{
    position: absolute;
    border: 0; /* μόνο για να φαίνεται το πλέγμα */
    pointer-events: none;
    z-index: 47;

    transition: opacity 0.2s ease, background-color 0.2s ease;
}            

.zone-opacity{
    pointer-events: none; /* να μην εμποδίζει drag */
    border: 0; 
    opacity: 0.8;
}

.zone-opacity-yellow{
    background-color: transparent;                
}

.zone-opacity-green{
    background-color: transparent; 
}            

.bottle, .fake-bottle{
    position: absolute;
    width: 100px;
    height: 260px;
    z-index: 50;                
    bottom: 0;
}

.bottle-header{
    position: absolute;
    width: 100%;
    height: 10%;
    top: 0;
    left: 0;
}

.bottle.rotate-bottle{
    rotate: -15deg;                
}

#left-bottle{
    right: 150px;
}

#right-bottle{
    right: 0;
}            

.circle {
    position: absolute;
    width: 160px;   /* διάμετρος = 2 * 30px */
    height: 160px;
    border-radius: 50%;
    background-color: transparent;
    pointer-events: none; /* να μην εμποδίζει drag */                
    z-index: 55;
}

.bug{
    position: absolute;
    background-color: transparent;     
    width: 50px;
    height: 50px;
    z-index: 30;
    display: none;
}

.second-time{
    display: none;
}

.second-time.show{
    display: block;
    z-index: 60;
}

.second-time.show.change-z-index{
    z-index: 30;                
}

.targeted{
    background-color: transparent;                			
}			

/*@keyframes dissolve {
  0% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: blur(0);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2) rotate(10deg);
    filter: blur(4px);
  }
  100% {
    opacity: 0;
    transform: scale(1.5) rotate(25deg);
    filter: blur(12px);
  }
}

.targeted img {
  animation: dissolve 1s forwards ease-out;
}*/

.targeted img {
  border-radius: 50%; /* στρογγυλό */
  animation: pop-alt 0.4s forwards ease-out;
  transform-origin: center; /* η κίνηση γίνεται από το κέντρο */
}

@keyframes pop-alt {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  30% {
    transform: scale(1.4) rotate(5deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.1) rotate(-5deg);
    opacity: 0.9;
  }
  65% {
    transform: scale(0.8) rotate(8deg);
    opacity: 0.7;
  }
  80% {
    transform: scale(0.5) rotate(-8deg);
    opacity: 0.4;
  }
  100% {
    transform: scale(0) rotate(0deg);
    opacity: 0;
  }
}


.background-image, .bottle-image{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;              
}            

.message{
    font-family: 'DettolSans-SemiBold';    
    color: #036e37; 
    position: absolute;
    z-index: 30;        
}

.blur{
    filter: blur(4px);    
}

.restart{
    font-family: 'DettolSans-ExtraBold', sans-serif;
    color: #036e37;
    position: absolute;
    z-index: 90;    
    text-decoration: none;
    font-weight: bold;
}

/* -------------------------------------------------------------------------- */

.jconfirm .jconfirm-holder{
    width: 80%;
    margin: 0 auto;
}

.jconfirm-box{
    text-align: center;
}

.jconfirm.jconfirm-light .jconfirm-box{
    background-color: var(--popup-background-color) !important; 
    border: 1px solid var(--popup-color);
}

.jconfirm .jconfirm-box div.jconfirm-content-pane .jconfirm-content, .jconfirm .jconfirm-box div.jconfirm-content-pane.no-scroll{
    min-height: 20px;
}

.jconfirm.jconfirm-light .jconfirm-box .jconfirm-buttons button.btn-default{
    color: var(--popup-color) !important; 
    background-color: transparent !important;
    font-size: 4rem;
    
}

.jconfirm .jconfirm-box div.jconfirm-title-c{
    font-family: 'MyriadPro-Regular', sans-serif; 
    font-size: 6rem !important;
    line-height: 6.5rem !important; 
    font-weight: 400; 
    color: var(--popup-color);
    
}

.jconfirm .jconfirm-box .jconfirm-content{
    font-family: 'MyriadPro-Regular', sans-serif; 
    font-weight: 400; 
    color: var(--popup-color);
    font-size: 3rem !important;
    line-height: 3.5rem !important;     
    
}

.jconfirm.jconfirm-light .jconfirm-box .jconfirm-buttons{
    float: none !important;
    
}