 *{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    font-family: 'Trebuchet MS', sans-serif;
    font-weight: 400;
  overflow-x: hidden;
}
.nav-item a{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
    color: #315f8f !important;
}
.navbar-nav > li > a:hover {
  background-color: #e6f0ff;
  color: #336699;
}

/* Make dropdown open on hover */
.hover-dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0; /* optional: remove dropdown jump */
}

/* Optional: Keep background active while hovering */
.hover-dropdown .dropdown-menu {
  display: none;
  transition: all 0.3s ease;
}

/*#navbar a.active {*/
/*  background-color: #e6f0ff !important;*/
/*  color: #336699;*/
/*  font-weight: 500;*/
/*}*/
/* Active link style */
/*#navbar a.active,*/
/*.dropdown-menu a.active {*/
/*  background-color: #e6f0ff !important;*/
/*  color: #336699 !important;*/
/*  font-weight: 500;*/
/*}*/
#navbar a.active,
.dropdown-menu a.active {
  background-color: #e6f0ff !important;  
  color: #336699 !important;             
  font-weight: 600;
  padding: 6px 20px;
  transition: background 0.3s ease;
}


/* Optional: Active style for dropdown links too */
/* navbar */
/*.nav-icon{*/
/*    background-color: darkblue;*/
/*    border-radius: 20%;*/
/*}*/
/*.nav-icon1{*/
/*    background-color:blue;*/
/*        border-radius: 20%;*/
/*}*/

/*.nav-icon2{*/
/*    background-color: red;*/
/*         border-radius: 20%;*/
/*} */
/*.nav-icon3{*/
/*    background-color: rgb(60, 0, 128);*/
/*         border-radius: 20%;*/
/*}*/
/*.nav-icon4{*/
/*    background-color:green;*/
/*        border-radius: 20%;*/
/*}*/
.social-icons {
  display: flex;
  gap: 6px;
}

.social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  color: white;
  font-size: 20px;
  border-radius: 5px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

/* Hover effect */
.social-icons a:hover {
  transform: scale(1.1);
}

/* Background Colors */
.social-icons .facebook { background-color: #3b5998; }
.social-icons .skype   { background-color: #00aff0; }
.social-icons .youtube { background-color: #ff0000; }
.social-icons .email   { background-color: #0078d4; }
.social-icons .phone   { background-color: #25d366; }

.hero .carousel{
    height: 600px;
}
.hero .carousel-item{
    height: 600px;
}
.hero .carousel-item img{
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
}
/* body */

/* corsi */
.demo{
    color: #3f3d76 !important;
    background-color: #f2f2f2 !important;
    transition: 0.2s all ease;
}
.demo:hover{
    background-color:gray !important;
    color: white !important;
    
} 
.corsi-bg{
    background-color: #92A3B4 !important;
}

/* quiz */
.flag img{
    width: 50px;
}
.flag1 img{
    width: 30px;
}
.della img{
    width: 60px;
}
.true {
    border:2px solid rgb(9, 46, 148) !important;
}

.play-button {
  font-size: 36px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;
  color: white;
  width: 60px;
  height: 60px;
  cursor: pointer;
  z-index: 10;
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Fade in/out on hover */
.video-wrapper:hover .play-button.hidden-on-play {
  opacity: 1;
  pointer-events: auto;
}

.hidden-on-play {
  opacity: 0;
  pointer-events: none;
}
/*cross css*/
.wrong-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/assets/images/wrong.png');
  background-repeat: no-repeat;
  background-size: 130%;
  background-position: center;
  pointer-events: none;
  z-index: 2;
}

  /*quiz bottom active bar*/
  /* Fix appearance of active question/group cell */
th.table-activee {
  position:relative;
  background-color:  #C5D2E3 !important;
  color:black !important;
  padding-bottom: 12px !important; /* ensures space for the underline */
  border: none !important;
}

/* Blue underline bar */
th.table-activee::after{
  content: '';  
  position: absolute;
  bottom: 0;
  top:0;
  left: 0;
  width: 100%;
  height: 100%;
  border-bottom: 3px blue solid;
  border-radius: 2px;
  z-index: 5;
}

  .completed-check {
  position: relative;
  color: black !important;
  font-weight: bold;
}

.completed-check::after {
  content: '\f00c'; /* Font Awesome checkmark */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  color: black !important;
  top: 18px;
  left:0;
  right:50px;
  font-size: 12px;
  color: #198754;
}
.question_btn span {
  font-size: 14px;
}

.question_btn i {
  font-size: 15px;
}


.completed-double-check {
  position: relative;
  background-color: white !important; /* Bootstrap success background */
  color: black !important;
  font-weight: bold;
}

.completed-double-check::after {
  content: '\f560';
  color: black !important;/* Font Awesome checkmark */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 15px;
  left:0;
  font-size: 12px;
  color: #198754;
}
footer .table {
    margin-bottom: 0; /* no extra gap */
    background-color: #C5D2E3 !important;
}
.next-prev-icon i{
    font-size: 90px;
    opacity: 0.5;
}
.next-prev-icon:hover i{
    opacity: 1;
    color: #1a1a1a !important;
}
@media screen and (max-width: 576px) {
  .carousel-item ,.carousel ,.carousel-control-next , .carousel-control-prev{
    height: 200px !important; 
    padding: 0 !important;
  }
  .carousel-item img{
      height: 100% !important;
      width: auto;
      object-fit: cover;
  }
}
  
@media (min-width: 992px) {

  .carousel-control-prev {
    left: -1% !important;
  }

  .carousel-control-next {
    right: -1% !important;
  }

}
@media (min-width: 1200px) {
  #v-f-conta {
    min-height: 50vh;
  }
  .quiz {
    height: 66.5vh;
    display: flex;
    flex-direction: column;
}

.quiz .container-fluid {
    flex-grow: 1;
    overflow: hidden;
}

.quiz .row.h-100 > .col-md-8 {
    overflow:auto;
    flex-grow: 1;
}

footer.footer-css {
    flex-shrink: 0;
}

}
.question_btn {
    min-width:120%;
    text-align: center;
    background-color: white;
    cursor: pointer;
    position: relative;;
}
.question_btn span {
    display: inline-block;
    width: 100%;
}  


.rotate-warning {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  background-color:rgb(49, 49, 244);
  color: #fff;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  justify-content: center;
  align-items: center;
  font-size: 1.3rem;
  text-align: center;
  padding: 1rem;
}

@media screen and (max-width: 767.98px) and (orientation: portrait) {
  .rotate-warning {
      display: flex;
  }
}

