/* -------- FONT -------- */

@font-face {
    font-family: MontserratVar;
    src: url('/webfonts/Montserrat-VariableFont_wght.ttf');
}

@font-face {
    font-family: Blacksword;
    src: url('/webfonts/Blacksword.otf');
}


/* -------- KEYFRAMES -------- */
@keyframes bounce {
    0% { transform: translateX(0); }
    50% { transform: translateX(25%); }
    100% { transform: translateX(0); }
}


/* -------- VARIABILI -------- */
.ml-yellow {
    background-color: #feb200 !important;
}

.ml-blue {
    color: #0a6eb6 !important;
}


/* -------- LOGIN -------- */
.container-login {
    background-color: transparent;
}

.card-login {
    width: 30em;
    min-height: 60vh;
    height: fit-content !important;
    max-width: 90vw;
    animation: slideDownReturn 1s ease-out;
    z-index: 3 !important;
    background-color: #ffffff25 !important;
}



/* -------- DEFAULT LAYOUT -------- */
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: MontserratVar;
    overflow: hidden;
}

.voci-menu .nav-item:hover, .voci-menu .accordion-button:hover {
    background-color: #feb20025 !important;
}

.sidebar-container {
    width: inherit;
    overflow-y: scroll;
    overflow-x: auto;
}

.sidebar-toggle {
    position: absolute;
    width: 30px !important;
    height: 30px !important;
    top: 4vh;
    right: -30px;
    border-radius: 0 5px 5px 0;
    border: 1px solid lightgray;
      border-left-color: lightgray;
      border-left-style: solid;
      border-left-width: 1px;
    border-left: none;
    z-index: 3 !important;
}

.mobile-sidebar {
    width: 90%;
    position: absolute !important;
    z-index: 2;
}

.btn-nav-item-sidebar, .btn-nav-item-sidebar:not(.collapsed), .btn-nav-item-sidebar:active, .btn-nav-item-sidebar:focus{
    outline: none;
    box-shadow: none;
    border: none;
}

.swal2-timer-progress-bar.custom-timer-progess-bar.error {
    background-color: red;
}

.swal2-timer-progress-bar.custom-timer-progess-bar.success {
    background-color: green;
}


/* ---- particles.js container ---- */
#particles-js {
    position:absolute;
    width: 100%;
    height: 100%;
    background-color: #000000;
}

canvas {
    overflow: hidden;
    position:absolute;
    top: 0;
}


/* ---- OVERLAY LAYOUT ---- */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
}

.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em;
    color: #fff;
    background-color: transparent;
}

.overlay-header a.back-link {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 1.5em;
}

.overlay-icons a {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 1.5em;
    margin-left: 10px;
}

.powered-by {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 1em;
    color: #fff;
}


/* ---- MCQ LAYOUT ---- */
.card {
    border-radius: 1.5em;
    height: 28em !important;
    background-color: #ffffff40;
    overflow: hidden;
}

.card svg, .card h5, .card h6{
    color: white;
}

.file-datas-container,
.file-datas-container-2 {
    align-items: center;
    display: flex;
    padding-left: 1em;
    margin-bottom: 1em;
}   

ul.nav-tabs {
    border-bottom: none;
}

.nav-icons {
    padding: .2em;
}

.principal-icon {
    font-size: 7em;
    padding-top: .8em;
    padding-bottom: .8em;
}

textarea,
textarea:active,
textarea:focus,
textarea:focus-visible {
    width: 100%;
    height: 100%;
    background-color: #ffffff40;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 1em;
    color: white;
    resize: none !important;
}

body *::selection {
    background-color: white;
    color: black;
}

#modify-tab {
    border-left: 0;
}

#modify-tab-2 {
    border-right: 0;
}

.theme-tab-link.active {
    border-top-left-radius: .8em !important;
    border-top-right-radius: .8em !important;
    border-bottom: none !important;
    background-color: #ffffff40 !important;
    color: white !important;
}

.theme-tab-link {
    background-color: transparent;
}

#tabContent, #tabContent-2 {
    position: relative;
    top: 1px;
    height: 19em;
}

.feather-20 {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.feather-32 {
    width: 32px;
    height: 32px;
    stroke-width: 2;
}

.feather-40 {
    width: 40px;
    height: 40px;
    stroke-width: 2;
}

.feather-64 {
    width: 64px;
    height: 64px;
    stroke-width: 1;
}

.feather-96 {
    width: 96px;
    height: 96px;
    stroke-width: 1;
}

.feather-128 {
    width: 128px;
    height: 128px;
    stroke-width: 1;
}

#SRTCleaner-icon,
#MP4SRT-icon,
#televideo-icon,
#otherSRT-icon,
#download-icon,
#download-icon-w,
#download-icon-c,
#download-icon-c2,
#uploadSRTicon,
#SRTCleaner-icon-overlay,
#MP4SRT-icon-overlay,
#televideo-icon-overlay,
#otherSRT-icon-overlay,
#download-icon-overlay,
#download-icon-w-overlay,
#download-icon-c-overlay,
#download-icon-c2-overlay {
    transition: .5s;
}

.icon-text {
    color: white;
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
}

.icon-container {
    position: relative;
    display: flex !important;
    flex-direction: column !important;
}

.icon-overlay {
    position: absolute;
    bottom: 3em;
    left: 27%;
    z-index: 1;
}

.icon-overlay-sm {
    position: absolute;
    bottom: 4em;
    left: 27%;
    z-index: 1;
}

.icon-overlay-xs {
    position: absolute;
    bottom: 2.5em;
    left: 27%;
    z-index: 1;
}

#uploadSRTicon:hover,
#uploadSRTicon:hover + .icon-text,
.icon-container-MP4SRT:hover #MP4SRT-icon,
.icon-container-televideo:hover #televideo-icon,
.icon-container-otherSRT:hover #otherSRT-icon,
.icon-container-download:hover #download-icon,
.icon-container-download-w:hover #download-icon-w,
.icon-container-download-c:hover #download-icon-c,
.icon-container-download-c2:hover #download-icon-c2,
.icon-container-SRTCleaner:hover #SRTCleaner-icon,
.icon-container-MP4SRT:hover #MP4SRT-icon-overlay,
.icon-container-otherSRT:hover #otherSRT-icon-overlay,
.icon-container-download:hover #download-icon-overlay,
.icon-container-download-w:hover #download-icon-w-overlay,
.icon-container-download-c:hover #download-icon-c-overlay,
.icon-container-download-c2:hover #download-icon-c2-overlay,
.icon-container-SRTCleaner:hover #SRTCleaner-icon-overlay,
.icon-container-MP4SRT:hover .icon-text,
.icon-container-televideo:hover .icon-text,
.icon-container-otherSRT:hover .icon-text,
.icon-container-download:hover .icon-text,
.icon-container-download-w:hover .icon-text,
.icon-container-download-c:hover .icon-text,
.icon-container-download-c2:hover .icon-text,
.icon-container-SRTCleaner:hover .icon-text {
    transform: translate(0, -1em);
    cursor: pointer;
    opacity: 1;
}

.icon-container-televideo #televideo-icon-overlay {
    bottom: 1.7em;
    font-size: 2em;
    left: 50%;
    transform: translate(-50%);
}

.icon-container-televideo:hover #televideo-icon-overlay {
    transform: translate(-50%, -.5em) !important;
}

#settings-tab-panel,
#upload-tab-panel,
#openai-tab-panel,
#download-tab-panel {
    background-color: #ffffff40;
    display: flex;
}
#tab-2 {
    flex-direction: row-reverse;
}

#go-to-arrow-icon {
    display: none;
    color: #ffffff60;
    stroke-width: 2;
    z-index: 2;
    transition: .5s;
    animation: bounce 1s infinite;
}

#go-to-arrow-icon:hover {
    color: #ffffff;
    cursor: pointer;
}

#toggle-icon-base,
#toggle-icon,
#toggle-icon2,
#toggle-icon3,
#toggle-icon4 {
    transition: .5s;
    cursor: default;
    stroke-width: 1.3 !important;
}

#toggle-icon-base:hover,
#toggle-icon:hover,
#toggle-icon2:hover,
#toggle-icon3:hover,
#toggle-icon4:hover {
    cursor: pointer;
}

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
    font-size: .7em;
    height: 2em;
    width: 3em;
    background: none;
    border: none;
    border-bottom: 1px solid white;
    color: white;
    text-align: center;
    outline: none;
}

#toggle-icon.t-disabled,
#toggle-icon2.t-disabled,
#toggle-icon.t-disabled + span,
#toggle-icon2.t-disabled + span {
  color: #ffffff50 !important;
  cursor: default;  
}

#alert-tab-panel #alert-text-2 {
    color: white;
}

#accordionFlushExample div, #accordionFlushExample button {
    background: #ffffff10 !important;
    color: white !important;
}

.accordion {
    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
    --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.accordion-body {
    max-height: 60vh !important;
}

.pages-text-col {
    display: none;
}

.navbar-voices {
    overflow-y: scroll;
}

.navbar-voices p {
    background-color: #00000090;
    margin: 0;
    padding: .5em 0 .5em 1.3em;
    text-align: start;
    cursor: pointer;
    transition: .5s;
    border-bottom: 1px solid grey;
}

.navbar-voices p.active {
    background-color: #000000;
}

.navbar-voices p:not(.active):hover {
    background-color: #00000060;
}

.banner-errori .heading {
    border: 1px solid white;
}

.banner-errori .heading h6 {
    cursor: pointer;
}

.banner-errori .fa-chevron-up,
.banner-errori .fa-chevron-down {
    float: right;
}

.log {
    display: none;
    background: gray;
    color: black;
    padding: 10px;
    border-bottom: 1px solid black;
}

.log p:not(.empty) {
    margin: 0;
    cursor: pointer;
}

.log .log-pages {
    display: none;
    flex-direction: column;
}

.log .log-pages span {
    cursor: pointer;
    width: fit-content;
}

.log .log-pages span:hover {
    text-decoration: underline;
}