:root{
  --swiper-navigation-sides-offset:-4rem; /* offset for navigation */
}

html {
  scroll-behavior: smooth;
}

/* Fonts */
@font-face {
    font-family: 'Barlow-Medium';
    src: url('/public/assets/fonts/Barlow-Medium.ttf') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Barlow-Black';
    src: url('/public/assets/fonts/Barlow-Black.ttf') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Barlow-Semibold';
    src: url('/public/assets/fonts/Barlow-SemiBold.ttf') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Barlow-Bold';
    src: url('/public/assets/fonts/Barlow-Bold.ttf') format('woff2');
    font-weight: normal;
    font-style: normal;
}
/* End Fonts */

/* Modal */
#myImg {
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

#myImg:hover {opacity: 0.7;}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
  margin: auto;
  display: block;
  width: 100%;
  max-width: 600px;
}

/* Add Animation */
.modal-content, #caption {  
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
  from {-webkit-transform:scale(0)} 
  to {-webkit-transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

.modal-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: auto;
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 15px;
  color: #f1f1f1;
  background-color: #27272760;
  padding: 0px 15px 5px 15px;
  border-radius: 50%;
  font-size: 30px;
  font-weight: bold;
  transition: 0.3s;
  z-index: 1001;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
  .modal-content {
    width: 100%;
  }
}

.thumbnail {
    cursor: pointer;
}
/* End Modal */

/* Sidenav */
.sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  background-color: #FFC700;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
}

.sidenav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: #005A36;
  display: block;
  transition: 0.3s;
}

.sidenav a:hover {
  color: #f1f1f1;
}

.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

@media screen and (max-height: 450px) {
  .sidenav {padding-top: 15px;}
  .sidenav a {font-size: 18px;}
}

.hamburguer-menu {
    display: none;
    font-size: 2rem;
    color: #FFC700;
}
/* End Sidenav */

body {
    margin: 0;
    background-image: url('/public/images/body-pattern.webp');
    font-family: 'Barlow-Medium', sans-serif;
}

h2 {
    color: #005A36;
}

header, footer {
    background-color: #00682D;
    padding: 1rem;
    text-align: center;
}

nav {
    display: block;
    background-color: #FFC700;
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

li {
  display: inline;
}

a {
    text-decoration: none;
    color: #000;
}

a img {
  vertical-align: middle;
}

.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.swiper-container{
  position: relative;
}
.swiper{
  position: static;
}

.swiper-button-next, .swiper-button-prev {
    background-color: #9bc966;
    color: #005A36;
    padding: .5rem;
    font-weight: bolder;
    opacity: 50%;
    border-radius: 50%;
    width: calc(var(--swiper-navigation-size) / 20 * 20);
}

.swiper-button-next.swiper-button-disabled, .swiper-button-prev.swiper-button-disabled {
    color: rgb(34, 34, 34);
    background-color: gray;
}

.container {
    margin: 0 auto;
    width: 100%;
}

.header--container {
    display:flex;
    justify-content: space-between;
}

.logo-with-menu {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.footer--container {
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 50%;
}

.footer--container img {
    height: 50px;
    width: auto;
}

.header-logo {
    height: 100px;
    width: auto;
}

.nav--container {
    display: flex;
    width: 65%;
    margin: auto;
    justify-content: space-between;
    padding: 1rem;
}

.nav--container li {
    font-size: 2rem;
}

.first-fold {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    width: 100%;
}

.first-fold p,
.first-fold img {
    width: 50%;
}

.first-fold p {
    font-family: 'Barlow-SemiBold', sans-serif;
    text-align: center;
    padding: 1rem;
    font-size: 3rem;
}

.second-fold {
    width: 95%;
}

.card-container {
    width: 80%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
}

.card {
    flex: 1;
    min-width: 200px;
    cursor: pointer;
}

.chapter-card {
    flex: 1;
    min-width: 200px;
    cursor: pointer;
    max-width: 300px;
}

.card img {
    width: 100%;
    height: auto;
    margin-bottom: .5rem;
}

.chapter-card img {
    width: 100%;
    height: auto;
    margin-bottom: .5rem;
}


.card-content p {
    font-family: 'Barlow-SemiBold', sans-serif;
    font-size: 2rem;
    margin: 0;
}

.judges--background {
    position: relative;
    background-color: #FFC700;
    margin-top: 2rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.bottom-right-float {
    position: absolute;
    bottom: -100px;
    right: 0;
    width: 150px;
    height: auto;
}

.judges--container {
    width: 80%;
    margin: auto;
}

.judges-participants-title {
    color: #005A36;
    font-family: 'Barlow-Bold', sans-serif;
    font-size: 2.5rem;
    text-align: left;
    margin: 0 0 1rem 0;
}

.swiper {
    width: 100%;
    height: 100%;
}

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

.judges-participants-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.judges-participant-name {
    font-family: 'Barlow-SemiBold', sans-serif;
    font-size: 1.5rem;
    color: #333;
    margin: 0;
}

.judges-participant-description {
    font-family: 'Barlow-Medium', sans-serif;
    font-size: 1.2rem;
    color: #333;
    margin: 0;
}

.judges--swiper-wrapper img {
    display: block;
    max-height: 350px;
    width: auto;
    object-fit: cover;
}

.participants--swiper-wrapper img {
    display: block;
    max-height: 350px;
    width: auto;
    object-fit: cover;
}

.products--swiper-wrapper img {
    display: block;
    width: 100%;
    max-height: auto;
    object-fit: cover;
}

.judges-divider {
    width: 100%;
    height: 5px;
    background-color: #CC003D;
    margin: 2rem 0; 
    border: none;
}

.votations-divider {
    width: 100%;
    height: 5px;
    background-color: #005A36;
    margin: 2rem 0; 
    border: none;
}

.products-divider {
    width: 100%;
    height: 5px;
    background-color: #FFC700;
    margin: 2rem 0; 
    border: none;
}

.highlights--products--container {
    width: 80%;
    margin: auto;
    padding: 1rem;
}

.highlights--products--container h2 {
    font-size: 2.5rem;
}

.votations--background {
    background-color: #E0E98C;
    padding: 2rem 0;
}

.votations--background h2 {
     font-size: 2.5rem;
}

.text-center {
    text-align: center;
}

.votations--container {
    width: 80%;
    margin: auto;
}

.votations--header h2 {
    width: 50%;
}

.eliminated--wrapper {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.favorites--container {
    display: flex;
    justify-content: space-between;
}

.favorites--item {
    text-align: center;
    width: 50%;
}

.favorites--item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.favorites--item--multipe {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 75%;
}

.favorites--item--multipe img {
    width: 80%;
}

.eliminated--swiper-wrapper img {
    display: block;
    max-height: 90px;
    width: auto;
    object-fit: cover;
}

.eliminated--container {
    width: 300px;
    flex-shrink: 0;
    display: flex;
}

.mobileSwiper {
    display: none;
}

.desktop--eliminated-fold {
    display: flex;
    flex-wrap: wrap;
}

.chapters-fold {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: space-between;
}


.eliminated-item {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.eliminated-item img {
    width: 90px;
    height: auto;
}

.main-element {
    width: 100%;
}

.main-element img {
    display: block;
    width: 100%;
}

.main-element p {
    font-family: 'Barlow-SemiBold', sans-serif;
    font-size: 2rem;
    color: #005A36;
}

.secondary-element {
    flex-basis: calc(50% - 0.5rem);
}

.secondary-element img {
    display: block;
    width: 100%;
}

.secondary-element p {
    font-family: 'Barlow-SemiBold', sans-serif;
    font-size: 2rem;
    color: #005A36;
}

/* Responsive */

@media (max-width: 1024px) {
    .first-fold p {
        font-size: 2rem;
    }
    .card-content p {
        font-size: 1.5rem;
    }

    .swiper-slide img {
        max-height: 280px;
        width: auto;
    }

    .votations--background h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 992px) {
    .nav--container {
    width: 90%;
}
    
}

@media (max-width: 768px) {

    :root{
    --swiper-navigation-sides-offset:-2rem; /* offset for navigation */
    }


    nav {
        display: none;
    }
    
    .header-logo {
        height: 40px;
        width: auto;
    }

    .card-content p {
        font-size: 1rem;
    }

    .first-fold p {
        font-size: 1.125rem;
    }

    .footer--container {
        max-width: 90%;
    }

    .footer--container img {
        height: 40px;
        width: auto;
    }

    .card-container {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .mobileSwiper {
        display: block;
    }

    .eliminated--container {
        display: none;
    }

    .swiper-slide img {
        max-height: 230px;
        width: auto;
    }

    .eliminated--swiper-wrapper img {
        max-height: 90px;
    }

    .favorites--container {
        flex-direction: column;
    }

    .favorites--item {
        width: 100%;
    }

    .bottom-right-float {
        position: absolute;
        bottom: -40px;
        right: 0;
        width: 90px;
        height: auto;
    }

    .highlights--products--container h2 {
        font-size: 1.75rem;
    }

    .votations--background h2 {
        font-size: 1.75rem;
    }

    .main-element p {
        font-size: 1.25rem;
    }

    .secondary-element p {
        font-size: 1.25rem;
    }

    .hamburguer-menu {
        display: block;
    }

    .judges-participants-title {
        font-size: 2rem;
    }

    .votations--background h2 {
        font-size: 1.5rem;
    }
}