/* Nav Bar */

*{
    font-family: Arial;
}
nav {
    background-color: #000000;
    border-radius: 10px;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.2em;
    font-weight: bold;
    padding: 0.5em;
    text-align: center;
}

a{
    display: block;
    color: #ffffff;
    text-decoration: none;
    transition: all .3s ease-in; 
    padding: 5px;
}

a:hover{
    transform: scale(1.08); 
    border-radius: 10px;
}
ul {
    display: flex;
    justify-content: space-around;
    align-items:center;
    list-style-type: none;
    margin: 0;
    padding: 0;
}



/* Containers */
.container{
    text-align: center;
    display: block;
    margin-inline: auto;
    width: 960px;
}

.small-container{
    margin: 1em;
    padding: 1em;
    border-radius: 10px;
    box-shadow : rgba(0, 0, 0, 0.24) 0px 3px 8px; 
}

/****************************************/



/*Hero Area*/
@keyframes breathe {
    0% {
        transform: scale(1); 
    }
    50% {
        transform: scale(1.01);
    }
    100% {
        transform: scale(1);
    }
}

.hero {
    animation-name: breathe;
    animation-duration: 3s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    background-image: url("../images/Batmanr.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin: 1em;
  }
  
  
  h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
  }
  
  p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: black;
    color: #fff;
    font-size:larger;
    font-weight: bolder;
    border-radius: 5px;
    text-decoration: none;
  }

/****************************************/


/* Logo style */

.logo {
    width: 64px;
    height: 64px;
    background-color: #000;
    color: #fff;
    border-radius: 5px;
    font-size: 36px;
    border-style: solid;
    padding: 2px;
}
  
.logo-letter {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 50%;
}
  
/****************************************/

/* News Section */
.news-item{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin: 1em;
    padding: 1em;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

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

.news-item:hover{
    cursor: pointer;
    transform: scale(1.02);
}

/****************************/


/* Table Section for top 10*/
#table{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 1em;
    padding: 1em;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

table{
    border-collapse: collapse;
    border-radius: 1em;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    width: 80%;
    margin: 1em;
    padding: 1em;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

tbody tr{
    border-bottom: 1px solid #dddddd;
}

tbody tr:nth-of-type(even){
    background-color: #f3f3f3;
}

td, th{
    padding: 12px 15px;
}

td{
    text-align: center;
}


/************************************************/


/* Movie Covers */
.movies{
    margin: 1em;
    padding: 1em;
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    flex-direction: row;
}




.movies-list{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 1em;
    padding: 1em;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.movie-box{
    border-radius: 10px;
    margin: 1em;
    padding: 1em;
    max-width: 200px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}
.movie-box:hover{
    transform: scale(1.05);
    cursor: pointer;
}

.movie-poster{
    border-radius: 10px;
    max-width: 100%;
    height: auto;
}

.movie-title{
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
}

.movie-rating{
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
}

.rating-label{
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
}

span > a{
    text-decoration: none;
    color: black;
}


.review{
    
    border-radius: 10px;
    margin: 1em;
    padding: 2em;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}
.review form{
    padding: 2em;
}


.movie-rating > a{
    background-color: #000000;
    text-align: center;
    font-size: x-large;
    text-decoration: none;
    transition: all .2s ease-in; 
    margin: 1em;
    border-radius: 10px;
    width: 8em;
    margin-inline: auto;
}


/*review*/
.review > img{
    border-radius: 10px;
    margin-inline: auto;
}
/* Comments */



div#orange.icon{
    background-color: orange;
}

div#yellow.icon{
    background-color: yellow;
}

.icon{
    width: 2em;
    height: 2em;
    margin: 1em;
    padding: 1em;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    background-color: red;
}

.comment-container{
    display: grid;
    grid-template-areas: 
        "icons  username    rating"
        "comment    comment comment";
    grid-template-columns: 1fr 8fr;
    align-items: center;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    margin: 1em;

}

.icon-text{
    margin-block: auto;
    text-align: center;
    color: #ffffff;
    font-size: 2em;
}


  

/* Comment grid childs */
.icon{
    grid-area: icons;
}

.username{
    grid-area: username;
    font-size: 1.2em;
    font-weight: bold;
    text-align: left;

}

.comment-text{
    grid-area: comment;
    text-align: left;
    padding-inline: 2em;
}
.rating{
    grid-area: rating;
    padding: 1em;
    font-size: 1.2em;
    font-weight: bold;

}


.movie-rating{
    align-self: flex-start;
}


/* Misc Html elements */

form{
    padding: 1em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

video{
    border-radius: 10px;
    width: 100%;
}



input{
    border-radius: 10px;
    border: 1px solid #000000;
    font-size: 1.2em;
    padding: 0.5em;
    width: 100%;
    margin: 10px;
}

button{
    border-radius: 10px;
    border: 1px solid #000000;
    font-size: 1.2em;
    padding: 0.5em;
    margin: 10px;
    background-color: black;
    color: white;
    transition: all .2s ease-in; 
}

button:hover{
    cursor: pointer;
    transform: scale(1.1);
}

textarea{
    border-radius: 10px;
    border: 1px solid #000000;
    font-size: 1.2em;   
    padding: 0.5em;
    width: 100%;
    max-width: 100%;
    margin: 10px;
}

footer {
    background-color: #000000;
    border-radius: 10px;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.2em;
    font-weight: bold;
    padding: 0.5em;
    text-align: center;
    width: 100%;
}



/* Media Queries */

/* Navbar for medium screens */
@media screen and (max-width: 900px) {
    ul{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}

/* navbar for smallers screens */
@media screen and (max-width: 600px) {
    ul{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}
