@import url('https://fonts.googleapis.com/css2?family=Rowdies:wght@300;400;700&display=swap');

/*----------------------------------- GLOBAL ------------------------*/

:root {
    --colorPrimario: whitesmoke;
    --colorSecundario: #707070;
    --colorTerciario: rgb(3, 37, 65);
}

* {
    font-family: 'Rowdies', cursive;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    scroll-behavior: smooth;
}

body {
    position: relative;
    width: 100%;
    /* display: flex; */
}

.hidden {
    display: none;
}

/*----------------------------------- HEADER ------------------------*/

header {
    width: 100%;
    position: fixed;
    z-index: 1;
}

nav {
    display: flex;
    justify-content: space-between;
    background-color: rgb(3, 37, 65);
    color: whitesmoke;
    align-items: center;
    height: 64px;
    width: 100%;
    /* position: fixed; */
    /* width: 100%; */
}

#logo-container {
    display: flex;
    flex-direction: column;
    width: 50%;
    margin-bottom: 10px;
}

h1 {
    font-size: 30px;
    margin-left: 10px;
    margin-top: 20px;
    /* margin: 20px 10px 10px 10px; */
}

h2{
    /* margin-bottom: 10px;
    margin-left: 10px; */
    padding: 10px;
    padding-top: 15px;
    text-align: center;
}

h3{
    padding: 10px;
}

/* #search-form {
    
    width: 100%;
    display: flex;
    justify-content: start;
    align-items: center;
    margin-left: 10px;
} */

.search {
    margin-left: 10px;
    z-index: 2;
}

#search-input {
    color: var(--colorSecundario);
    background-color: rgb(196, 194, 194);
    border-radius: 10px;
    padding: 10px;
    width: 100%;

}

#search-input::placeholder {
    color: var(--colorSecundario);
    font-weight: lighter;
}




/*----------------------------------- NAVBAR ------------------------*/

#nav-bar {
    font-size: 1em;
    display: flex;
    justify-content: end;
    /* align-items: flex-end; */
    width: 50%;
    margin-right: 200px;
    /* border: 1px solid; */
}

#nav-bar li {
    margin-left: 10px;
    padding: 5px 20px;
    border-radius: 10px;
}

#nav-bar li:hover {
    background-color: var(--colorSecundario);
    cursor: pointer;
}

/* .active {
    background-color: var(--colorSecundario);
} */

#nav-bar li a:link {
    color: var(--colorPrimario);
    
}

#nav-bar li a:visited {
    color: var(--colorPrimario);
}

#nav-bar li a:active {
    color: rgb(105, 103, 103);
}

/* The dropdown container */
.dropdown {
    float: left;
    overflow: hidden;
  }

  /* Dropdown button */
.dropdown .dropbtn {
    font-size: 16px;
    border: none;
    outline: none;
    color: white;
    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: red;
  } */

  /* Dropdown content (hidden by default) */
.dropdown-content {
    display: none;
    position: absolute;
    /* right: 207px; */
    /* top: 50px; */
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    border-radius: 10px;
    z-index: 1;
  }

  /* Links inside the dropdown */
.dropdown-content a {
    float: none;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
  }

  .fa-caret-down{
    width: 16px;
  }

  /* Add a grey background color to dropdown links on hover */
.dropdown-content a:hover {
    background-color: #ddd;
    border-radius: 10px;
  }

  /* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
  }


/* ------------------------------- MAIN ----------------------------------- */

main {
    position: relative;
    top: 80px;
    width: 80%;
    /* border: 1px solid; */
    margin: 0 auto;
    background-color: var(--colorPrimario);
    border-radius: 20px;
}

section {
    display: flex;
    /* flex-wrap: wrap; */
    /* justify-content: center; */
}

.card {
    cursor: pointer;
    /* border: 1px solid; */
    border-radius: 10px;
    background-color: rgba(3, 37, 65, 0.2);
    margin: 1.5rem;
    padding: 1rem;
    font-size: 12px;
    color: rgb(56, 55, 55);
    display: flex;
    flex-direction: column;
    text-align: center;
    box-shadow: 0px 5px 5px rgb(3, 37, 65);
}

.card:hover {
    background-color: rgba(3, 37, 65, 0.8);
    color: whitesmoke;
}

.card img {
    width: 80%;
    /* height: 80%; */
    margin-bottom: 10px;
    border-radius: 10px;
}

.card .rating {
    height: 35px;
    width: 35px;
    border: 1px solid rgb(105, 103, 103);
    background-color: rgb(3, 37, 65);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: xx-small;
    color: whitesmoke;
    position: relative;
    top: 15px;
    left: 15px;

}

/* ------------------------------------------------ TRENDING MODAL ------------------------------ */

/* The Modal (background) */
.modal {
    display: none;                             /* Hidden by default */
    position: fixed;                           /* Stay in place */
    z-index: 1;                                /* Sit on top */
    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.4);    /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 3% auto;                    /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 95%;                         /* Could be more or less, depending on screen size */
    height: 87%;
    overflow: auto;
}

/* The Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

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

.modal-inner-content {
    position: relative;
    max-width: 800px;
    /* Maximum width */
    margin: 0 auto;
    /* Center it */
}

/* -------------- cuando el modal es grid --------------------- */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

}


#big-card-image {
    position: absolute;
    width: 68%;
    margin: 0 auto;
}

.big-card-text-container {
    position: absolute;
    /* Position the background text */
    bottom: 9.3%;
    /* At the bottom. Use top:0 to append it to the top */
    background: rgb(0, 0, 0);
    /* Fallback color */
    background: rgba(0, 0, 0, 0.5);
    /* Black background with 0.5 opacity */
    color: #f1f1f1;
    /* Grey text */
    width: 92.5%;
    /* Full width */
    padding: 20px;
    /* Some padding */
}

#video-button {
    position: absolute;
    right: 10%;
    cursor: pointer;
    font-size: 28px;
    /* font-weight: bold; */
}

#favorite-button {
    position: absolute;
    bottom: 78%;
    right: 10%;
    cursor: pointer;
    font-size: 28px;
    /* font-weight: bold; */
}

#youtube-video {
    z-index: 5;
}

/* ------------------------------------------------ VIDEO (creo que ya no lo uso ver de borrarlo) ----------------------------------------- */

/* Style the video: 100% width and height to cover the entire window */
#big-card-video {
    position: fixed;
    align-self: center;
    bottom: 13.8%;
    /* min-width: 100%; */
    min-height: 75%;
}

/* Add some content at the bottom of the video/page */
.big-card-content {
    position: fixed;
    bottom: 13.8%;
    background: rgba(0, 0, 0, 0.5);
    color: #f1f1f1;
    width: 90%;
    padding: 20px;
}

/* Style the button used to pause/play the video */
#myBtn {
    width: 200px;
    font-size: 18px;
    padding: 10px;
    border: none;
    background: #000;
    color: #fff;
    cursor: pointer;
}

#myBtn:hover {
    background: #ddd;
    color: black;
}
