@font-face {
    font-family: Oceanwide;
    src: url(California\ Type\ Foundry\ -\ Oceanwide-Semibold.otf);
}

:root {
    --primary-color: #191919;
    --secondary-color: #e9e9e9;
    --textarea-color: #313131;
    --addIteration-color: #a3a3a3;
    --selected-color: #e0e0e0;
    --selectedHover-color: #d1d1d1;
    --darkHover-color: #272727;
    --backBlock-color: #202020;
    --frontBlock-color: rgb(39, 39, 39);
    --backP-color: #6b6b6b;
    --frontP-color: #535353;
    --border-color: #3d3d3d;
    --no-color: #6b6b6b;
    --stext-color: #000000;
    --shover-color: #000000;
}

#preguntaInput{
    margin-bottom: 10px;
}

body {
    font-family: 'Oceanwide', sans-serif;
    margin: 0;
    overflow-x: hidden;
    overflow-y: hidden;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

#startimg{
    padding-right: 10px;
    transform: translateY(-2px);
}


.container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.front, .back {


    position: absolute;
    z-index: 0;
}

.appear{
    opacity: 1;
    transition: opacity 0.5s ease-in;
}

.wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    background-color: rgb(17, 17, 17);
}

.background-left, .background-right {
    position: fixed;
    color: #333333;
    top: 0;
    width: 24.17vw; /* 464px on a 1920px width screen */
    height: 100%;
    background:rgb(17, 17, 17);
    z-index: -1; /* Ensure it is behind other content */
}

@media screen and (max-width: 1366px){
    .background-left, .background-right {
        width: 170px;
    }
}


.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}



.background-left {
    left: 0;
}

.background-right {
    right: 0;
    transform: scaleX(-1); /* Flip the gradient horizontally */
}

.front {
    text-align: center;
    font-size: clamp(20px, 6vw, 30px);
    top: 150px;
    width: 70%;
}

@media (max-width: 515px) {
    .front {
        font-size: 18px;
    }
    .back *{
        top: 250px;
        font-size: 18px;
    }
    #menuIcon{
            user-select: none;
            padding: 7px;
            padding-top: 8px;
            padding-bottom: 8px;
            border: 1.2px solid grey;
            cursor: pointer;
            width: 18px;
    }
}

.back {
    text-align: center;
    font-size: clamp(20px, 6vw, 30px);
    position: absolute;
    top: 300px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 15%;
    width: 70%;
}
#settings:hover{
    cursor: pointer;
}

.menuoptions{
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: start;
    gap: 7px;
}

.menu-icon{
    user-select: none;
    padding: 13px;
    padding-top: 14px;
    padding-bottom: 15px;
    border: 1.2px solid var(--secondary-color);
    cursor: pointer;
}

.menu-icon:hover{
    background-color: var(--darkHover-color);
}

.huver:hover{
    background-color: var(--darkHover-color);
}

.sidebar{
    z-index: 2;
}

.sidebar, .batches  {
    position: fixed;
    top: 0;
    right: -1050px;
    width: 1000px;
    height: 100%;
    padding: 20px;
    background-color: var(--primary-color);
    border-left: 1px solid var(--border-color);
    transition: right 0.3s ease;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
}

#settingsBar h2{
    font-size: 22px;
    color: #e9e9e9;
}


#settingsBar{
    position: fixed;
    top: 0;
    right: -340px;
    width: 300px;
    height: 100%;
    padding: 20px;
    background-color: var(--primary-color);
    border-left: 1px solid var(--secondary-color);
    transition: right 0.2s ease;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
}

#closeSettingsIcon{
    cursor: pointer;
    width: 30px;
    height: 29.46px;
}

#closeSettingsIcon:hover{
    content: url(img/closeSettingsHover.png);
}

.sidebar.open, .batches.open, #settingsBar.open{
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h2, #batchName {
    font-size: 30.82px;

    margin: 0;
}


#batchName {
    border: none;
    padding-bottom: 5px;
    width: 600px;
    border-bottom: 1px solid transparent;
    font-family: "Oceanwide", sans-serif;
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

#batchName:hover {
    border-bottom: 1px solid var(--secondary-color);
}

.form-container {
    display: flex;
    flex-direction: column;
    margin-top: 30px;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
}

textarea {
    font-family: "Oceanwide", sans-serif;
    border: none;
    font-size: 15px;
    color: var(--secondary-color);
    border: 0.5px solid var(--border-color);
    background-color: var(--primary-color);
    padding: 20px;
    resize: none;
    scroll-padding: 0px;
}


label {
    margin-bottom: 5px;
    margin-top: 10px;
}

#addIterationBtn {
    user-select: none;
    width: 120px;
    height: 80px;
    align-self: end;
    border: 1.5px solid var(--addIteration-color);
    font-size: 17px;
    background-color: var(--primary-color);
    color: var(--addIteration-color);
    padding: 15px 0;
    font-weight: 600;
    cursor: not-allowed;
}

#addIterationBtn.enabled {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 1.5px solid var(--secondary-color);
    cursor: pointer;
}

#addIterationBtn.enabled:hover {
    background-color: var(--darkHover-color);
    cursor: pointer;
}

h2 {
    margin-top: 40px;
    margin-bottom: 10px;
    font-size: 17px;
    font-weight: 600px;
}

.jou{
    height: 30px;
    width: 700px;
    margin: 1px;
}


.iteration-show {
    display: flex;
    margin: 3px 0;
    background-color: var(--backBlock-color);
    border: 0.5px solid var(--border-color);
}



.desc{
    width: 100%;
    height:100%;
    font-family: "Oceanwide", sans-serif;
    background-color: transparent;
    padding-bottom: 0;
    border: none;
    font-size: 16px;
}

.backblock textarea{
    width: 95%;
    display: none;
    transition: .1s;
}

.backblock:hover textarea{
    display: block;
    transition: .1s;
}

.backblock:hover img{
    display: block;
}



textarea.desc{
    padding: 0;
    overflow: hidden;
}

.hidden{
    display: none;
}

textarea.desc:focus{
    overflow: auto;
}

.frontblock {
    padding: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: #191919;
    border-right: .5px solid var(--border-color);
    width: 35%;
}
.frontblock p:first-child {
    color: var(--frontP-color);
}

.backblock p:first-child {
    color: var(--backP-color);
}


.backblock {
    display: flex;
    padding: 10px;
    height: 70px;
    background-color: #191919;
    width: 65%;
    position: relative;
}

.close-icon{
    padding: 14.79px;
    padding-top: 14px;
    padding-left: 17px;
    border: 1.2px solid var(--secondary-color);
}

.batches .close-icon:hover,
.sidebar .close-icon:hover {
    cursor: pointer;
}

#settings {
    background-size: cover; /* Ensure the image covers the element */
    background-repeat: no-repeat;
    width: 30px;
    height: 29.46px;
}

.batches p {
    margin-top: 80px;
    color: var(--no-color);
}


#addBatchButton {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    border: none;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 1.5px solid var(--secondary-color);
    padding: 14.5px 0;
    font-size: 17px;
    font-family: "Oceanwide", sans-serif;
    padding-right: 15px;
    height: 55px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.dontknow {
    display: flex;
    flex-direction: column;
    margin-top: 70px;
}

#plus{
    color: #3d3d3d;
    margin-right: 15px;
    padding-left: 15px;
    transform: translateY(-2px);
}

.dontknow input {
    margin-top: 60px;
    border: none;
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 5px;
    font-family: "Oceanwide", sans-serif;
    width: 195px;
}

#addBatchButton:hover {
    background-color: var(--darkHover-color);
    cursor: pointer;
}

hr:first-child{
    margin-top: 0;
    margin-block-start: 0;
}

#batchList{
    margin-top: 20px;
    height: 750px;
    overflow: auto;
}

@media (max-width: 768px) {
    .background-left, .background-right {
        display: none;
    }
}

@media only screen and (max-height: 800px) {
    #batchList{
        margin-top: 15px;
        height: 500px;
        overflow: auto;
    }
    
    #closeBatchesIcon{
        width: 50px;
        height: 50px;
    }
  }

.batch{

    border: none;
    font-family: "Oceanwide", sans-serif;
    color: var(--primary-color);
    padding: 13px;
    font-size: 16px;
    margin: 1px;
}

.batch:hover{
    cursor: pointer;
    background-color: #fff;
}

.whitebatch{
    background: var(#e9e9e9);

}

.greybatch:hover{
    cursor: pointer;
    background-color: #888888;
}

.whitebatch:hover{
    cursor: pointer;
    background-color: #ffffff;
}

.greybatch{
    background: var(#A2A2A2);

}

#counter{
    color: #727272;
    margin-top: 25px;
}

.kod{
    display: flex;
    gap: 5px;
    margin-left: 1px;
}

.sidebarOptions{
    display: flex;
    justify-content: space-between;
    gap: 7px;
}

#exit{
    margin-right: 15px;
}

#signOutBtn{
    height: 31px;
    font-size: 14px;
    background-color: var(--primary-color);
    border: none;
    border-bottom: 3px solid #ffffff00;
    color: var(--secondary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 120px;
    right: 20px;
    transform: translateY(200%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

#signOutBtn:hover{
    border-bottom: 3px solid var(--secondary-color);;
    cursor: pointer;
}

#start{
    height: 54px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    border: 1.5px solid var(--secondary-color);
}

#areusure{
    margin-top: 5px;
    margin-right: 5px;
    display: none;
}

#start:hover{
    cursor: pointer;
    background-color: var(--darkHover-color);
}

.options{
    display: flex;
    gap: 7px;
}

#text{
    text-align: center;
    margin: 0 auto;
}


#trash{
    user-select: none;
    padding: 7px;
    height: 12.86px;
    border: 1px solid var(--secondary-color);
}

#trash:hover{
    cursor: pointer;
    background-color: var(--darkHover-color);
}

.list-header{
    display: flex;
    align-items: end;
    justify-content: space-between;
    width: 100%;
    margin-top: 10px;
}

#hide{
    margin: 0;
    font-size: 15PX;
    user-select: none;
    border-bottom: 3px solid transparent;
}

#hide:hover{
    border-bottom: 3px solid var(--secondary-color);
    cursor: pointer;
}

.trashSmall{
    width: 11px;
    height: 11px;
    position: absolute;
    right: 9px;
    display: none;
}

.trashSmall:hover{
    cursor: pointer;
    background: url(img/trashSmallHover.svg);
}

button{
    font-family: "Oceanwide", sans-serif;
}

.vv{
    margin-top: 70px;
}

.theme{
    padding: 10px 26.66px;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.theme:hover{
    cursor: pointer;
    color: var(--shover-color);
    background-color: var(--selected-color);
}

.selected{
    color: var(--stext-color);
    background-color: var(--selected-color);
}

#expand{
    margin-bottom: 12px;
    margin-right: 11px;
}

#expand:hover{
    cursor: pointer;
}

::-webkit-scrollbar {
    width: 7px; 
}

::-webkit-scrollbar-track {
    background: #6b6b6b;
}

::-webkit-scrollbar-thumb {
    background-color: rgb(0, 0, 0); 
    border-radius: 10px; 
    border: 1.5px solid #161616; 
}

* {
    scrollbar-width: thin;
    scrollbar-color: #363636 rgb(51, 51, 51);
}

@media screen and (max-width: 1044px) {
    .sidebar, .batches  {
        right: -1050px;
        width: 100%;
        height: 100%;
        
    }

    

    .sidebar {
        right: -1200px;
    }

    #upit, #noBatchesText, #batchList {
        margin-left: 50px;
    }

    #batchName, .form-container {
        margin-left: 50px;
    }
    #batchName {
        width: 300px;
    }
}


#counting{
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #3d3d3d;
}

#upit {
    font-size: 30px;
    margin-bottom: 10px;
}

@media screen and (max-width: 544px) {
    #upit, #addBatchButton {    
        margin-left: 50px;
    }
        #addBatchButton{
        /* display: none; */
        font-size: 14px;
        /* padding: 10px; */
        width: 150px;
        height: 40px;
        /* position: absolute; */
        right: 70px;
        top: 37px;
        padding: 0;
        position: absolute;
    }
    #addBatchButton img{
        display: none;
    }
    .back{
        padding: 0;
        font-size: 20px;
        width: 100%;
    }
    .front{
        padding: 0;
        font-size: 20px;
        width: 100%;
    }
    #batchList{
        margin-top: 0px;
    }

    .sidebar-header{
        flex-direction: column;
        align-items: start;
        gap: 15px;
        margin-top: 16px;
    }
    .options{
        width: 100%;
        justify-content: space-between;
    }
    #closeBatchesIcon, #closeIcon{
        position: absolute;
        top: 37px;
        right: 20px;
        width: 14px;
        height: 14px;
        padding: 12px;
    }
    #cup{
        margin-left: 50px;
    }


}

#mojejes{
    margin-top: 25px;
}

@media screen and (max-width: 400px) {
    #addIterationBtn {
        width: 70px;
    }
}

.bbh{
    display: flex;
    flex-direction: column;
    padding-right: 7px;
}

.bbbh{
    display: flex;
    flex-direction: column;
}

.minustop{
    margin-top: -40px;
}

#iterationList{
    height: 475px;
    overflow: auto;
    overflow-x: hidden;
    padding-right: 10px;
    transition: all 0.3s ;
}

.up-container {
    transition: all 0.3s ;
    overflow: hidden;
}

.expandedBatches{
    height: vh - 100 !important;
}

.rrow{
    display: grid;
    grid-template-columns: 9fr 1fr;

}

.rrrow{
    display: grid;
    grid-template-columns: 1fr
}

.child-container{
    transition: all 0.3s ;
}

.hiddenContainer {
    transition: all 0.3s ;
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}
