html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white; 
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #ccc;
  border-top: 6px solid #3498db;
  border-radius: 50%;
  animation: girar 1s linear infinite;
}

@keyframes girar {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


.main-content {
    flex: 1 0 auto;
    margin-bottom: 30px;
}

.header {
    margin-top: 70px;
}

.img-container {
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    gap: 10px;
    max-width: 100%;
    margin: 10px 40px 0 30px;
}

.images {
    display: flex;
    justify-content: center;
    align-items: center;
}

.images img {
    height: 65px;
    width: auto;
    filter: grayscale(70%);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.images:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.popularsTitle {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.nav-item.dropdown:hover>.dropdown-menu {
    display: block;
    position: absolute;
}

.dropdown-menu {
    margin-top: -1px;
    position: relative;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu:hover>.dropdown-menu {
    display: block;
}

.smenu {
    position: relative;
}

.smenu:before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    bottom: -10px;
    left: -10px;
}

#videoCardsContainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, max-content));
    gap: 30px;
    margin: 40px 0 0 40px;
    justify-content: start;
}

.cardVideos {
    width: 260px;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.05);
    color: black;
    transition: transform 1s ease, box-shadow 0.3s ease;
}

.cardVideos:hover {
    color: black;
    transform: scale(1.01);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.img-language {
    height: 25px;
    width: auto;
}


.first {
    margin-top: -10px;
    font-size: 15px;
}

.card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3em;
    line-height: 1.5em;
}

.card-text {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar {
    z-index: 2;
    position: fixed;
    width: 100%;
    top: 0;
}

.carrousel-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 250px 0px 350px 0px;
}

.carrousel-container-div {
    position: absolute;
    z-index: 0;
    opacity: 0;
}

.carrousel-container-div.active {
    z-index: 1;
    opacity: 1;
}

.carrousel-container-div-img {
    box-shadow: 0px 8px 10px rgba(0, 0, 0, 0.08);
    width: 1050px;
    height: auto;
    object-fit: fill;
}

.img1Modified {
    position: absolute;
    z-index: 1;
}

.img2Modified {
    position: absolute;
    z-index: 1;
}

.img3Modified {
    position: absolute;
    z-index: 1;
}

.btn-left {
    position: absolute;
    margin: 100px 83% 0 0;
    border: none;
    height: 68.75%;
    width: 65px;
    background-color: white;
}

.btn-right {
    position: absolute;
    margin: 100px 0 0 83%;
    border: none;
    height: 68.75%;
    width: 65px;
    background-color: white;
}

.footer {
    border-top: 1px solid black;
    background-color: rgb(46, 41, 41);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.social-media {
    text-align: center;
    margin-left: 14%;
}

.social-media i {
    font-size: 25px;
    color: #ffffff;
    margin: 0 10px;
    transition: transform 0.8s ease, color 0.8s ease;
}

.fa-linkedin:hover {
    transform: scale(1.1);
    color: #0077b5;
}

.fa-github:hover {
    transform: scale(1.1);
    color: #d5dadd;
}

.fa-envelope:hover {
    transform: scale(1.1);
    color: #817e7e;
}

.copy {
    color: #ffffff;
    text-align: right;
    margin: 4px 5px 0 0;
}

.footer-brand {
    color: white;
    font-size: 20px;
    text-align: left;
    margin: 4px 0 0 5px;
}

.page-link {
    color: #464545;
    outline: none !important;
    box-shadow: none !important;
}

.page-link:hover {
    color: #464545;
}

.btn {
    background-color: white !important;
    color: black;
    margin: 15px 0 0 15px;
    border: none;
}

.btn:hover {
    background-color: white;
    color: black;
    margin: 15px 0 0 15px;
    border: none;
}

.btn-secondary:not(:disabled):not(.disabled).active,
.btn-secondary:not(:disabled):not(.disabled):active,
.show>.btn-secondary.dropdown-toggle {
    background-color: white;
    color: black;
    margin: 15px 0 0 15px;
    border: none;
}

.btn.focus,
.btn:focus {
    outline: none;
    box-shadow: none;
}

.btn-secondary:not(:disabled):not(.disabled).active:focus,
.btn-secondary:not(:disabled):not(.disabled):active:focus,
.show>.btn-secondary.dropdown-toggle:focus {
    box-shadow: none;
}

.btn-secondary.focus,
.btn-secondary:focus {
    background-color: white;
    color: black;
    border: none;
}

.logo {
    width: 30px;
    height: auto;
}

.logo0 {
    width: 25px;
    height: auto;
}

.btn-group.dropright:hover .dropdown-menu {
    display: block;
    position: absolute;
}

.btnActive {
    background-color: rgb(236, 236, 236) !important;
}

.disabled0 {
    display: none;
}

.fa-xmark {
    font-size: 13px;
    color: black;
    margin-left: 3px;
}

.form-control:focus {
    outline: none !important;
    box-shadow: none !important;
    border: 1px solid #bbbcbe !important;
}

.form-control:hover {
    border: 1px solid #bbbcbe !important;
}

/* #searchForm {
    margin-left: 850px;
} */

.searchButton {
    background-color: white !important;
    color: black;
    margin: 15px 0 0 15px;
    border: 1px solid #ced4da;
    border-radius: .25rem;
}

.searchButton:hover {
    background-color: white;
    color: black;
    margin: 15px 0 0 15px;
    border: 1px solid #ced4da;
    border-radius: .25rem;
}

.searchButton:active {
    color: black !important;
    background-color: white !important;
    outline: none !important;
    box-shadow: none !important;
    border-color: #bbbcbe !important;
}

.searchButton:focus {
    outline: none !important;
    box-shadow: none !important;
}

.idiom {
    width: 30px;
    height: auto;
    margin-left: 30px;
}

#translateBtn {
    background: none;
    border: none;
    padding: 0;
}

#nav-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 35px;
}

#nav-pagination .pagination .page-link {
    padding: 0.7rem 0.95rem;
}

.dropdown-item:active {
    background-color: rgb(236, 236, 236);
    color: black;
}

.annoyingLine:hover {
    color: rgb(46, 41, 41);
    ;
}

.navbar-brand {
    border: none;
}

.active {
    background-color: #ebe8e8;
}

.searchText {
    display: flex;
    justify-content: left;
    margin: 100px 0 0 38px;
}

.collapse.navbar-collapse.show {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

#searchForm {
    flex-basis: 100%;
    width: 100%;
    margin-top: 10px;
}

.jsHidden {
    display: none;
}

.categoryitem1 {
    display: none;
}

.idiomsitem1 {
    display: none;
}

@media (min-width: 992px) {
    .collapse.navbar-collapse {
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
    }

    #searchForm {
        flex-basis: auto;
        width: auto;
        margin-top: 0;
    }
}

@media (max-width: 600px) {
    .header {
        margin-top: 20px;
    }

    #videoCardsContainer {
        grid-template-columns: repeat(2, 150px);
        margin: 40px 0 0 0;
        justify-content: center;
    }

    .img-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(35px, 1fr));
        gap: 10px;
        max-width: 100%;
        margin: 10px 20px 40px 10px;
    }

    .images img {
        height: 35px;
        width: auto;
    }

    .footer {
        flex-direction: column;
        text-align: center;
    }

    .navbar {
        position: relative;
    }

    .navbar-collapse {
        margin-top: 20px;
    }

    #translateBtn {
        padding-right: 7px;
    }

    .navbar-nav {
        padding-left: 2px;
    }

    .dropdown-submenu {
        display: none;
    }

    .jsHidden {
        display: block;
    }

    .categoryitem0 {
        display: none;
    }

    .categoryitem1 {
        display: block;
    }

    .idiomsitem0 {
        display: none;
    }

    .idiomsitem1 {
        display: inline-block;
    }

    .nav-item.dropdown:hover>.dropdown-menu {
        display: block;
        position: relative;
    }

    .navbar-nav .dropdown-menu {
        position: absolute;
        margin: 10px 0 0 20px;
    }

    .searchText {
        margin: 35px 0 0 31px;
    }

    #spanSearch {
        font-size: large;
    }

    .cardVideos {
        width: 150px;
        height: 230px;
    }

    .carrousel-container {
        margin: 100px 0px 150px 0px;
    }

    .carrousel-container-div-img {
        max-width: 100vw;
        height: auto;
    }

    .card-body {
        padding: 10px;
    }

    .card-title {
        font-size: small;
        margin: 0;
    }

    .technologies {
        font-size: larger;
        padding: 0 10px 0 10px;
        margin-bottom: 20px;
    }

    .card-text {
        font-size: small;
        margin: 0;
    }

    .img-language {
        height: 18px;
        width: auto;
    }

    .form-control {
        width: 68vw;
    }

    .btn-left {
        display: none;
    }

    .btn-right {
        display: none;
    }

    .footer-brand,
    .social-media,
    .copy {
        margin: 0 0 10px 0;
    }
}