body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f4f4f4;
  color: #333;
  overflow-x: hidden !important;
}
 
header {
  background: #0055aa;
  color: white;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

header h1 {
  margin: 0;
  font-size: 24px;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-left: 0px;
  display: flex;
  gap: 20px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.hero {
  background: #e0f0ff;
  padding: 40px;
  text-align: center;
}

.hero .btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: #0055aa;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

.info, .ranking {
  padding: 30px;
  background: white;
  margin: 20px;
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

th, td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
}

footer {
  background: #0055aa;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 30px;
}

.info-container {
  display: flex;
  gap: 20px;
  margin: 20px;
  flex-wrap: wrap;
}

.info {
  flex: 1;
  background: white;
  padding: 30px;
  border-radius: 8px;
  min-width: 280px;
}

/* Responsivo para telas pequenas */
@media (max-width: 768px) {
  .info-container {
    flex-direction: column;
  }
}

.ranking-container {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin: 20px;
  flex-wrap: wrap;
}

.ranking {
  flex: 2;
  background: white;
  padding: 30px;
  border-radius: 8px;
  min-width: 280px;
}

.personagem {
  flex: 1;
  max-width: 200px;
}

.personagem img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

/* Responsivo para telas pequenas */
@media (max-width: 768px) {
  .ranking-container {
    flex-direction: column;
    align-items: center;
  }

  .personagem {
    max-width: 150px;
    margin-top: 20px;
  }
}

/* Modal */

#BackPerg{
  margin-top: -3%;
  width: 70%;
  background-color:rgb(185, 255, 232);
  height: 70vh;
  border-radius: 10px;
}

#resp{
    background-color: aliceblue;
    border-radius: 10px;
    margin-top: 1.5%;
    height: auto;
}

#perg{
    background-color: aliceblue;
    border-radius: 10px;
}

input{
  height: 20px;
}

*{
  box-sizing: border-box;
}

#openBtn {
  background-image: linear-gradient(rgb(185, 255, 232));
  border-radius: 20px;
  border: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  padding: 10px 25px;
  color: #000;
}
button:active{
  opacity: 0.8;
}

.modal {
  background-color: rgba(0, 0, 0, 0.3);
  opacity: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: all 0.3 ease-in-out;
  z-index: -1;

  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.open {
  opacity: 1;
  z-index: 999;
}

.modal-inner {
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  padding: 15px 25px;
  text-align: center;
  width: auto;
}

.modal-inner h2 {
  margin: 0;
}

.modal-inner p {
  line-height: 24px;
  margin: 10px 0;
}

#closeBtn {
  background-image: linear-gradient(rgb(185, 255, 232));
  border-radius: 20px;
  border: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  color: #000;
  cursor: pointer;
  padding: 10px 25px;
}

#nextBtn {
  background-image: linear-gradient(rgb(185, 255, 232));
  border-radius: 20px;
  border: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  color: #000;
  cursor: pointer;
  padding: 10px 25px;
  margin-right: 0px;
}

#prevBtn {
  background-image: linear-gradient(rgb(185, 255, 232));
  border-radius: 20px;
  border: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  color: #000;
  cursor: pointer;
  padding: 10px 25px;
  margin-right: 0px;
}
/* Style the buttons that are used to open and close the accordion panel */
.accordion {
background-color: #eee;
color: #444;
cursor: pointer;
padding: 18px;
width: 50%;
text-align: left;
border: none;
outline: none;
transition: 0.4s;
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.active, .accordion:hover {
background-color: #ccc;
}

/* Style the accordion panel. Note: hidden by default */
.panel {
padding: 0 18px;
background-color: white;
display: none;
overflow: hidden;
}

/* Style the buttons that are used to open and close the accordion panel */
.accordion {
  background-color: #eee;
  color: #444;
  cursor: pointer;
  padding: 18px;
  width: 50%;
  text-align: left;
  border: none;
  outline: none;
  transition: 0.4s;
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.active, .accordion:hover {
  background-color: #ccc;
}

/* Style the accordion panel. Note: hidden by default */
.panel {
  padding: 0 18px;
  background-color: white;
  display: none;
  overflow: hidden;
}

/*FAZ O L*/
.card {
  display: flex;
  align-items: center;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 5px;
  max-width: 800px;
  margin: 20px auto;
}

.card-img {
  width: 150px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  margin-right: 20px;
}

.card-text {
  flex: 1;
  font-family: 'Segoe UI', sans-serif;
  color: #333;
}

@media (max-width: 768px) {
  .card {
    flex-direction: column;
    text-align: center;
  }

  .card-img {
    margin: 0 0 15px 0;
    width: 100%;
  }
}

#faculdades-container {
  max-height: 400px; /* altura máxima visível */
  overflow-y: auto;  /* ativa rolagem vertical */
  padding-right: 10px;
  scroll-behavior: smooth;
}

/* Estilo para navegadores WebKit (Chrome, Edge, Safari) */
#faculdades-container::-webkit-scrollbar {
  width: 8px;
}

#faculdades-container::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}

#faculdades-container::-webkit-scrollbar-track {
  background-color: transparent;
}

/* styles.css */

/* Tema padrão: segue o sistema */
:root {
  color-scheme: light dark;
}

/* Tema claro */
body.light {
  background-color: #ffffff;
  color: #000000;
}

/* Tema escuro */
body.dark {
  background-color: #121212;
  color: #ffffff;
}


/* Botão fixo no canto inferior direito */
#toggle-theme {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  padding: 10px 15px;
  border: none;
  border-radius: 50%;
  background-color: #444;
  color: white;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: background-color 0.3s;
}

body.dark {
  background: #1e1e1e;
  color: #f0f0f0;
}

body.dark header,
body.dark footer {
  background: #003366;
  color: #f0f0f0;
}

body.dark nav a {
  color: #f0f0f0;
}

body.dark .hero {
  background: #2a2a2a;
}

body.dark .hero .btn {
  background: #003366;
  color: #f0f0f0;
}

body.dark .info,
body.dark .ranking,
body.dark .modal-inner,
body.dark .panel {
  background: #2a2a2a;
  color: #f0f0f0;
}

body.dark .card,
body.dark .card-curso {
  background: #333;
}

body.dark th,
body.dark td {
  border-color: #555;
}

body.dark .accordion {
  background-color: #333;
  color: #f0f0f0;
}

body.dark .active,
body.dark .accordion:hover {
  background-color: #444;
}

body.dark .modal-inner {
  background-color: #2a2a2a;
  color: #f0f0f0;
}

body.dark #openBtn,
body.dark #closeBtn {
  background-image: linear-gradient(#444, #666);
  color: #f0f0f0;
}

body.dark .card-text{
  color: #f0f0f0;
}

#curso-container {
  max-height: 400px; /* altura máxima visível */
  overflow-y: auto;
}

#curso-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.card-curso {
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 15px;
  width: 280px;
  flex: 1 1 280px;
}

.card-curso .card-text h1 {
  font-size: 18px;
  margin-bottom: 10px;
}

.card-curso .card-text h3 {
  font-size: 14px;
  margin: 5px 0;
}

@media (max-width: 600px) {
  .card-curso {
    width: 100%;
    flex: 1 1 100%;
  }
}

/*TESTE*/

.carousel-fullscreen {
  position: relative;
  width: 100%;
  height: 100vh; /* ocupa toda a altura da tela */
  overflow: hidden;
  z-index: 0;
}

.carousel-fullscreen {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.carousel-content {
  color: white;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 20px;
  border-radius: 8px;
}

.link-fixo:link {
  color: darkblue; /* antes de ser clicado */
}

.link-fixo:visited {
  color: 	#7B68EE; /* depois de ser clicado */
}

.link-fixo:hover {
  color: red; /* quando o mouse passa por cima */
}

#menuu{
  opacity: 0%;
}

@media screen and (max-width:900px) {
  
.inv{
  opacity: 0%;
}

#menuu{
  opacity: 100%;
  position: absolute;
  margin-left: 60%;
  margin-top: -10px;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-left: 0px;
  display: flex;
  gap: 0px;
}

}

.navbar {
    overflow: hidden;
    font-family: Arial;
  }
  
  /* Links inside the navbar */
  .navbar a {
    float: left;
    font-size: 16px;
    color: black !important;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
  }

  /* The dropdown container */
  .dropdown {
    float: left;
    overflow: hidden;
  }

  .dropbtn{
    width: 150px;
    height: 50px;
  }
  
  /* Dropdown button */
  .dropdown .dropbtn {
    font-size: 16px;
    border: none;
    border-color: black;
    outline: none;
    color: black;
    padding: 14px 16px;
    background-color: inherit;
    font-family: inherit; /* Important for vertical align on mobile phones */
    margin: 0; /* Important for vertical align on mobile phones */
   
  }
  
  /* Add a red background color to navbar links on hover */
  .navbar a:hover, .dropdown:hover .dropbtn {
    background-color: aliceblue;
  }
  
  /* Dropdown content (hidden by default) */
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    max-height: 300px;
    overflow-y: scroll;
    scroll-behavior: auto;
  }
  
  /* Links inside the dropdown */
  .dropdown-content a {
    float: none;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
  }
  
  /* Add a grey background color to dropdown links on hover */
  .dropdown-content a:hover {
    background-color: #ddd;
  }

    .dropdown:hover .dropdown-content {
    display: block;
  }

