@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: normal;
  font-display: block;
  src: url('fonts/roboto/roboto-latin-ext-400-italic.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: normal;
  font-display: block;
  src: url('fonts/roboto/roboto-latin-400-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: bold;
  font-display: block;
  src: url('fonts/roboto/roboto-latin-ext-700-italic.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: bold;
  font-display: block;
  src: url('fonts/roboto/roboto-latin-700-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: normal;
  font-display: block;
  src: url('fonts/roboto/roboto-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: normal;
  font-display: block;
  src: url('fonts/roboto/roboto-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: bold;
  font-display: block;
  src: url('fonts/roboto/roboto-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: bold;
  font-display: block;
  src: url('fonts/roboto/roboto-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Stat Custom';
  src: url('fonts/stat/stat.woff') format('woff'), url('fonts/stat/stat.ttf') format('ttf');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
	font-family: 'Font Awesome 6 Free';
	font-style: normal;
	font-weight: 400;
	font-display: block;
	src: url("fonts/fa/fa-regular-400.woff2") format("woff2"), url("fonts/fa/fa-regular-400.ttf") format("truetype");
}

@font-face {
	font-family: 'Font Awesome 6 Free';
	font-style: normal;
	font-weight: 900;
	font-display: block;
	src: url("fonts/fa/fa-solid-900.woff2") format("woff2"), url("fonts/fa/fa-solid-900.ttf") format("truetype");
}

html, 
body {
    font-family: 'Roboto';
    background-color: white;  
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;    
    position: relative;
    min-height: 100vh;
}

h1 {
    font-size: 40px;
    line-height: 45px;
}

h3 {
	font-size: 22px;
    line-height: 28px;
	font-weight: bold;
    margin-top: 8px;
    margin-bottom: 8px;
}

h4 {
	font-size: 16px;
    line-height: 22px;
	font-weight: bold;
    margin-top: 16px;
    margin-bottom: 8px;
}

p:not(:last-child) {
    margin-bottom: 8px;
}

::-moz-selection {
  color: white;
  background: black;
}

::selection {
  color: white;
  background: black;
}

.navigation-container {
    display: flex; 
    flex-direction: column;
    position: relative;
    width: 100%;
    background-color: white;
}

.meta-header-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: black;
    padding-left: 56px;
    padding-right: 56px;
}

@media only screen and (max-width: 1024px) {
    .meta-header-container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

.social-container {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
}

@media only screen and (max-width: 960px) {
    .social-container {
        display: none;
    }
}

html[lang="et"] #et {
    color: white;
}

html[lang="en"] #en {
    color: white;
}

.main-navigation {
    padding-top: 1px;
    padding-bottom: 0;
    padding-left: 40px;
    padding-right: 56px;
    background-image: radial-gradient( circle at 1px 1px, #999 1px, #fff 0 );
    background-size: 18.8px 18.8px;
    background-position: 10px 11.5px;    
}

.main-navigation img {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;   
    background-color: white;
    padding-right: 5px;
    margin: 0;
    cursor: pointer;
}

footer {
    display: flex;
    flex-direction: row;
    gap: 56px;
    background-color: black;
    width: 100%;   
    padding-left: 56px;
    padding-right: 56px;
    padding-top: 32px;
    padding-bottom: 52px;
    background-image: radial-gradient( circle at 1px 1px, #999 1px, #000 0 );
    background-size: 18.8px 18.8px;
    background-position: 17px 17px;     
}

@media only screen and (max-width: 1024px) {
    footer {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media only screen and (max-width: 576px) {
    footer {
        flex-direction: column;
        gap: 56px;
    }	
}

.footer-item-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: fit-content;
    background-color: black;
    padding: 24px;
    height: fit-content;
}

.footer-item-container a {
    display: flex;
    gap: 16px;
    font-size: 13px;
    font-weight: 400;
    line-height: 16px;
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.footer-item-container .contact-phone,
.footer-item-container .contact-mail {
    font-size: 18px;
    line-height: 24px;
    font-weight: bold;   
}

.contact-phone:before,
.contact-mail:before {
    font-family: 'Stat Custom';
    font-size: 18px;
    font-weight: 400;   
}

.contact-phone:before {
    content: "\e90a";
}

.contact-mail:before {
    content: "\e916";
}

button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    background-color: black;
    color: white;
    border-radius: 0; 
    outline: none;
    border: 2px solid black;
    font-size: 16px!important;
    padding: 6px 22px 6px 22px;
    width: fit-content;
    min-width: 40px;
}

button:hover {
    background-color: white;
    color: black;
}

button:focus-visible {
    outline: #9A82DB solid 2px;
    outline-offset: 2px;
}

select {
    padding: 8px 24px 8px 24px;
    border: 1px solid black;
    font-size: 16px;
    color: black;   
}

select:hover,
select:focus-visible,
select:focus,
select:active {
    border: 2px solid black;
    padding: 7px 23px 7px 23px;
    outline: none;
}

select:after {
    font-family: 'Stat Custom';
    content: "\e928";
    font-size: 16px;
    font-weight: 400;
}

footer h2 {
    color: white;
    font-size: 22px;
    line-height: 26px;
}

.active {
  /* Add your styles for the active button here */
	font-weight: bold;
    color: red;
}

.language-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
	gap: 8px;
}

.language-container li a,
.language-container span {
	font-size: 14px;
	line-height: 20px;
	font-weight: bold;
	color: #565656;
}

.language-container li a {
	text-decoration: none;
}

.language-container li a.selected {
	color: white;
}

.header-notification {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    background-color: #EFE9FB;
    font-size: 16px;
    line-height: 22px;
    font-weight: 400;
    padding: 8px 56px 8px 56px;
    text-align: center;
}

.header-notification-content {
    max-width: 1920px;
    margin: auto;
}

@media only screen and (max-width: 1024px) {
    .header-notification {
        padding: 8px 24px 8px 24px;
    }
}


.app-container {
	padding-top: 32px;
	padding-bottom: 48px;
	padding-left: 24px;
	padding-right: 24px;
}

.app-title {
    text-align: left;
	max-width: calc(100vw - 48px);
}

.app-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background-color: white;
}

.viz-container {
	max-width: calc(100vw - 64px);
    overflow-x: auto;
}

.viz-content {
	display: flex;
	justify-content: flex-start;
	position: relative;
	width: 960px;
}

.yearSelect {
    display: flex;
    justify-content: flex-start;
    align-items: center;
	margin-top: 24px;
	margin-bottom: 12px;
}

#yearSelect-menu {
	box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.10);
}

#headerNote {
	font-size: 16px;
}

.baloon {
    background-color: white!important;
    opacity: 1!important;
    border-radius: unset!important;
    border: unset!important;
    box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.2)!important;
    padding: 12px 24px!important;
    min-width: 200px!important;
    display: flex;
    justify-content: center;
    align-items: center;
	width: 215px;
	left: unset!important;
}

#description {
	position: relative;
    font-size: 16px;
    font-weight: bold;
    width: 100%;	
}

#preResult,
#result {
	max-width: calc(100vw - 48px);
}

#preResult {
    text-align: left;
}

#result {
    display: flex;
    justify-content: flex-start;
    align-items: center;
	gap: 16px;
    height: unset;
    border-radius: unset;
    border: unset;
    border-left: 8px solid #00A3FF;
    background-color: white;
    border-top: 1px solid #00A3FF;
    border-bottom: 1px solid #00A3FF;
    border-right: 1px solid #00A3FF;
    padding: 16px 20px 16px 16px;
	font-size: 16px!important;
	color: black!important;	
	margin-bottom: 24px;
}

#result::before {
    content: '';
    display: block;
    position: relative;
    background: url('../img/info-icon.svg') no-repeat center center;
    background-size: 24px 24px;
    height: 22px;
    width: 22px;
    margin-top: -2px;
}

#result span {
	font-size: 16px!important;
	color: black!important;
}

ul.male img,
ul.female img {
	padding: 8px;
}

ul.male li,
ul.female li {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

/*JQUERY UI OVERWRITES START*/
.ui-widget {
	font-family: 'Roboto';
	font-size: 16px;
}

.ui-selectmenu-button.ui-button {
    text-align: left;
    white-space: nowrap;
    border-radius: 0;
    background-color: white;
    height: 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
	border: 1px solid #DDD;
	width: 100%;
}

.ui-selectmenu-button.ui-button:focus-within {
	border: 2px solid black;
}

.ui-selectmenu-text {
	order: 1;
	margin-right: 0;
	margin-left: 1px;
}

.ui-selectmenu-button.ui-button:focus-within .ui-selectmenu-text {
	margin-left: 0;
}

.ui-selectmenu-icon {
	order: 2;
}

.ui-widget.ui-widget-content {
    border: none;
	box-shadow: var(--boxshadow);
}

.ui-menu .ui-menu-item-wrapper {
	display: flex;
	justify-content: flex-start;
	align-items: center;
    position: relative;
    padding: 4px 12px 4px 16px;
	height: 44px;
}

.dropdown-overflow.ui-menu .ui-menu-item-wrapper {
	display: flex;
	justify-content: flex-start;
	align-items: center;
    position: relative;
    padding: 4px 12px 4px 16px!important;
	height: 44px;
}

.dropdown-overflow .ui-selectmenu-optgroup + .ui-menu-item .ui-menu-item-wrapper {
	padding: 4px 12px 4px 16px!important;
}

.dropdown-overflow {
	height: 240px;
}

.dropdown-overflow-alt {
	height: 240px;
}

.ui-widget-content .ui-state-active {
    border: none;
    background: #F8F8F8;
    font-weight: 700;
    color: black;
}

.ui-menu .ui-menu-item-wrapper::after {
	content: "test";
	height: 0;
	visibility: hidden;
  	overflow: hidden;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
    font-weight: 700;
}
/*JQUERY UI OVERWRITES END*/

#preResult {
	font-size: 24px;
	font-weight: 700;
}

#headerNote {
	font-size: 16px;
	font-weight: 400;	
}

.balloon-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* z-index: -1; */
    background: red;
    display: flex;
    justify-content: center;
}

.baloonLine {
	position: absolute!important;
	top: unset!important;
	left: 0!important;
	bottom: 0;
	width: 100%;
	font-size: 16px!important;
	font-weight: 400!important;
	
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: unset;
    border-radius: unset;
    border: 1px solid black;
    background-color: black;
    padding: 16px 20px;
    color: white;
    margin-bottom: 24px;
	line-height: 20px;
}

#baloonContainer {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 78px;
    margin-top: 32px;
	padding-left: 22.5px;
}

#baloonContainer .baloon {
	position: relative!important;
	top: unset!important;
}

line:hover {
	cursor: pointer;
}

/*************************/
/*** Küpsiste nõusolek ***/
/*************************/

#cookie-consent-banner-wrapper {
  align-self: flex-start;
  padding: 0;
}
#cookie-consent-banner {
  max-width: calc(100% - 2 * 24px) ! important;
}

@media print {
  body > nav, body > footer {
    display: none ! important;
  }
}
