/* SADAĻAS UN BLOKI */
body {
    background-color: #EFEEE8;
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px;
    font-family: Arial, Helvetica, sans-serif;
}

head{
    width: 100%;
}

.site-footer { 
    padding: 24px 20px 32px; 
}

.footer-content { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 16px; 
    flex-wrap: wrap; 
    text-align: center;
}

.site-footer hr {
    border: 0;
    border-top: 1px solid #1E1E1E;
    margin: 0 0 20px;
}

.navbar {
    background-color: #1E1E1E;
    border-radius: 16px;
    padding: 20px 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between; 
    align-items:  center;
}

.nav-left { 
    display: flex; 
    gap: 30px; 
    align-items: center;
}

.nav-right { 
    display: flex; 
    flex-direction:  column; 
    gap: 5px;  
    align-items: flex-end; 
}

.flashes {
    background-color: #b4b4b4;
    padding: 10px 10px;
    margin-bottom: 30px;
    border-radius: 16px;
    text-align: center;
    align-items: center;
}

.success-box {
    background-color: rgb(209, 247, 209);
    border: 5px  solid rgb(54, 172, 54);
    color: rgb(54, 172, 54);
    padding: 10px 10px;
    margin-bottom: 30px;
    border-radius: 16px;
    text-align: center;
    align-items: center;
}

form{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-text {
    color:white; 
    text-decoration: none;
    font-weight: 600;
}

.nav-text-small {
    color:white; 
    text-decoration: none;
}






/* IEVADES UN POGAS */
.button {
    border-radius: 16px;
    text-align: center;
    display: inline-block;
    padding: 10px 10px;
    transition: transform 0.2s ease;
    text-decoration: none;
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.button:hover { 
    transform: scale(1.01);
}

.button-container { 
    display: flex; 
    gap:10px;
}

input, textarea{
    width: 100%;
    border: 1px solid #1E1E1E;
    background-color: transparent;
    padding: 10px;
    border-radius: 16px;
}








/* PAMATA NOFORMĒJUMS */

.filled {
    background-color: #1E1E1E;
    color: white;
    text-transform: uppercase;
    border: 0px;
}

.unfilled{
    border: 1px solid #1E1E1E;
    background-color: transparent;
    text-transform: uppercase;
}

.center{
    text-align: center;
    align-items: center;
}

.main-header {
    margin-bottom: 30px;
    margin-top: 50px;
}

h1 {
    font-weight: 800;
}

h2 {
    font-weight: 600;
}










/* OTHER */
/* Failu augšupielādes bloki */
.filepond--root{
    margin-bottom: 10px;
}

.filepond--panel-root{
    background-color: transparent !important;
    border: 1px solid #1e1e1e !important;
    border-radius: 16px !important;
}

.filepond--drop-label {
    color:  #b4b4b4 !important;
    font-size: 8px;
}

.filepond--label-action {
    color: #b4b4b4 !important;
    text-decoration-color: #b4b4b4 !important;
    font-size: 8px;
}

/* Pielsegsanas un registresanas bloki */
.section1{
    display: block;
}

.section2{
    display: none;
}



/* Personalizesanas bloki */
.row-inputs{ 
    position: relative;
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
    border-radius: 16px;
    background:transparent;
    width: 100% !important;
    box-sizing: border-box;
}

.row-inputs.disabled input, .row-inputs.disabled button { 
    opacity: 0.5; 
    cursor: not-allowed; 
}

/* Mācību plāna lapas rindas */
.plan-row{
    display: flex; 
    gap:20px;
}

.plan-row .block { 
    flex:  1; 
}



/* Progress bar - mācību plāns */
.progress {
    height: 30px;
    background-color: #e9ecef;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #1E1E1E;
}

.progress-bar {
    height: 100%;
    background-color: #1e1e1e;
    transition: width 0.3s ease;
}



/* Nodarbību kartītes */
.task-card { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 20px; 
    border-radius:20px; 
    background-color: white;
    border: 1px  solid #1e1e1e;
    transition: all 0.25s ease;
    margin-bottom: 20px;
}

.task-card:hover { 
    transform: scale(1.01);
}

.task-card.in_progress { 
    opacity: 1;
    cursor: pointer;
    border: 5px  solid #eec027;
    background-color: #ece8ad;
    color: #eec027;
}

.task-buttons.in_progress .button {
    background-color: #eec027;
    color: white;
    text-transform: uppercase;
    border: 0px;
    text-align: left !important;
}

.task-card.failed { 
    opacity: 1;
    cursor: pointer;
    border: 5px  solid #ff0404;
    background-color: #eec1be;
    color: red;
}

.task-buttons.failed .button {
    background-color: red;
    color: white;
    text-transform: uppercase;
    border: 0px;
    text-align: left !important;
}

.task-card.done { 
    opacity: 1;
    cursor: pointer;
    border: 5px  solid rgb(54, 172, 54); 
    background-color: rgb(209, 247, 209);
    color: rgb(54, 172, 54);
}

.task-buttons.done .button {
    background-color: rgb(54, 172, 54);
    color: white;
    text-transform: uppercase;
    border: 0px;
    text-align: left !important;
}

.task-card.locked { 
    opacity: 0.5;
    cursor: not-allowed;
    background: rgb(73, 73, 70); 
    border: 5px  solid #1e1e1e; 
}

.task-buttons.locked .button {
    background-color: #1e1e1e;
    color: white;
    text-transform: uppercase;
    border: 0px;
    text-align: left !important;
}

.task-card.unlocked { 
    opacity: 1;
    cursor: pointer;
    border: 5px  solid #1e1e1e; 
    background-color: white;
    color: #1e1e1e;
}

.task-buttons.unlocked .button {
    background-color: #1e1e1e;
    color: white;
    text-transform: uppercase;
    border: 0px;
    text-align: left !important;
}

.task-image img{
    width: 80px; 
    height: 80px; 
    object-fit: contain; 
    opacity: 0.9;
}

.lesson-block p,
.lesson-block li {
    font-size: 16px;
    line-height: 24px
}



/* Poga nodarbības saitēm */
.link.button {
    width: 100%;
    border-radius: 16px;
    text-align: center;
    display: inline-block;
    padding: 10px 0px;
    transition: transform 0.2s ease;
    text-decoration: none;
    text-decoration: none;
    margin-bottom: 20px;
    color: #1e1e1e;
}



/* Testa pogas izvēles */
.option-button {
    width: 100%;
    border-radius: 16px;
    text-align: center;
    display: inline-block;
    padding: 10px 0px;
    transition: transform 0.2s ease;
    text-decoration: none;
    user-select: none;
    margin-bottom: 20px;
    text-transform: none;
}

.option-button input[type="radio"] { 
    display:  none; 
}

.correct{
    background-color: rgb(54, 172, 54);
}

.incorrect{
    background-color: red;
}

.results.task-card.center.green {
    opacity: 1;
    cursor: pointer;
    border: 0px  solid rgb(54, 172, 54); 
    background-color: rgb(209, 247, 209);
    color: rgb(54, 172, 54);
}

.results.task-card.center.red {
    opacity: 1;
    cursor: pointer;
    border: 0px  solid #ff0404;
    background-color: #eec1be;
    color: red;
}



/* Flashcards lapa */
/* https://www.w3schools.com/howto/howto_css_flip_card.asp */
#flashcardCarousel {
    max-width: 100%;
    margin: 0 auto;
}

.flip-card {
    width: 100%;
    height: 450px;
    perspective: 10000px;
    cursor: pointer;
    margin: 0 auto;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    inset: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 16px;
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.flip-card-front {
    background-color: white;
    border: 5px solid #1e1e1e;
    color: black;
}

.flip-card-back {
    background-color: #1e1e1e;
    border: 5px solid #1e1e1e;
    color: white;
    transform: rotateY(180deg);
}

.carousel-item {
    display: none;
    padding: 40px 0px;
}

.carousel-item.active {
    display: block
}

.flashcard-button { 
    display:flex; 
    justify-content: center; 
    align-items: center; 
    gap: 16px;
}



/* Cookies */
#cookie-banner {
    position: fixed;
    width: 100%;
    background: #1E1E1E;
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    z-index: 1000;
    box-sizing: border-box;
    left: 0;
    right: 0;
    bottom: 0;
}

#cookie-button{
    background-color: #ffffff;
    color: #1e1e1e;
    text-transform: uppercase;
    border: 0px;
    border-radius: 16px;
    padding: 10px 100px;
}



/* Mobilā telfona piekļuves liegšana */
.mobile { 
    display: none; 
    position: fixed; 
    top:0; 
    left:0;
    z-index: 9999;
    width: 100vw;
    height: 100vh;
    background-color: #1E1E1E;
    align-items: center;
    text-align: center;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.mobile-image img{
    width: 150px; 
    height: 150px; 
    object-fit: contain; 
    opacity: 1;
}


@media (max-width: 750px) {
    .mobile {
        display: flex;
    } 
}









