* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: "Libre Baskerville", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    background-color: #D0C7B0;
}

/* WHY I LOVE...  */

h1{
    font-family: "Libre Baskerville", serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal; 
    color: #405B60;
    padding-left: 100px;
    padding-right: 100px;
    padding-bottom: 20px;
    text-align: center;
}

p{
    font-family: "Fira Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
    padding-left: 300px;
    padding-right: 300px;
    text-align: center;
}

/* NAV STARTS HERE  */
nav{
    font-family: "Libre Baskerville", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    background-color: #1D1E1E;
    padding: 14px;
    width: 100%;
    text-align: left;
    position:fixed; 
    text-align: center;
    z-index: 1000;
    

}

nav a{
    color: #BE5C01;
    text-decoration: underline;
    font-family: "Libre Baskerville", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-size: 14px ;
    font-style: normal;
    padding: 14px;
    text-decoration: none;
}

a{
    color:#BE5C01;
}

a:hover{
    color:#D99100;
}

/* HEADER IMAGE STARTS HERE  */

#headerimg{
    width: 100%;
    display: block;
    margin-bottom: 50px;
    
}

#headerimg img{
    width: 100%;
    display: block;
}

/* POSTERS STARTS HERE  */

#movieposters{
    display:flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    margin-top: 50px;
    padding:40px
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: #BE5C01;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#movieposters a {
    position: relative;
    display: inline-block;
}

#movieposters img {
    display: block;
    width: 100%;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: #BE5C01;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#movieposters a:hover .overlay {
    opacity: 1;
}

/* ABOUT ME STARTS HERE  */

#aboutme{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 60px 80px;
    background-color:#405B60;
}

#myphoto{
    flex: 0.5;
    justify-items: right;
}

#myphoto img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    display: block;
}

#abouttext{
    flex: 1;
    margin: 60px;
    padding: 60px;
}

#abouttext h2{
    font-family: "Libre Baskerville", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-size: 18px ;
    font-style: normal;
    color:#D0C7B0;
    margin-bottom: 16px;
}

#abouttext p{
    font-family: "Fira Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px; 
    color: #D0C7B0;
    padding-left: 0;
    padding-right: 0;
    text-align: left;
}



/* FOOTER STARTS HERE  */

footer {
    background-color: #1D1E1E;
    color: #D0C7B0;
    font-family: "Libre Baskerville", serif;
    font-optical-sizing: auto;
    font-size: 13px;
    padding: 20px;
    margin-top: 0; /* removes gap between review and footer */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

footer p {
    font-family: "Libre Baskerville", serif;
    font-optical-sizing: auto;
    font-size: 13px;
    padding: 0; /* override the global p padding that was pushing it off-center */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

footer a {
    margin-left: auto;
    text-decoration: none;
}

footer a + a {
    margin-left: 24px;
}