* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
@font-face {
  font-family: title;
  src: url(fonts/Philosopher-Bold.ttf);
  font-weight: bold;
}

@font-face {
  font-family: general;
  src: url(fonts/Philosopher-Regular.ttf);
  font-weight: bold;
}

:root {
    --main-text: black;
    --color-bg: #dee7e7;
    --main-back:#a92727;
    --main-color:#dee7e7;
    --grad1: rgba(105,16,16,1);
    --grad2: rgba(224,49,49,1);

    --caro-back: rgb(105,16,16);

    --foothov: rgba(255, 255, 255, 0.6);
    --footbord: #ffffff44;

    --color-menu-from: #a92727;
    --color-menu-to: #a92727;
    
    --color-menu-from: #ba1919;
    --color-menu-to: #e42525;

    --color-carousel-fade: black;

    --color-marker: white;

    --color-sidebar-from: #dee7e7;
    --color-sidebar-to: #dee7e7;

    --sidebar-table-border: rgba(169,39,39,.2);
    --sidebar-tdfirst: #a92727;
    --sidebar-td: #333;
}

.darkmode{
   --main-text: white;
    --color-bg: #000000;
    --main-back: #a92727;
    --main-color:#dee7e7;
    --grad1: rgba(105,16,16,1);
    --grad2: rgba(224,49,49,1);

    --caro-back: rgb(105,16,16);

    --foothov: rgba(255, 255, 255, 0.6);
    --footbord: #ffffff44;


    --color-menu-from: #ba1919;
    --color-menu-to: #ff30308f;

    --color-carousel-fade: black;

    --color-marker: rgb(255, 0, 0);

    --color-sidebar-from: #202058;
    --color-sidebar-to: #bd2f2f;

    --sidebar-table-border: rgba(255, 155, 155, 0.3);
    --sidebar-tdfirst: white;
    --sidebar-td: #b0b0b0;
}


body{
    font-family: general;
    background-color: var(--color-bg);
    color: var(--main-text);
    overflow-x: hidden;
    width: 100%;
}
header{
    font-family: title;
    background: var(--main-back);
    width: 100%;
    clear: both;
    content: '';
    display: table;
    height: 6rem;
	overflow-x: hidden;
}
main{
font-family: title;
height: auto;
font-weight: bold;
font-size: 3rem;
display: flex;
flex-direction: column;
padding: 3% 3% 2% 2%;
}

.cont-dest{
    display: flex;
    flex-flow: row wrap;
    gap: 2%;
    justify-content: flex-start;
    width: auto;
    height: auto;
}

.cont-all{
    display: flex;
    flex-flow: row wrap;
    gap: 2%;
    justify-content: space-around;
    width: 100%;
    height: auto;
}

.cont-dest ul{
    padding-top: 1vw;
    padding-bottom: 1vw;
    flex-direction: row;
    display: flex;
    justify-content: space-around;
    width: auto;
    height: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
    overflow-x: scroll;
}

main img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: flex;
  border-radius: 15px;
}

.cont-dest li{
    height: auto;
    list-style-type: none;
    transform: scale(1.03);
}

main button{
  border: 1px;
  cursor: pointer;
  margin-top: 2%;
  display: flex;
  border-radius: 15px;
  transition: transform 0.3s;
}

main button:hover{
  transform: scale(1.03);
}

main button:hover img{
  filter: brightness(.5);
}

        /*celular*/

@media (max-width: 600px) {

  .cont-dest ul,li{
      gap: 5vw;
  }
  .cont-dest button{
  width: 23vw;
  height: 35vw;}

 .cont-all button{
  width: 23vw;
  height: 35vw;}
}

        /*pc*/

@media (min-width: 601px) {

  .cont-dest ul{
    width: 100%
}

   .cont-dest ul,li{
      gap: 4vw;
  }
    .cont-dest button{
  width: 17vw;
  height: 25vw;}

    .cont-all button{
  width: 17vw;
  height: 25vw;}
}

/*Navegacion*/

.menu{
position: fixed;
height: 6rem;
background: linear-gradient(180deg, var(--color-menu-from), var(--color-menu-to));
overflow-x: hidden;
width: 100%;
z-index: 3;
}

#logo{
    width: auto;
    height: 60px;
    float: left;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    
}

.nav-left {
    display: flex;
    align-items: center;
    padding-left: 2rem; 
}

.nav-right {
  display: flex; 
  flex-direction: row; 
  align-items: center;
  justify-content: flex-end;
  gap: 3vw;
  list-style: none;
  margin: 0;
  padding: 0 3vw; 
}

.nav-right li a {
    text-decoration: none;
    color: #dee7e7;
    font-size: 1.5vw; 
    font-weight: bold;
}


/*Carousel*/

#preview{
background: var(--caro-back);
background: linear-gradient(180deg, var(--grad1) 0%, var(--grad2) 40%, var(--grad2) 100%);
overflow-x: hidden;
width: 100%;
}

#carousel {
  box-sizing: border-box;
  height: 100%;
}

#carousel body {
  margin: 0;
}

/*degradado negro al fondo del carousel*/
#carousel::after {
    background: linear-gradient(to bottom, transparent, var(--color-carousel-fade)) !important;
}
        /*contenedor / lista */
#carousel ul {
  width: 100%;
  height: 100%;
  padding: 0px;
  display: flex;
  gap: 0vw;
  scrollbar-width: none;
  scroll-behavior: smooth;
    overflow-x: hidden;
  scroll-snap-type: x mandatory;
    anchor-name: --my-carousel;
    scroll-marker-group: after;
}

/*pelicula indivudual*/
#carousel li {
    scroll-snap-align: center;
  list-style-type: none;
  background-color: rgba(210, 15, 15, 0.5);
  border: 0px solid var(--main-color);
  padding: 3%;
  flex: 0 0 100%;
    display: flex;
    justify-content: center;
    
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: auto;
}

#carousel li:nth-child(even) {
  background-color: rgb(195, 21, 21, .5);
}

        /*Circulitos*/

#carousel ul::scroll-button(*) {
  border: 0;
  font-size: 2.5rem;
  background: none;
  color: white;
  opacity: 1;
  cursor: pointer;
}

#carousel ul::scroll-button(*):hover,
#carousel ul::scroll-button(*):focus {
  opacity: 1;
}

#carousel ul::scroll-button(*):active {
  translate: 1px 1px;
}

#carousel ul::scroll-button(*):disabled {
  opacity: 1;
  cursor: unset;
}

#carousel ul::scroll-marker-group {
  position: absolute;
  position-anchor: --my-carousel;
  top: calc(anchor(bottom) - 70px);
  justify-self: anchor-center;
  display: flex;
  justify-content: center;
  gap: 50px;
}
#carousel li::scroll-marker {
  content: attr(data-accName);
  width: 16px;
  height: 16px;
  background-color: transparent;
  border: 2px solid var(--color-marker);
  border-radius: 50%;
  overflow: hidden;
  text-indent: 16px;
}
#carousel li::scroll-marker:target-current {
  background-color: var(--color-marker);
}

#carousel li{
    display: flex;
    justify-content: center;
}
        /*celular*/

@media (max-width: 600px) {
    #preview{
        width: 100%;
        aspect-ratio: 1/1;
    }

    
#carousel ul {
  overflow-x: scroll;
}
#carousel img{
    margin: 3rem 0rem 3rem 3rem;
    width: 50%;
}
    #carousel h2{
	font-family: title;
  color: var(--main-color);  
  font-size: 6vw;
  margin-top: 15vw;
  margin-left: 2vw;
}

#carousel p{
  color: var(--main-color);  
  font-size: 1vw;
  margin-top: 3vw;
  margin-left: 3vw;
}
}
        /*pc*/
@media (min-width: 601px) {
    #preview{
        width: 100%;
        aspect-ratio: 16/6;
    }

#carousel img{
    margin-left: 2vw;
    width: 20%;
}
    #carousel h2{
  color: var(--main-color);  
  font-size: 3vw;
  margin-top: 5vw;
  margin-left: 5vw;
}

#carousel p{
  color: var(--main-color);  
  font-size: 2vw;
  margin-top: 5vw;
  margin-left: 5vw;
}
}

/*side menu*/
.sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 5;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, var(--color-sidebar-from), var(--color-sidebar-to));
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
  box-shadow: -5px 0 15px rgba(0,0,0,0.2);
}

/*celular*/
@media (max-width: 800px) {
.sidebar h1{
font-family: title;
  padding: 20px 20px 0 5rem;
  text-decoration: none;
  color: var(--main-text);
  display: block;
  font-size: 2rem;
}

.sidebar p{
  padding: 20px 20px 0 5rem;
  text-decoration: none;
  color: var(--main-text);
  display: block;
  font-size: 1rem;
}

.sidebar img {
  width: 15rem;
  height: 10rem;
  padding: 0 20px 0 3rem;
  display: block;
  object-fit: cover;
}

.sidebar iframe {
  width: 15rem;
  height: 10rem;
  margin: 0 20px 0 5rem;
  display: block;
}


.sidebar .closebtn {
  padding: 20px 20px 0 5rem;
  color: var(--main-text);
  position: absolute;
  top: 0;
  font-size: 3rem;
  text-decoration: none;
}


#infodiv {
  padding: 20px 20px 0 5rem;
  text-decoration: none;
  color: var(--main-text);
  display: block;
  font-size: 1rem;
}


#infotg{
  display: flex;
  flex-direction: row;
}

#infotg button{
  width: 1rem;
  font-size: 2rem;
  height: 1rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--main-text);
}

.movie-table {
  font-size: 1rem;
}

}

/*pc*/
@media (min-width: 801px) {
.sidebar h1{
font-family: title;
  padding: 20px 20px 0 5rem;
  text-decoration: none;
  color: var(--main-text);
  display: block;
  font-size: 3rem;
}

.sidebar p{
  padding: 20px 20px 0 5rem;
  text-decoration: none;
  color: var(--main-text);
  display: block;
  font-size: 1.5rem;
}

.sidebar img {
  width: 30rem;
  height: 20rem;
  padding: 0 20px 0 5rem;
  display: block;
  object-fit: cover;
}

.sidebar iframe {
  width: 30rem;
  height: 20rem;
  margin: 0 20px 0 5rem;
  display: block;
}


.sidebar .closebtn {
  padding: 20px 20px 0 5rem;
  color: var(--main-text);
  position: absolute;
  top: 0;
  font-size: 5rem;
  text-decoration: none;
}


#infodiv {
  padding: 20px 20px 0 5rem;
  text-decoration: none;
  color: var(--main-text);
  display: block;
  font-size: 2rem;
}


#infotg{
  display: flex;
  flex-direction: row;
}

#infotg button{
  width: 2rem;
  font-size: 3rem;
  height: 2rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--main-text);
}

.movie-table {
  font-size: 1.4rem;
}

}

/* Tabla info pelicula */
.movie-table {
  width: 90%;
  margin: 20px auto;
  border-collapse: separate;
  border-spacing: 0;
  font-family: general, sans-serif;
}
.movie-table td {
  padding: 10px 18px;
  vertical-align: top;
  border-bottom: 1px solid var(--sidebar-table-border);
}
.movie-table td:first-child {
  font-weight: bold;
  color: var(--sidebar-tdfirst);
  white-space: nowrap;
  width: 35%;
}
.movie-table td:last-child {
  color: var(--sidebar-td);
}

/*Footer*/

footer{
  background: var(--color-menu-from);
  width: 100%;
  height: 15%;
  color: var(--main-color);
  font-weight: bold;
  padding-left: 10%;
    overflow-x: hidden;
    font-size: 1vw !important;
    letter-spacing: 1px;
    padding: 20px;
	border-top: 2px solid var(--footbord);
}

footer a{
	text-decoration: none;
}

.refawitada{
		color: inherit;
		text-decoration: none;
	}
	.refawitada:hover{
    text-shadow: 0 0 8px var(--foothov);
    opacity: 0.8;
    transition: opacity 0.2s, text-shadow 0.2s;
	}
	.conteniditof{
		display: flex;
		gap: 50px;
		align-items: flex-end;
	}
	.columnitaf{
		display: flex;
		flex-direction: column;
		gap: 6px;
		flex: 1;
	}
	.redesf{
    display: flex;
    gap: 16px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--footbord);
	}
	.redesf a{
    color: inherit;
    font-size: 1vw;
    text-decoration: none;
    transition: opacity 0.2s;
	}

	.redesf a:hover{
    opacity: 0.7;
	}

	footer h1{
    margin-top: 15px;
	margin-bottom: 20px;
	}
		/*celular*/
@media (max-width: 600px) {
    .conteniditof{
		gap: 10px;
        display: flex;
		flex-direction: column;
		align-content:center;
		align-items: center;
		font-size: 3vw !important;
		text-align: center;
    }
	@media (max-width: 800px) {
  #theme-switch {
    height: 30px !important;
    width: 30px !important;
    margin: 0 !important;
    align-self: center;
  }
}
	footer{
		padding: 5px;
	}
		.redesf{
	align-self: center;
    display: flex;
    gap: 5px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--footbord);
	visibility: hidden;
	width: auto;
	}	
	.redesf a{
    color: inherit;
    font-size: 3vw;
    text-decoration: none;
    transition: opacity 0.2s;
	align-self: center;
	visibility: visible;
	}
	
}

	/*About Us Page*/

	.nosotros{
    margin: auto;
width: 80%;
justify-self: center;
font-family: general;
height: auto;
font-weight: bold;
font-size: 1.5rem;
display: flex;
flex-direction: column;
padding: 3% 3% 2% 2%;
text-align: justify;
gap: 5% 0;
	}
.nosotros h1{
font-family: title;
}
.nosotros h2{
font-family: title;
}


/*color modes*/
#theme-switch{
  border-radius: 3%;
  width: auto;
  height: 1.7vw;
  float: left;
  padding: 0;
  background-color: transparent;
  display: flex;
  align-self: right;
  border: 1px var(--main-color);
  cursor: pointer;
  border-radius: 50%;
  color: var(--main-color);
  right: 0;
  margin-top: 25%;
  font-size: 1rem;
font-family: title;
}
#theme-switch svg{
  fill: var(--main-color);
}
#theme-switch svg:last-child{
  display: none;
}
.darkmode #theme-switch svg:first-child{
  display: none;
}
.darkmode #theme-switch svg:last-child{
  display: flex;
}
