/*
Theme Name: Twenty Fifteen Child
Theme URI: http://example.com/twenty-fifteen-child/
description: >-
  Twenty Twenty Child Theme
Author: Inc
Author URI:
Template: twentytwenty
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: twentytwenty-child
*/


/*////////////BODY/////////*/

h3{
font-family: 'Fira Sans';
font-size: 2.5rem;
font-weight: 700;
color: #0091D0;
line-height: 1.1em;
}

body#tinymce.wp-editor.content{
	width: 100% !important;
}

/* statistika */

.counter-row .elementor-widget-container{
	margin: 0 !important;
	padding: 0 !important;
}

.counter-row{
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    align-items: flex-end;
    justify-content: center;
    z-index: 0;
    position: relative;
}

.counter-info-group{
    text-align: center;
    overflow: hidden;
}

.counter-row p{
	margin: 0;
	padding: 0;
	color: #0091D0;
	text-transform: uppercase;
	font-weight: 500;
}
	
.counter-number p{
    font-family: "Fira Sans Condensed", Sans-serif;
    font-size: 40px;
    font-weight: 800;
    line-height: 1em;
    letter-spacing: 0px;
    }
 
.counter_all{
	display: flex;
    justify-content: center;
    background: url('https://aitanlapsi.tomra.ee/wp-content/uploads/2021/05/round.png') no-repeat center 800%;
    background-size: 90%;
    position: relative;
    
} 
.counter_small{
    background-color: #F5F5F5;
    border-radius: 150px;
    border: 4px #fff solid;
    min-width: 200px !important;
    min-height: 200px !important;
    max-width: 200px;
    max-height: 200px;
    margin-bottom: 30px;
    align-items: center;
    
}

@media (min-width: 680px){
.counter_small .counter-number p{
    font-size: 40px;
    }
.counter_small .counter-intro p, .counter_small .counter-outro p{
    font-size: 95%;
    }
}

.left{
    z-index: 1;
    transform: translatex(30px);
}

.left::after{
    animation-fill-mode: forwards;
	animation-duration: 0.6s;
  	animation-delay: 0s;
  	animation-name: vari_lr;
}

.right{
    z-index: 0;
    transform: translatex(-30px);
    animation-fill-mode: forwards;

}
.right::after{
    animation-fill-mode: forwards;
	animation-duration: 0.6s;
  	animation-delay: 0.6s;
  	animation-name: vari_lr;
}
.counter_big{
    background-color: #F5F5F5;
    border-radius: 150px;
    border: 4px #fff solid;
    min-width: 260px !important;
    min-height: 260px !important;
    max-width: 260px;
    max-height: 260px;
    margin-bottom: 30px;
    align-items: center;
    justify-content: center !important;
}

.counter_all::after{
    content: "";
    background: url('https://aitanlapsi.tomra.ee/wp-content/uploads/2021/05/shadow_round.png') no-repeat center center;
    background-size: cover;
    width: 100%;
    height: 8px;
   position: absolute;
   top: 200px;
   
}

.counter_big::after{
	top: 260px;
    animation-fill-mode: forwards;
	animation-duration: 0.6s;
  	animation-delay: 0.3s;
  	animation-name: vari;
}

.one, .two, .three{
visibility: hidden;
animation-timing-function: ease-out;
}

.one{
	animation-fill-mode: forwards;
	animation-duration: 0.6s;
	animation-delay: 0s;
	animation-name: opa_l;
  }

.two{
  animation-fill-mode: forwards;
  animation-duration: 0.6s;
  animation-delay: 0.3s;
  animation-name: opa_m;
  }
  
.three{
	animation-fill-mode: forwards;
	animation-duration: 0.6s;
  	animation-delay: 0.6s;
  	animation-name: opa_r;
}

/*///////////////////////////////////// MOBIIL */

@media (max-width: 699px){

.counter-row{
     align-items: flex-end;
     justify-content: center;
     flex-flow: column wrap;
     z-index: 0;
     margin-bottom: -160px;
 }   
 
.left{
    transform: translatex(0px);
    z-index: 0;
}

.right{
    transform: translatex(0px);
    transform: translatey(-135px);
}
.counter_big{
    transform: translatey(-67px);
    min-width: 200px !important;
    min-height: 200px !important;
    max-width: 200px;
    max-height: 200px;
}
/* .counter_small{
    min-width: 260px !important;
    min-height: 260px !important;
    max-width: 260px;
    max-height: 260px;
}*/

.counter_small::after{
   top: 260px; 
}
.one{
	animation-name: opa_l_p;
  }

.two{
  animation-name: opa_m_p;
  }
  
.three{

  	animation-name: opa_r_p;
}
.right::after, .left::after{
  	animation-name: vari_lr_p;
}

}

/*/////////////////////////////////////* ANIMAD/

/* animatsioonid */


@keyframes opa_l{
  0% {opacity: 0;display: none}
	1% {opacity: 0; visibility: visible; transform: translate(30px, 16px);}
  100% {opacity: 1; transform: translate(30px, 0); visibility: visible;}
}
@keyframes opa_m{
 0% {opacity: 0;display: none}
	1% {opacity: 0; visibility: visible; transform: translate(0, 16px);}
  100% {opacity: 1; transform: translate(0, 0); visibility: visible;}
}
@keyframes opa_r{
 0% {opacity: 0;display: none}
	1% {opacity: 0; visibility: visible; transform: translate(-30px, 16px);}
  100% {opacity: 1; transform: translate(-30px, 0); visibility: visible;}
}
@keyframes vari_lr{
 0% {}
	1% {top: 186px;}
  100% {top: 200px;}
}

@keyframes vari{
 0% {}
	1% {top: 249px;}
  100% {top: 260px;}
}

/* mobiili animad */

@keyframes opa_l_p{
  0% {opacity: 0;display: none}
	1% {opacity: 0; visibility: visible; transform: translate(0, 16px);}
  100% {opacity: 1; transform: translate(0, 0); visibility: visible;}
}
@keyframes opa_m_p{
 0% {opacity: 0;display: none}
	1% {opacity: 0; visibility: visible; transform: translate(0, -51px);}
  100% {opacity: 1; transform: translate(0, -67px); visibility: visible;}
}
@keyframes opa_r_p{
 0% {opacity: 0;display: none}
	1% {opacity: 0; visibility: visible; transform: translate(0, -119px);}
  100% {opacity: 1; transform: translate(0, -135px); visibility: visible;}
}
@keyframes vari_lr_p{
 0% {}
	1% {top: 184px;}
  100% {top: 200px;}
}


/*////////////////////// TABS /////////*/

.tabs{
    display: flex;
    justify-content: space-evenly;
    flex-direction: column;
    }

.tab {
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
}

/* Style the buttons inside the tab */
.tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    font-size: 17px;
    font-weight: 400;
    color: silver;
    white-space: nowrap;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: rgba(0,0,0,0.03);
  text-decoration: none;
   transition: 0.3s;
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: #0091D0;
  color: #fff;
  text-decoration: none;
}

/* Style the tab content */
.tabcontent {
  display: none;
  padding: 6px 12px;
}

/*///////// Mobiil tabs //////*/

@media (max-width: 699px){
.tabs{
    flex-direction: row-reverse;
    }

.tab {
   flex-direction: column;
}
.tab button{
text-align: left;
}
}