:root {
    --font-tavatext: 'Courier New', cursive;
    --font-pealkiri: 'Courier New', cursive;
    --font-kysimus: 'Courier New', cursive;
    
    --color-valge: #fff;
    --color-kysimus: #000;
    --color-hovertext: #fff;
    --color-selectedtabtext: #fff;
    --color-tabpiire: #ccc;
  
    --color-bodybg: #fdfdf6;
    --color-tabribbonbg: #fdfdf6;
    --color-buttonbg: #d9e7cb;
    --color-buttonhoverbg: #95bc84;
    --color-selectedtabbg: #386a20;
    
    --color-sisuhaldurbg: #889f96;
    --color-summernotebg: #575856;
}
body {
    background: var(--color-bodybg);
    
    margin: 0;
}
.keelevalik{
    float: right;
    text-decoration: none !important;
    margin-right: 30px;
}
.keelevalik a{
    text-decoration: none !important;
}
button{
    color: var(--color-hovertext) !important;
    background-color: var(--color-buttonhoverbg)!important;   
    
    }

#smartloginbutton img{
    max-width: 12%; /* Ensure the image doesn't exceed the button width */
    height: auto; /* Maintain aspect ratio */
    margin-right: 5px; /* Add spacing between the image and text */
    margin-bottom: -0.5em;
}

.login-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    width: 300px;
    /* margin: 5px auto; */
    padding: 20px;
}
.login-container a {
    font-family: 'Courier New', cursive;
      color: var(--color-selectedtabbg);

  text-decoration: none;
}
.login-container a:hover {
  color: #9b9f96;
  font-weight: bold;
    
}
.login-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}
.login-container viga {
    font-family: 'Courier New', cursive;
    color: #7a0303;
    font-weight: bold;
    text-decoration: none;
}
.login-rida {
    margin-bottom: 5px;
    display: flex;
    flex-wrap: wrap;
}
.login-group {
     width: 100%;
    margin-bottom: 10px;
    margin-right: 2px;
}
.login-group label {
    display: block;
    text-align: left;
    margin-bottom: 5px;
}
.login-group input {
    width: 100%;
    padding: 10px 15px; 
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    background-color: #fff;
    box-sizing: border-box; 
}
input:focus {
     outline: none;
     border-color: var(--color-selectedtabbg);
     box-shadow: 0 0 0 0.2rem var(--color-selectedtabbg);
   
}
.login-nupp {
    border: none;
    border-radius: 4px;
    padding: 15px;
    font-size: 18px;
    width: calc(100% - 20px);
    cursor: pointer;
    min-width: 300px;
}


kasutaja-error {
    color: #7a0303 !important;
    font-weight: bold !important;
    font-size: 30px !important;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    text-align: center !important; 
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
}
.required:after {
    content:" *";
    color: #7a0303;
  }


  /* REGISTREERU */

 .registreeri-container {
    display: inline-block;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    width: 504px;
    margin: 5px auto;
    padding: 20px;
    text-align: left;
}
.registreeri-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}
.registreeri-rida {
    margin-bottom: 5px;
    display: flex;
    flex-wrap: wrap;
}
.registreeri-group {
    margin-bottom: 20px;
    margin-right: 2px
}
.registreeri-container viga {
    font-family: 'Courier New', cursive;
    color: #7a0303;
    font-weight: bold;
    text-decoration: none;
    margin-bottom: 5px;
}
.registreeri-group label {
    display: block;
    text-align: left;
    margin-bottom: 5px;
}
.registreeri-group input {
    width: 100%;
    padding: 10px 15px; /* Added padding on the right */
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    background-color: #fff;
    box-sizing: border-box; /* Ensures padding doesn't extend beyond the width */
    }
.registreeri-drop {
    margin-bottom: 20px;
    margin-right: 15px
}
.registreeri-drop label {
    display: block;
    text-align: left;
    margin-bottom: 5px;
}
.registreeri-drop select {
    width: 100%;
    padding: 10px 15px; /* Added padding on the right */
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    background-color: #fff;
    box-sizing: border-box; /* Ensures padding doesn't extend beyond the width */
    }
.registreeri-group input:focus {
    outline: none;
    border-color: var(--color-selectedtabbg);
    box-shadow: 0 0 0 0.2rem var(--color-selectedtabbg);
}
.registreeri-nupp {
    border: none;
    border-radius: 4px;
    padding: 15px;
    font-size: 18px;
    width: calc(100% - 0px);
    cursor: pointer;
    min-width: 300px;
}

.section {
    min-height: calc(100vh - 200px);
    display: flex; 
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    text-align: center;
    
    flex-wrap: wrap;
    padding: 20px; 
    margin: 10px;           
}

.tabid {
    /* width: 100%; */
     overflow: hidden;
    /* background-color: var(--color-tabribbonbg) !important; */
 }
 
 
 .tab-button {
     /* background: var(--color-buttonbg); */
     padding: 1px 8px;
     float: left;
     /*width: auto;*/ 
     border: none;
     display: block;
     outline: 0;
     overflow: hidden;
     text-decoration: none;
     text-align: center;
     cursor: pointer;
     border: 1px solid var(--color-tabpiire) !important; 
     border-top-left-radius: 8px;
     border-top-right-radius: 8px;
     margin-top: 0px;
     margin-bottom: 0px;
     background-color: transparent;
     font-size: 24px;
     }
 button:hover{
   color: var(--color-selectedtabtext) !important;
   background-color: var(--color-selectedtabbg) !important;
 
 }
 #challange{
     font-size: 40px;
    margin-left: 120px;
 }
 .valitud-tab {
   color: var(--color-selectedtabtext) !important;
   background-color: var(--color-selectedtabbg) !important;
 }
 .nahtavblokk{
   display: block !important;
 }
 .input-container {
     position: relative;
     display: flex;
     align-items: center;
    /* width: 300px;  Set a fixed width for the input container */
     border: 1px solid #ccc;
     border-radius: 5px;
     padding: 10px;
 }
 .riik{
         font-size: 40px;
         margin-bottom: 0.5em;
         margin-right: 5px;        
 }
 
 
/*AUTOCOMPLETE*/
.autocomplete {
    position: relative;
   /* display: inline-block;*/

}

.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    /* Position the autocomplete items to be the same width as the container: */
    top: 100%;
    left: 0;
    right: 0;
}

.autocomplete-items div {
    padding: 10px;
    cursor: pointer;
    background-color: #fff; 
    border-bottom: 1px solid #d4d4d4; 
}

/* When hovering an item: */
.autocomplete-items div:hover {
    background-color: #e9e9e9; 
}

/* When navigating through the items using the arrow keys: */
.autocomplete-active {
    background-color: DodgerBlue !important; 
    color: #ffffff; 
}
#overlay{
    display: none;
}
#helpModal{
    display: none;
}
#helpbutton{
    background: transparent !important;
    color: #000 !important;
    border: none !important;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent; 
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-container {
    display: none;
    display: inline-block;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    border: 1px solid #888;
    width: 100%;
    max-width: 350px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);   
    flex-wrap: wrap;
    z-index: 1001; 
}
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}


@media (max-width: 900px) {
    .registreeri-rida {
    max-width: 300px;
    }
    .registreeri-group {
    max-width: 300px;
    }
    .registreeri-nupp {
    max-width: 300px;
    }
    .registreeri-container{
        max-width: fit-content;
    }
  
  }