html, .footer {
    font-family: 'Sofia Sans', sans-serif !important;
    font-size: 1rem !important;
}
body {
    /*background-image: url('../../img/texture-gray-2.png');*/
    height: 100%;
    margin: 0;
	background-attachment: scroll;
    background-position: left top;
    background-repeat: repeat;
    background-size: auto;
    display: flex;
    flex-direction: column;	

    font-family: "Lato", sans-serif !important;
    font-weight: 400 !important;
    font-style: normal !important;
    /*font-family: 'Sofia Sans', sans-serif !important;*/
    font-size: 1rem !important;
}

.preloader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-image: url('../img/Loading.gif');
    background-repeat: no-repeat; 
    background-color: #FFF;
    background-position: center;
}
 
.bg-primary {
    background-color:  #11a582 !important; /* #fd7e14*/
}

.bg-dark {
    background-color:  transparent !important; /* dark-green #0e8267 , dark-gray #343a40;*/ 
}

.navbar {
    padding: 0.5rem 1rem;
    background-image: url(../img/Untitled.png), url(../img/Untitled-noscale2.png);
    background-repeat: no-repeat, no-repeat;
    background-color: white;
    background-size: 100% 100%, cover;
    background-position: center center, left top;
    
    height: 280px !important;
    z-index: 100;
}
/*
.navbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50px; 
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  z-index: 1;
  pointer-events: none; 
}*/

.navbar-brand {
    margin: 30px 20px 0 130px !important;
}
.navbar-brand img {
    border-radius: 60px;
}
/*******Menu*******/
.sidebar {
    
	position: absolute;
    z-index: 20;
    display: flex;
    flex-direction: row !important;
    justify-content: flex-end;
    top: 320px;
    width: 100% !important;
    min-width: none !important;
    max-width: none !important;
    min-height: auto !important;
    transform: translateY(-75px);
    z-index: 999 !important;
   
}
.sidebar [data-toggle="collapse"]:before {
    /*content: "\f0d7" !important;*/
    content: "" !important;
}
.sidebar [aria-expanded="true"]:before {
    /*content: "\f0d8" !important;*/
    content: "" !important;
}
.sidebar li {
    display: inline-block;
}
.sidebar-toggle {
    top: 220px !important;
    right: 30px !important;
    position: absolute;
    background: #3aad8e;
    padding: 10px;
}

.list-unstyled li{
    border-radius: 25px;
    background: #3aad8e;/*kollane #e2b03f*/ /*roheline 3aad8e*/
    margin-right: 5px;
    margin-bottom: 2px;
}
.list-unstyled {
    margin-bottom: 0 !important;
    margin-right: 150px;
}
.list-unstyled li ul li {
    margin-bottom: 1px;
}

.sub-menu {
    position: absolute !important;
    z-index: 100;
    background-color: #343a40;
    margin-top: 1px;
}
.sub-menu li a {
    width: 235 !important;
}
/*******Menu end*******/

/*******Otsing*********/
.otsing-form {
    top: 20px !important;
    right: 155px !important;
    position: absolute;
}
.otsing {
    border-style: none;
    font-size: 15px !important;
    color: #ffffff;
}
.otsing-input {
    display: inline-block !important;
    width: auto !important;
    margin-left: 5px !important;
    border: 1px solid #bc982c !important;
    border-radius: 25px 0px 0px 25px;
    padding-left: 20px;
}
.otsing-submit {
    height: 38px !important;
    border-radius: 0px 25px 25px 0px;
    background-color: #e2b03f !important;
    border: 1px solid #bc982c;
    padding: 0px 13px 0px 10px !important;
    display: inline-block !important;
    margin-left: -5px;
    top: -1px !important;
    position: relative;
}
.otsing-submit:hover {
    background: #d5ac33 !important;
    border: 1px solid #cca632;
}
/*******Otsing end*******/

.content {
    padding: 50px 150px 30px 150px;
    flex-direction: column !important;
    display: flex !important;
    align-items: normal !important;
    min-height: 100vh !important;
    margin-top: 25px;
    
}
.content a {
    /*width: 170px !important;*/
     color: #007bff !important;
}
.content a.btn {
    color: #fff !important;
}
.logo-container {
    text-align: center;
    padding: 20px;
}
.qr-container {
    text-align: center;
    padding: 0px;
}
.image{
    max-width: 60%;
}
.card-body{
    background-color: rgba(255, 255, 255, 0.3) !important;
    
}
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 50px;
    display: none;
    z-index: 1500;
}

.back-to-top-admin {
    position: fixed;
    bottom: 5px;
    right: 25px;
    width: 50px;
    display: none;
    z-index: 1500;
}

.ad3datatable, .ad4datatable {
    overflow-x: hidden;
    font-size: 14px !important;
    /*table-layout: fixed; */
    /*word-wrap: break-word !important;*/
}

.pageloader {
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 500;
    background: 50% 50% no-repeat rgb(150,150,150,0.7);    
}

.tutvustus {
    z-index: 1000;
    position: relative;
}

/******** Cards ********/
    .no-bold {
        font-weight: normal;
    }
    .force-bold {
        font-weight: bold;
    }
    .timeline {
        max-width: 900px;
        /*margin: 0 auto;*/
        padding: 2rem 1rem;
    }
    .timeline-2 {
        padding: 2rem 1rem;
    }

    .timeline-year {
        display: flex;
        align-items: flex-start;
        margin-bottom: 3rem;
    }

    .timeline-midlink {
        margin: 0rem 1rem 1rem 1rem;
        width: 250px;
        display: flex;
        height: 55px;
        align-items: flex-end;
        font-size: 1.2rem;
        font-weight: bold;
    }

    .timeline-link, .timeline-link span {
        text-decoration: none;
        color: inherit;
        display: block;
        color: rgba(0, 0, 0, 0.75) !important;
		z-index: 1000;
    }
    .timeline-cards {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .timeline-card {
        background-color: #f8f9fa;
        border-radius: 10px;
        padding: 1rem 1.5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0 3px 8px rgba(0,0,0,0.1);
        transition: transform 0.2s ease;
    }

    .timeline-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 12px rgba(0,0,0,0.1);
    }

    .year-circle {
        min-width: 80px;
        height: 80px;
        border-radius: 50%;
        background: linear-gradient(135deg, #e2b03f, #e0b652);
        color: white;
        font-size: 1.3rem;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 1.5rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .profile-picture-small {
        min-width: 80px;
        height: 80px;
        border-radius: 50%;
        display: flex;
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: bold;
        margin-right: 1.5rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    }
    .profile-picture-medium {
        min-width: 150px;
        height: 150px;
        border-radius: 50%;
        display: flex;
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: bold;
        margin-right: 1.5rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    }
    .interview-container {
        /*max-width: 1280px;*/
    }
    .presidency-container {
        max-width: 1280px;
    }
    .presidency-card {
        background-color: #f8f9fa;
        border-radius: 10px;
        padding: 1rem 1.5rem;
        display: flex;
        justify-content: space-between;
        /*align-items: center;*/
        box-shadow: 0 3px 8px rgba(0,0,0,0.1);
        transition: transform 0.2s ease;
    }
    .presidency-data {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0.75rem;
        /*font-weight: bold;*/
        font-size: 1rem;
    }
    
    .profile-heading {
        background-color: #f8f9fa;
        border-radius: 10px;
        padding: 1rem 1.5rem;
        display: flex;
        justify-content: space-between;
        box-shadow: 0 3px 8px rgba(0,0,0,0.1);
        transition: transform 0.2s ease;
        
    }
    .profile-data {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: flex-start;
        gap: 0.75rem;
        font-weight: bold;
        font-size: 1rem;
    }
    .profile-data img {
        width: 30px;
        height: 22px;
        border-radius: 4px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    .interview-text {
        padding: 1.5rem 1.5rem;
    }
    .interview-text p {
        text-align: justify;
    }
    .interview-text a {
        color: #007bff !important;
    }

    .period {
        font-weight: 600;
        color: #333;
        font-size: 1rem;
    }

	.period2 {
        font-weight: 400 !important;
        color: #333;
        font-size: 1rem;
    }

    .country {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        font-weight: bold;
        font-size: 1rem;
    }

    .country img {
        width: 30px;
        height: 22px;
        border-radius: 4px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    .country-big {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        font-weight: bold;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .country-big img {
        width: 80px;
        height: 50px;
        border-radius: 4px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        margin-right: 2rem;
    }
    .country-logo {
        min-height: 250px;
        max-height: 250px;
        min-width: 250px;
        border-radius: 0%;
        display: flex;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        background-origin: content-box;
        padding: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: bold;
        margin-right: 1.5rem;
        margin-left: 1.5rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    }
    
    .sub-span {
        margin-left: 2rem;
        position: relative;
    }

    .ordinary-list {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0.75rem;
        font-size: 1rem;
    }
    .my-ul {
        max-width: 1200px;
        background-color: #f8f9fa;
        border-radius: 10px;
        padding: 1rem 1.5rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-start;
        box-shadow: 0 3px 8px rgba(0,0,0,0.1);
        transition: transform 0.2s ease;
        list-style: none;
        margin-left: 0;
        margin-top: 1rem;
        margin-bottom: 3rem;
        padding-left: 1.5rem;
    }
    .my-ul li {
        text-indent: -1.2em;
        padding-left: 1.2em;
    }
    .my-ul li:before {
        content: "🔹";
        padding-right: 5px;
    }
/******** Cards end ********/

    .tooltip-wrapper {
      position: relative;
      display: inline-block;
      margin: 100px;
    }

    .tooltip-box {
      position: absolute;
      display: none;
      background: rgba(255, 255, 255, 1);
      color: #000;
      padding: 10px;
      width: 40vw;
      border-radius: 5px;
      border: 1px solid #ccc;
      z-index: 9999;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
      font-weight: 400 !important;
    }

    /* Positsioon – töölaual vasakule */
    .tooltip-right {
      top: 0;
      left: 300px;
    }
/******* Tooltip end*******/
/******* Filters *********/
.filter-bar {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.filter-bar select {
  border-radius: 6px;
}
/******* Filters end*********/

/******** Sisu end ********/

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.centered td, .centered th {
    text-align: center;
}
.page-container {
    flex: 1 0 auto;
}

.table {
    background-color: white;
/*    border-radius: 5px;*/
    border-spacing: 0;
    
}

.table a {
    font-weight: 500;
    color: #00c2df;
}

a:link, a:visited, a:hover, a:active {
    color: black;
    text-decoration-line: none;
    border-radius: 25px;
}

.filelink {
    font-weight: 400 !important;
    text-decoration: none !important;
    color: #007bff  !important;
}

#legend {
    padding: 0.5rem !important;
}
.container {
    width: auto;
    max-width: 1080px;
    padding: 0 15px;
}
.container .text-muted {
    margin: 20px 0;
}
.header{
/*
    abackground: #0003A6;
    color: white;
    height: 50px;
    line-height: 50px;
    margin-bottom: 10px;
*/
    background: white;
    height: 77px;
}
.slogan{
	font-size: 17px;
	font-weight: 500;
	text-transform: uppercase;
	font-family: 'Cabin', Helvetica, Arial, sans-serif;
	margin: 0;
	display: block;
	padding: 25px 0;
	color: #666;
	float: right;
	margin-right: 10px;
}

.menu-header{
    text-align: center;
    vertical-align: middle;
    padding: 10px 75px;
    color: white;
    font-size: 1.1rem;
}

.clearfix {
    overflow: auto;
}
/* footeri osa*/
.footer {    
    padding: 1rem 10rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #bbc5db !important;
    /*box-shadow: 0 0px 6px 2px rgba(50, 50, 50, 0.5) !important;*/
    
    border-top: 2px solid #e2b03f;
    color: #fff;
    
    width: 100%;
    text-align: center;
    min-height: 150px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1rem;
    margin-bottom: 1rem;
}
.footer-middle {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1rem;
    margin-bottom: 1rem;
    margin-left: 3rem;
} 
.footer-middle-2 {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1rem;
    margin-bottom: 1rem;
    margin-left: 3rem;
} 


.copyright {
    float: none;
    font-size: 16px;
}

.footer a {
    color: white;
    text-decoration: none;
}

footer > :nth-child(3) { flex-grow: 3 }

#qr-canvas {
    margin: auto;
    width: calc(100% - 20px);
    max-width: 400px;
}

.btn {
    font-size: 1.1rem !important;
}
.my-icon {
    font-size: 1.4rem !important;
}
#btn-scan-qr img {
    height: 10em;
    padding: 15px;
    margin: 15px;
    background: white;
}
#qr-result {
    font-size: 1.2em;
    margin: 20px auto;
    padding: 20px;
    max-width: 700px;
    background-color: white;
}

/*Journey*/
#myViewport {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgb(53, 53, 53) !important;
    overflow: auto !important;
    max-height: 650px !important;
    max-width: auto !important;
    -ms-overflow-style: none !important;  /* IE and Edge */
    scrollbar-width: none !important;  /* Firefox */
    flex-grow: 1 !important;
    
}

#myViewport::-webkit-scrollbar {
    display: none !important;/* Hide scrollbar for Chrome, Safari and Opera */
}

.zoomButton {
    position:fixed;
    z-index: 10;
    font-size: 1.5rem !important;
    opacity: 0.9;
}

.mapHeading {
    position:fixed;
    z-index: 10;
    font-size: 1.7rem !important;
    font-family: 'Alkatra', sans-serif !important;
    background-color: #6c757d;
    opacity: 0.9;
    padding: 0px 5px !important;
    color: #fff;
    border-radius: 5px;
}

#myContent {
    margin: 0px impt !important;
    padding: 0px !important;
}

.myBadge {
    position: absolute !important;
    color: #555555;/*#815939;*/
    font-family: 'Alkatra', sans-serif !important;
    font-size: 3rem;
}

.myBadgeSmall {
    position: absolute !important;
    color: #555555;/*#815939;*/
    font-family: 'Alkatra', sans-serif !important;
    font-size: 2rem;
}

.myMarker {
    position: absolute !important;
    font-size: 80px !important;
    -webkit-filter: drop-shadow(5px 8px 5px #222);
    filter: drop-shadow(5px 8px 5px #222);
    animation: resize 2.0s;
    animation-iteration-count: infinite;
}
.myPlace{
    position: absolute !important;
    -webkit-filter: drop-shadow(5px 5px 5px #222);
    filter: drop-shadow(5px 5px 5px #222);    
}

.myLabel{
    position:absolute;
    text-align:center;
    margin:0px;
    padding:5px;
    border:10px solid;
    font-size:24px;
    border-image: url(../../img/label.png) 55 20 55 fill / 20px 20px / 0 stretch;
}
.myLabelSmall {
    font-size: 1rem !important;
    position:absolute;
    text-align:center;
    margin:0px;
    padding:5px;
    border:10px solid;
    font-size:24px;
    border-image: url(../../img/label.png) 55 20 55 fill / 20px 20px / 0 stretch;
}

.myImage {
    display: block !important;
    width: auto !important;
    height: auto !important;
    margin: 0px !important;
    padding: 0px !important;
    flex-shrink: 0 !important;
    overflow: hidden;
}

.responsive {
    width: 100%;
    max-width: 300px;
    height: auto;
}

.modal-content {
    /*background-image: url('../../img/texture-gray-2.png') !important;*/
    background-attachment: scroll !important;
    background-position: left top !important;
    background-repeat: repeat !important;
    background-size: auto !important;
    font-size: 1.2rem;
}
.modal-header, .modal-header button {
    color: white !important;
}
.modal-body {
    text-align: left;
}

.js-lock-closed {
    display: block; 
    color: #dc3545;
}

.js-lock-open {
    display: none;
    color: #28a745;
}

@keyframes resize {
    0% { transform: scale(1.0, 1.0); }
    10% { transform: scale(1.05, 1.05); }
    20% { transform: scale(1.1, 1.1); }
    30% { transform: scale(1.15, 1.15); }
    40% { transform: scale(1.2, 1.2); }
    50% { transform: scale(1.25, 1.25); }
    60% { transform: scale(1.2, 1.2); }
    70% { transform: scale(1.15, 1.15); }
    80% { transform: scale(1.1, 1.1); }
    90% { transform: scale(1.05, 1.05); }
    100% { transform: scale(1.0, 1.0); }
}

.btn-regular{
    padding: 3px 15px;
}

hr.solid{
    border-top: 3px solid #000 !important;
}
@media (max-width: 1200px) {
    .navbar {
        background-repeat: no-repeat !important;
        background-color: white !important;
        background-size: auto 100% !important;
        background-position: left top !important;
        height: 350px !important;
    }
    .navbar-brand {
        margin: 0 10px 0 0px !important;
    }
    .otsing-form {
        top: 20px !important;
        right: 50px !important;
        position: absolute;
    }
    .sidebar {
        flex-direction: column !important;
        justify-content: flex-start;
        width: 100% !important;
        min-width: 280px !important;
        max-width: 280px !important;
        min-height: calc(100vh - 49px) !important;
        margin-right: -280px !important;
		margin-left: 0px !important;
        color: black !important;
        position: absolute;
        transform: translateY(-75px);
        right: 0;
    }
    .sidebar.toggled {
        margin-right: 0 !important;
    }
    .sidebar u li a {
        display: block;
    }
    .sidebar-light [aria-expanded="true"], .sidebar-light ul ul a {
        background: none !important;
    }
    .content {
        padding: 30px 20px 30px 20px;
    }
    .sub-menu {
        position: relative !important;
        z-index: 100;
    }
    .sub-menu li a {
        width: auto !important;
    }
    .list-unstyled li{
        width: 280px !important;
        margin-bottom: 1px;
    }
    
    .footer {    
        padding: 1rem 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        
        width: 100%;
        /*height: 150px;*/
    }
    .footer-left {
        align-items: center;
    }
    .footer-middle {
        margin-left: 0;
        margin-top: 0.75rem;
    }
    .footer-middle-2 {
        margin-left: 0;
        margin-top: 0.75rem;
    }
    .timeline-midlink {
        width: 150px;
        height: auto;
        display: flex;
        font-size: 1.1rem;
    } 
}

@media (max-width: 991px) {
    .country-logo {
        min-height: 150px;
        max-height: 150px;
        min-width: 150px;
    }
}

@media (max-width: 600px) {
    .timeline-year {
        flex-direction: column;
        align-items: flex-start;
    }
    .profile-heading {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
    .presidency-card {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
    .timeline-card {
        align-items: flex-start;
        gap: 1rem; /* Lisa vahe perioodi ja lipu vahele */
    }
    .timeline-midlink {
        width: auto;
        height: auto;
        display: flex;
    }
    .profile-picture-medium {
        margin-bottom: 1rem;
    }
    .year-circle {
        margin-bottom: 1rem;
    }
    .profile-picture {
        margin-bottom: 1rem;
    }
    .country-logo {
        margin-bottom: 3rem;
    }
    .country-big img {
        margin-right: 1rem;
    }
    
    .tooltip-box {
        top: 100%;     /* ilmub allapoole */
        left: 0;
        transform: none;
        width: 70vw;
    }
    
    .filter-bar {
        padding: 1rem;
    }
}

.list-grupp2 {
	flex-direction: row !important;
}	
