@import url('https://fonts.googleapis.com/css2?family=Dosis:wght@200..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DynaPuff&family=Funnel+Display:wght@300..800&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

[data-theme="light"]{
    --primary: #21262b;
    --secundary:#3B5D69;
    --fondo: #cdffe6;
    --texto: black;
}

[data-theme="dark"]{
    --primary: #d7ffec;
    --secundary:#2e3a46;
    --fondo: #21262b;
    --texto: white;
}

body {
    font-family: "Funnel Display", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    height: 110vh;
    min-height: max-content;
    
    background-color:var(--fondo);
    margin-top: 100px;
    margin-bottom: 100px;
    color: var(--texto);
}

/* Estilo scroll*/
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--fondo);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(145deg, #446859, #35815f);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(145deg, #35815f, #446859);
    border: 2px solid transparent;
    background-clip: content-box;
}

/*Switch para MODO oscuro-claro*/
.switch{
    margin-top: 10px;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    width: 56px;
    height: 25px;
}
.switch input{
    opacity: 0;
    width: 0;
    height: 0;
}
.slider{
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--fondo);
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 34px;
}
.slider:before{
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: var(--primary);
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
}
input:checked+.slider{
    background-color: var(--fondo);
}
input:checked+.slider:before{
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/*Barra de navegación*/
.navbar{
    position: fixed;
    top: 15px;
    left: 15px;
    right: 15px;
    border-radius: 60px;
    height: 60px;
    background: linear-gradient(to right,#2e3a46,#446859cb,#358163);
    box-shadow: 0 5px 10px rgba(31, 31, 31, 0.5);
    z-index: 1000;
}
#NavButtoms{
    position: relative;
    right: 0px;
}
.logo{
    height: 30px;
}
.logo_nombre{
    height: 20px;
    margin-left: 5px;
}
@media screen and (max-width: 500px){
    .logo_nombre{
        display: none;
    }
}

#user{
    height: 45px;
    width: 45px;
    border-radius: 45px;
    cursor: pointer;
}
.btnNew{
    padding: 10px;
    font-size: 10pt;
    margin: 0;
    background-color: rgba(37, 37, 37, 0);
    border-color: #2c3238;
    border-width: 2px;
    color: #2c3238;
    border-radius:20px;
    transition: 0.5s ease;
}
.btnNew:hover, .btnNew:focus{
    box-shadow: -3px 2px 0 black;
    background-color: rgba(37, 37, 37, 0.562);
    border-color: #2c3238;
    color: white;
}

.btnYES{
    background-color: #358163;
    border-radius: 25px;
    color: white;
    padding: 10px;
    transition: all 0.5s ease;
}
.btnYES:hover, .btnYES:focus{
    background-color: #56a786;
    color: white;
}

.btnNOT{
    background-color: #e74444;
    border-radius: 25px;
    color: white;
    padding: 10px;
    transition: all 0.5s ease;
}
.btnNOT:hover, .btnNOT:focus{
    background-color: #f35858;
    color: white;
}

.Profile{
    position: fixed;
    width: 20%;
    top: 90px;
    right: 15px;
    bottom: 15px;
    height: 80vh;
    z-index: 1000;
    background:var(--secundary);
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.514);
    border-radius: 20px;
    transition: 0.5s ease;
}

@keyframes appear{
    0%{
        opacity: 0;
    }100%{
        opacity: 1;
    }
}
@keyframes disappear{
    0%{
        opacity: 1;
    }100%{
        opacity: 0;
    }
}

/* Barra de herramientas*/
#tools{
    position: fixed;
    min-width: 25px; /*Cuando está abierto es 260px*/
    top: 90px;
    left: 15px;
    bottom: 15px;
    height: 30px; /*Cuando está abierto es 80vh*/
    z-index: 1000;
    background:var(--secundary);
    padding: 30px;
    border-radius: 20px;
    transition: 0.5s ease;
}
#tools ul .Tool{
    list-style-type: none;
    margin-bottom: 30px;
    transition: 0.3s ease-in-out all;
}
#tools ul .Tool:hover{
    background: linear-gradient(to left,#2f253d00,#47358a65,#513d708e);
    margin-bottom: 30px;
    padding: 15px;
    border-radius: 10px 0 0 10px;
    box-shadow: -10px 0 0 rgba(0, 0, 0, 0.2);
}
#tools ul .activado{
    list-style-type: none;
    margin-bottom: 30px;
    background:linear-gradient(to right, #358163, #3581636c, #51685f00);
    padding: 15px;
    border-radius: 10px 0 0 10px;
    box-shadow: -10px 0 0 rgba(0, 0, 0, 0.568);
}
#tools ul .Tool i{
    margin-right: 10px;
}
#tools ul .Tool{
    color: white;
    font-size: 15pt;
    cursor: pointer;
}
#closeTool, #openTool{
    position: absolute;
    top: 10px;
    left: 17px;
    color: white;
    font-size: 20pt;
    cursor: pointer;
}
.comming_soon{
    margin:0;
    font-size: 12pt;
    font-style: italic;
    color: #9b8db6;
    width: max-content;
}

/* DATOS */
.not_data{
    padding-top: 20vh;
    text-align: center;
    color: rgb(83, 83, 83);
    font-size: 15pt;
}
.not_data img{
    height: 170px;
}
.changeDataMain{
    height: 35%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#userPhoto{
    width: 125px;
    height: 125px;
    border-radius: 50%;
}
.inputUsername{
    text-align: center;
    background-color: #1a1a1a00;
    border: 0;
    color: white;
}
.inputUsername:focus{
    border: 0;
    border-bottom: 1px solid white;
}
.datos{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.logout{
    width: 100px;
    height: 40px;
    margin: 0;
    margin-top: 10px;
    border-radius: 50px;
    border:0;
    padding: 10px;
    font-size: 10pt;
    color: rgb(255, 255, 255);
    background: linear-gradient(to left,#272529,#4b4a509f,#5f5f5f);
    transition: 0.5s ease;
}
.logout:hover{
    box-shadow: 1px 5px 0 rgba(0, 0, 0, 0.39);
}
.btnChangeUserData{
    width: max-content;
    min-width: 150px;
    height: 60px;
    border-radius: 25px;
    border:0;
    padding: 10px;
    font-size: 10pt;
    color: rgb(255, 255, 255);
    background: linear-gradient(to left,#513d70,#47358a9f,#513d70);
    transition: 0.5s ease;
}
.btnChangeUserData:hover{
    box-shadow: 1px 5px 0 rgba(0, 0, 0, 0.39);
}
.btn-close{
    background-color:rgba(255, 255, 255, 0.521);
    border-radius:50%;
}
.btn-close:focus,.btn:focus{
    box-shadow: 1px 1px 7px rgba(175, 175, 175, 0.315);
}
.inputData, .inputData:disabled{
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid rgb(177, 177, 177);
    color: white;
    background-color: #1a1a1a00;
}
.inputData:focus{
    color: white;
    background-color: #1a1a1a00;
    border-color: white;
    box-shadow: 0 2px 10px rgba(83, 83, 83, 0);
}

.newQuiz-card{
    border: 3px solid var(--secundary);
    border-radius: 20px;
    background: #00000000;
    padding: 0px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    transition: opacity 0.8s ease-in-out;
    height: 270px;
    cursor: pointer;
}

.newQuiz-card div{
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.newQuiz-card div p{
    font-size: 18pt;
}

.newQuiz-card div button{
    width: 80px;
    height: 80px;
    color: var(--texto);
    font-size: 30pt;
    padding: 10px;
    border-radius: 50%;
    background-color: var(--secundary);
}

.quiz-card {
    border-radius: 20px;
    background: linear-gradient(145deg,var(--secundary),#272727ce);
    /*box-shadow: 17px 17px 33px #1a1a1a, -10px -10px 33px #2e2e2e;*/
    box-shadow: 15px 15px rgba(0, 0, 0, 0.4);
    color: white;
    padding: 0px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    transition: opacity 0.8s ease-in-out;
}
.quiz-card .card-content{
    height: 270px;
}
.quiz-card .card-content-activity{
    height: 230px;
}
.card-content .cardDescrip{
    color: rgba(255, 255, 255, 0.527);
    font-size: 10pt;
    max-height: 100px;
}
.card-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    transition: opacity 0.5s ease;
}
.card-content, .card-content-activity {
    position: relative;
    z-index: 1;
    border-radius: 20px;
    background: linear-gradient(145deg,#2020205e,#181818ce);
    padding: 20px;
    transition: background-color 0.5s ease;
}

.quiz-card:hover .card-background{
    opacity: 0.9;
}

.quiz-card:hover .card-content{
    background: linear-gradient(145deg,#202020b2,#272727ce);
    cursor: pointer;
}
.quiz-card:hover .card-content-activity{
    background: linear-gradient(145deg,#202020b2,#4b3d7a83);
    cursor: pointer;
}
@media screen and (max-width: 1200px) {
    .card-background{
        opacity: 0.6;
    }
    .card-content-activity{
        background: linear-gradient(145deg,#202020b2,#4b3d7a83);
        cursor: pointer;
    }
    .Profile{
        width: 300px;
    }
}

.browserDiv{
    text-align: center;
    margin-top: 15px;
    margin-bottom: 15px;
}
.buscador{
    position: relative;
    margin: 0;
    padding: 0;
}
#searchQuiz{
    border: 2px solid #358163;
    border-radius: 50px;
    height: 50px;
    width: 50%;
    background-color: #1a1a1a00;
    color: white;
    text-align: center;
    transition: all ease 0.7s;
}
#searchQuiz:focus, #searchQuiz:hover{
    border: 2px solid #358163;
    color: #358163;
    box-shadow: 1px 15px 15px #35816373;
}
#btnSearch{
    position: absolute;
    right: 25%;
    top:7px;
    padding: auto;
    margin-right: 10px;
    border: none;
    background-color: #1a1a1a00;
    color:#358163;
    font-size: 16pt;
    transition: all ease 0.5s;
}
#btnSearch:hover{
    transform: scale(1.1);
    text-shadow: 1px 5px 5px #000000c9;
}
.filtros{
    margin-top: 10px;
}
.filtros div{
    text-align: right !important;
}
#quiz_tema_filtro, #quizGrade_filtro{
    cursor: pointer;
    border: 2px solid #513d70;
    border-radius: 50px;
    height: 50px;
    width: 100%;
    background-color: #1a1a1a00;
    color: #9680b6;
    text-align: center;
    transition: all ease 0.7s;
}
#quiz_tema_filtro:focus, #quiz_tema_filtro:hover, 
#quizGrade_filtro:focus, #quizGrade_filtro:hover{
    border: 2px solid #513d70;
    color: #9680b6;
    box-shadow: 1px 10px 15px #513d709a;
}

@media screen and (max-width: 1200px) {
    #searchQuiz{
        width: 100%;
    }
    #btnSearch{
        right: 0;
    }
    .browserDiv{
        margin-top: 30px;
    }
}

#pagination{
    margin-top: 30px;
}
#pagination .btn.active{
    padding: 5px;
    background-color: #358163;
    border-radius: 50px;
    height: 50px;
    width: 50px;
    color: white;
    font-size: 12pt;
}
#pagination .btn{
    margin-right: 5px;
    padding: 5px;
    border:2px solid #358163;
    background-color: #00000000;
    border-radius: 50px;
    height: 50px;
    width: 50px;
    color: #358163;
    font-size: 12pt;
}

.DescripCardQuiz{
    padding: 20px;
    width: 100%;
    background: linear-gradient(to left,#2f253d00,#47358a63,#513d70c2);
    border-radius: 10px;
}
.userCreator{
    margin-top: 15px;
    margin-left: -10px;
    padding: 10px;
    width: 100%;
    background: linear-gradient(to left,#2f253d00,#47358a63,#513d70c2);
    border-radius: 60px;
}
.userCreator img{
    width: 40px;
    height: 40px;
    border-radius: 50px;
    margin-right: 5px;
}
.status{
    position: relative;
    bottom: 70px;
    right: -80%;
    padding: 10px;
    width: 60px;
    height: 60px;
    border-radius: 30px;
    text-align: center;
    font-size: 18pt;
    color: rgba(255, 255, 255, 0.418);
    border: 2px solid rgba(255, 255, 255, 0.267);
}
.playQuiz{
    padding-top: 7px;
    padding-bottom: 7px;
    background-color: #358163;
    color: black;
    font-size: 12pt;
    border: 3px solid black;
    border-radius: 50px;
    box-shadow: -5px 5px 0 rgba(0, 0, 0, 0.25);
    transition: 0.5s ease;
}
.viewQuiz{
    padding-top: 7px;
    padding-bottom: 7px;
    background-color: #386575c0;
    color: black;
    font-size: 12pt;
    border: 3px solid black;
    border-radius: 50px;
    box-shadow: -5px 5px 0 rgba(0, 0, 0, 0.25);
    transition: 0.5s ease;
}
.buttonsQuiz{
    position: absolute;
    top: 5px;
    right: 5px;
}
.btn_info{
    background-color: #00000000;
    border: none;
    color: rgb(122, 122, 122);
    transition: all ease 0.5s;
}
.btn_info:hover, .btn_info:focus{
    border: none;
    box-shadow: none;
    color: white;
}
.playQuiz:hover, .playQuiz:focus{
    color: black;
    border: 3px solid black;
    background-color: #36a378;
    box-shadow: -7px 7px 0 black;
}
.viewQuiz:hover, .viewQuiz:focus{
    color: black;
    border: 3px solid black;
    background-color: #386575;
    box-shadow: -7px 7px 0 black;
}
.delete{
    padding: 7px;
    background-color: #1a1a1a00;
    color: rgb(90, 90, 90);
    border: 0;
    transition: 0.5s ease;
}
.delete:hover{
    color: rgb(194, 194, 194);
}

/* MODAL PLAY QUIZ */
.createModal{
    background-color: #242424af;
}
.createModal .modal-content{
    background-color: #242424;
    border-radius: 20px;
    color: white;
}
.createModal .modal-content .modal-header,
.createModal .modal-content .modal-footer{
    border-color: rgba(255, 255, 255, 0.103);
}
.createModal_form .form-select, .createModal_form .form-control,
.createModal_form .form-check-input{
    background-color: #19191900;
    border: rgb(66, 66, 66) solid 1px;
    border-radius: 20px;
    color: rgb(163, 163, 163);
    transition: 0.5s ease;
}
.createModal_form .form-select:focus, .createModal_form .form-control:focus,
.createModal_form .form-check-input:focus{
    box-shadow: 0 1px 5px rgba(255, 255, 255, 0.267);
}
.createModal .modal-content .modal-footer .btn{
    width: 500px;
    height: 40px;
    border-radius: 50px;
    border:0;
    padding: 10px;
    font-size: 10pt;
    color: rgb(255, 255, 255);
    transition: 0.5s ease;
}
.createModal .modal-content .modal-footer .btn:hover{
    box-shadow: 1px 5px 0 rgba(0, 0, 0, 0.39);
}
.createModal .modal-content .modal-footer .btn-secondary{
    background: linear-gradient(to left,#272529,#4b4a509f,#5f5f5f);
}
.createModal .modal-content .modal-footer .btn-primary{
    background: linear-gradient(to left,#2f253dc0,#47358a63,#513d70af);
}
.descripMode{
    padding: 20px;
    border-radius: 15px;
    color: white;
    background: linear-gradient(145deg,#2e3a46c9,#44685981);
}

.divImg{
    text-align: center;
    margin-top: 20px;
}

.custom-file-input {
    position: relative;
    display: inline-block;
}

.file-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
}

.file-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border: 2px solid #446859;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.5s ease;
}

.file-label i {
    font-size: 1.2em;
    color: #446859;
}

.divImg{
    position: relative;
    margin-top: 3px;
}

#deleteImg{
    position: absolute;
    right: 10px;
    top: 3px;
    z-index: 1000;
    opacity: 0.8;
    cursor: pointer;
    transition: all 0.3s ease;
}
#deleteImg:hover{
    opacity: 1;
}

#NameClass{
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 25pt;
    font-style: italic;
    z-index: 1000;
    text-shadow: 2px 2px 10px rgb(0, 0, 0);
    color: white;
}

.uploaded-image {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    margin-top: 0;
    margin-bottom: 15px;
    opacity: 0.3;
}

.image-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.image-controls button{
    transition: all 0.5s ease;
}

.image-controls button i{
    margin-right: 5px;
}

.image-controls button:hover, .image-controls .custom-file-input input:hover{
    background-color: #8585851f;
}

.or-divider {
    color: #666;
    font-size: 0.9em;
}
.image-gallery {
    display: none;
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(145deg, #202020, #272727);
    border-radius: 8px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.gallery-item {
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(0.95);
}

.gallery-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.image-info {
    padding: 8px;
    font-size: 0.8em;
}

.trashImgGalery{
    color: #8a8a8a7e;
    cursor: pointer;
    transition: all 0.3s ease;
}

.trashImgGalery:hover{
    color: #bbbbbbc5;
}

.image-name {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.image-date {
    color: #7a7a7a;
}

.loader, .no-images {
    text-align: center;
    padding: 20px;
    color: #7a7a7a;
}
/*------------------*/