@import 'medium-editor/dist/css/medium-editor.css';
@import 'medium-editor/dist/css/themes/default.css';

@import 'plyr/dist/plyr.css';
/* @import "@glidejs/glide/dist/css/glide.core.min.css"; */
@import 'common/fonts';



@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --plyr-color-main: #000000;
}

.half-container{

  /*
  width: 50%;

  @screen sm{
    width: 320px;
  }

  @screen md{
    width: 384px;
  }
  */

  @screen lg{
    width: 512px;
  }

  @screen xl{
    width: 640px;
  }

  @screen 2xl{
    width: 768px;
  }
}

.ply-prova .plyr{
  @apply w-full h-full;
}

.pulse {
  border-radius: 50%;
  box-shadow: 0px 0px 1px 1px #0000001a;
  animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
  0% {
    box-shadow: 0 0 0 0px rgba(0, 0, 0, 0.2);
  }
  100% {
    box-shadow: 0 0 0 20px rgba(0, 0, 0, 0);
  }
}


.collapsible {
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all .6s;
  pointer-events: none;
}

.collapsible.is-open {
  opacity: 1;
  pointer-events: auto;
}

.dbg {
  @apply border border-red-600;
}

.nav {
  @apply flex justify-between py-5;
}

.nav .menu-item a {
  @apply text-lg text-white font-medium uppercase;
}

.nav .menu-item a:hover {
  @apply opacity-70;
}

body.header-dark header {
  @apply text-black; /* bg-white */
}

body.header-dark footer {
  @apply text-black;
}

body.header-dark .nav .menu-item a {
  @apply text-black;
}

body.header-dark .hamburger {
  @apply text-black;
}

body.header-dark .black-on-dark{
  @apply text-black;
}

body header{
  @apply bg-white bg-opacity-0 transition-all duration-500;
}

body.header-bg-white header{
  @apply bg-opacity-100;
}

.text-vh {
  @apply text-xs leading-snug;

  @screen md{

    @apply text-sm;

    /* font-size: clamp(0.9rem, 1.2vh, 3.5rem); */

  }
}

.lead-vh {
  
  @apply text-xl leading-[1.2];

  @screen md{

    @apply text-4xl;

    /* font-size: clamp(1rem, 4vh, 3.5rem); */
  }
}

.anim-y {
  @apply translate-y-[30%] transition-transform duration-700;
}

.anim-y.anim-y-active {
  @apply translate-y-0;
}

.anim-y-reverse{
  @apply -translate-y-[30%] transition-transform duration-700;
}

.anim-y-reverse.anim-y-active {
  @apply translate-y-0;
}

/*
  Clip
*/
.clip-right{
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0% 100%);
}

.clip-left{
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}

/*
  Modal Style
*/
.modal-suptitle {
  @apply font-oakes text-[#ababab] uppercase mb-1;
}

.modal-title { /* 65px in Illustrator */
  @apply font-serif mb-4 text-xl leading-tight;

  @screen md{
    /* font-size: clamp(1.4rem, 4vh, 3.5rem); */
    @apply text-4xl;
  }
}

.modal-lead {
  @apply font-serif mb-2 text-lg;

  @screen md{
    /* font-size: clamp(2rem, 2vh, 1.75rem); */
    @apply text-2xl;
  }
}

.modal-text {
  @apply font-oakes leading-relaxed text-xs;

  @screen md{
    /* font-size: clamp(0.9rem, 1.2vh, 3.5rem); */
    @apply text-sm;
  }

}

/* ===== Scrollbar CSS ===== */
/* Firefox */
.fancy-scroll {
  scrollbar-width: auto;
  scrollbar-color: #000000 #ffffff;
  position: relative;
}

/* .fancy-scroll::after{
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 1px;
    height: 100%;
    background: #000;
  } */

/* Chrome, Edge, and Safari */
.fancy-scroll::-webkit-scrollbar {
  width: 8px;
}

.fancy-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.fancy-scroll::-webkit-scrollbar-thumb {
  background-color: #000000;
  border-radius: 10px;
  border: 1px solid #000000;
}


@media screen and (max-width: 1280px) {
  /*
  .container {
    padding-left: 4.5rem;
    padding-right: 4.5rem;
  }
  */

  .hamburger {
    left: 10px;
    width: 2rem;
  }
}


/*
  Sustentabilidade
*/
.section-sustentabilidade{
  background-image:url('@images/sustentabilidade-mobile.jpg');

  @screen md{
      background-image:url('@images/bg-sustentabilidade.jpg');
  }
  
}


/*
  Oficina do Café
*/
.section-oficina{
  background-image:url('@images/bg-oficina-mobile.jpg');

  @screen md{
      background-image:url('@images/oficina-1.jpg');
  }

}
 
/*

*/

.medium-editor-element{
  outline: 1px dotted #ffa07a;
}