@keyframes myMove {
  35%{
    transform:scale(0.7);
  }
}

*{
  margin: 0;
  padding: 0;
}

body{
  font-family: 'Oswald', sans-serif;
  overflow-x: hidden;
}


main{
  height: 100vh;
  width: 100vw;
}

a{
  color: #e60000;
}

img{
  height: 18.75rem;
  width: 18.75rem;
  margin: 0.313rem 0.625rem;
  border-radius: 1.25rem;
  z-index: 1;
}

button {
  color: #090909;
  margin: 0.313rem;
  padding: 0.7rem 1.7rem;
  font-size: 1rem;
  border-radius: 0.5rem;
  background: #e8e8e8;
  border: 0.063rem solid #e8e8e8;
  transition: all .3s;
}

button:hover {
  cursor: pointer;
  border: 0.063rem solid #8e8e8e;
}

button:active {
  box-shadow: 0.25rem 0.25rem 0.75rem #c5c5c5,
              -0.25rem -0.25rem 0.75rem #ffffff;
}

ul a{
  color:#0d0d0d;
  text-decoration: none;
}

li{
  display: block;
  padding: 0.625rem 0.313rem;;
  font-size: 2.188rem;
  text-align: center;
}

ul a:hover{
  color: #e60000;
}

ul a::after{
  content: "";
  display: block;
  border: 0.063rem solid #e60000;
  margin: 0.313rem;
  transform: scale(0);
}

ul a:hover::after{
  content: "";
  display: block;
  border: 0.063rem solid #e60000;
  margin: 0.313rem;
  transform: scale(1);
  transition: ease-in-out 1s;
}


/* Header Elements */
header{
  display: flex;
  justify-content: center;
  align-items: center;
  position: sticky;
  color: #f5f5f5;
  padding: 0 1.563rem;
  width: 100vw;
  height: 18.75rem;
  background-color: #8e8e8e;
  padding: 0.313rem 2.813rem;
}



header h1::after{
  content: " | el-Hajj Malik el-Shabazz";
}

/* Full Image Display Div & Elements */
.fullImage{
width:100%;
height: 100vh;
background: rgba(0,0,0,0.9);
position: fixed;
top: 0;
left: 0;
display: none;
display: flex;
flex-direction: row;
align-items: center;
justify-content:center;
z-index: 4;
}

.fullImage img{
width: 25rem;
height: 25rem;
max-width: 25rem;
margin-bottom: 45px;
}

span{
position: absolute;
top: 2%;
right: 5%;
font-size: 1.875rem;
color: white;
cursor: pointer;
}

section{
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto;
  width: 100vw;
  background-color: #8e8e8e;
}


section h1{
  animation: myMove 6s infinite;
}

section:has(h1,  h2){
  color: #f5f5f5;
}

section h1{
  font-size: 4rem;
  padding: 0.625rem;
  text-shadow: 1px 1px 1px #747474,
  1px 2px 1px #747474,
  1px 3px 1px #747474,
  1px 4px 1px #747474,
  1px 5px 1px #747474,
  1px 6px 1px #747474,
  1px 7px 1px #747474,
  1px 8px 1px #747474,
  1px 9px 1px #747474,
  1px 10px 1px #747474,
1px 18px 6px rgba(16,16,16,0.4),
1px 22px 10px rgba(16,16,16,0.2),
1px 25px 35px rgba(16,16,16,0.2),
1px 30px 60px rgba(16,16,16,0.4);

}

section p{
  font-size: 1.5rem;
  line-height: 2.5;
  padding:  0.625rem;
}

.section_one_header_two::after{
  content: " | Harlem";
}

/* Parallax Image & Modal Overlay */
.overlay{
  position: absolute;
  height: 100vh;
  width: 100vw;
  background-color: rgba(0,0,0,0.7);
  z-index: 0;
}

.page_overlay{
  position: fixed; 
  display: none; 
  width: 100vw; 
  height: 100vh; 
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.9);
  z-index: 5;
}

/* Pop-up Modal & Elements */
.modal{
  position: fixed;
  display: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 75vh;
  width: 85vw;
  padding: 0.625rem;
  background: rgba( 255, 255, 255, 0.9 );
  backdrop-filter: blur( 0.25rem );
  -webkit-backdrop-filter: blur( 0.25rem);
  border-radius: 0.625rem;
  overflow-y: scroll;
  overflow-x: hidden;
  z-index: 6;
}

.modal div{
  padding: 0 30px;
  height: auto;
  width: 90%;
  overflow-x: hidden;
}


.modal h1{
  font-size: 3rem;
}

.modal h2{
  font-size: 2rem;
  margin: 0.313rem;
}

.modal p{
  font-size: 1.5rem;
}

.modal a{
  text-decoration: none;
}

.inner-link + img{
  height: 4.688em;
  width: 4.688em;
}

.hide{
  display: none;
}

.inner-link:hover + .hide{
  display: inline-block;
  position: absolute;
}

/* ID Selectors */


/* Side Widget */
#side-widget{
  position: fixed;
  top: 50%;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6.25rem;
  width: 6.25rem;
  padding: 0.313rem;
  border-radius: 6.25rem;
  background-color: #f8f8ff;
  opacity: 0.5;
  z-index: 3;
}

#side-widget img{
  height: inherit;
  width: 4.688rem;
}

#side-widget:hover{
  cursor: pointer;
}

/* Side Menu */
#side-menu{
  position: fixed;
  display: none;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.313rem;
  background: rgba( 255, 255, 255, 0.7 );
  backdrop-filter: blur( 0.25rem );
  -webkit-backdrop-filter: blur( 0.25rem);
  border: 0.063rem solid rgba( 255, 255, 255, 0.18 );
  z-index: 3;
}

#side-menu div{
  position: absolute;
  top: 5%;
  left: 2%;
  font-size: 2.813rem;
  color: #e60000;
  cursor: pointer;
}

/* Header Div ID */
#title{
  font-size: 2rem;
  padding: 0.313rem 0;
  text-align: center;
  text-shadow: 1px 1px 1px #747474,
  1px 2px 1px #747474,
  1px 3px 1px #747474,
  1px 4px 1px #747474,
  1px 5px 1px #747474,
  1px 6px 1px #747474,
  1px 7px 1px #747474,
  1px 8px 1px #747474,
  1px 9px 1px #747474,
  1px 10px 1px #747474,
1px 18px 6px rgba(16,16,16,0.4),
1px 22px 10px rgba(16,16,16,0.2),
1px 25px 35px rgba(16,16,16,0.2),
1px 30px 60px rgba(16,16,16,0.4);
}

#img-caption{
  position: relative;
  height: auto;
  width: 40.62rem;
  color: #CCCCCC;
  font-size: 1.563rem;
  z-index: 2;
}

#early-life img:hover,#NOI img:hover,#Departure img:hover,#Human_Rights_Activists img:hover,#Assassination_Legacy img:hover{
  cursor: pointer;
  transform: scale(1.2);
  transition: ease-in-out 1s;
}

#early-life,#NOI,#Departure,#Human_Rights_Activists,#Assassination_Legacy{
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  height: 100vh;
  width: 100%;
}

#early-life{
  background-image: url("imgs/malcolmx-ella.jpg");
  background-position: 75%;
}

#NOI{
  background-image: url("imgs/NOI-1.jpg");
}

#Departure{
  background-image: url("imgs/download.jpg");
}

#Human_Rights_Activists{
  background-image: url("imgs/Malcolm-X-in-Cairo_CrescentStarAfrica.jpg");
}

#Assassination_Legacy{
  background-image: url("imgs/84.005-1.jpg");
}

/* Media Queries */

  /* Media Query for Mobile Devices */
  @media (max-width: 480px) {

  header{
    height: 18.75rem;
    width: auto;
  }

  #title{
    font-size: 1.25rem;
    padding: 0.313rem 0;
  }
  
  img{
    height: 9.375rem;
    width: 9.375rem;
    margin: 0.313rem 0.625rem;
    border-radius: 1.25rem;
    z-index: 1;
  }



  section div {
    height: auto;
    width: 80%;
  }
  
  section h1{
    font-size: 3rem;
  }

  section p{
    font-size: 1.5rem;
    line-height: 2.5;
    padding:  0.625rem;
  }

  /* Full Image Elements */

.fullImage{
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: scroll;
  }
  
  .fullImage img{
    margin-top: 6.25rem;
    width: 15.625rem;
    height: 15.625rem;
    max-width: 15.625rem;
  }
  

  /* Modal */
  .modal{
    height: 75%;
    width: 100%;
  }
  
  .modal div{
    padding: 1.563rem;
    height: auto;
    width: fit-content;
    overflow-x: hidden;
  }
  
  
  .modal h1{
    font-size: 3rem;
  }
  
  .modal h2{
    font-size: 2rem;
    margin: 0.313rem;
  }
  
  .modal p{
    font-size: 1.5rem;
  }

/* ID Selectors */

    /* Side Widget */
    #side-widget{
      height: 3.438rem;
      width: 3.438rem;
    }
  
    #side-widget img{
      height: inherit;
      width: auto;
      margin: 0.313rem;
    }
  /* Side Menu */
    #side-menu{
      display: flex;
      justify-content: center;
      align-items: center;
      position: fixed;
      display: none;
      padding: 0.313rem;
      background: rgba( 255, 255, 255, 0.25 );
    }

  #early-life,#NOI,#Departure,#Human_Rights_Activists, #Assassination_Legacy{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  #early-life{
    background-position: 25%;
  }

  #NOI{
    background-position: 45%;
  }

  #Departure{
    background-position: 75%;
  }

  #Human_Rights_Activists{
    background-position: 70%;
  }

  #Assassination_Legacy{
    background-position: 50%;
  }

  #img-caption{
    height: inherit;
    width: auto;
    font-size: 1.25rem;
    z-index: 2;
  }

}

  /* Media Query for Tablets Ipads portrait mode */
  @media (min-width: 768px) and (max-width: 1024px) {
  header{
    height: 18.75rem;
    width: auto;
  }

  #title{
    font-size: 1.875rem;
    padding: 0.313rem 0;
  }
  
  img{
    height: 18.75rem;
    width: 18.75rem;
    margin: 0.313rem 0.625rem;
    border-radius: 1.25rem;
    z-index: 1;
  }

  li{
    display: block;
    padding: 0.625rem 0.313rem;;
    font-size: 3.75rem;
    text-align: center;
  }

  /* Side Widget */
  #side-widget{
    height: 6.25rem;
    width: 6.25rem;
  }

  #side-widget img{
    height: inherit;
    width: auto;
    margin: 0.313rem;
  }
/* Side Menu */
  #side-menu{
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    display: none;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.313rem;
    background: rgba( 255, 255, 255, 0.25 );
    backdrop-filter: blur( 0.25rem );
    -webkit-backdrop-filter: blur( 0.25rem);
    border-radius: 0.625rem;
    border: 0.063rem solid rgba( 255, 255, 255, 0.18 );
    z-index: 3;
  }

/* Image Caption Containers */
  #early-life,#NOI,#Departure,#Human_Rights_Activists, #Assassination_Legacy{
    display: grid;
    grid-template-columns: 2fr 2fr;
    align-content: center;
    justify-items: center;
  }

  #early-life{
    background-position: 35%;
  }
  
  #NOI{
    background-position: 35%;
  }
  
  #Departure{
    background-position: 75%;
  }
  
  #Human_Rights_Activists{
    background-position: 65%;
  }

  #Assassination_Legacy{
    background-position: 45%;
  }

  section{
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    width: 100vw;
  }

  section div {
    height: auto;
    width: 95%;
  }
  
  section h1{
    font-size: 4.375rem;
  }
  
  section p{
    font-size: 2rem;
    line-height: 2.5;
    padding:  0.625rem;
  }

  /* Full Image Elements */

  .fullImage{
    flex-direction: column;
    overflow-y: scroll;
  }
  
  .fullImage img{
    margin-top: 7.813rem;
    width: 28.125rem;
    height: 28.125rem;
    max-width: 28.125rem;
  }
  
  span{
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
  }
  
  #img-caption{
    height: inherit;
    width: auto;
    font-size: 2.5rem;
  }
  

  /* Modal */

  .modal div{
    padding: 1.563rem;
    height: auto;
    overflow-x: hidden;
  }
  
  
  .modal h1{
    font-size: 3rem;
  }
  
  .modal h2{
    font-size: 2rem;
    margin: 0.313rem;
  }
  
  .modal p{
    font-size: 2rem;
  }
}

  /* Media Query for Large screens */
@media (min-width: 1281px) {

img{
  height: 12.188rem;
  width: 12.188rem;
  margin: 0.313rem 0.625rem;
  border-radius: 1.25rem;
}

li{
  margin: 2.813rem 0.313rem;
  font-size: 2.4rem;
}

/* Side Widget */
#side-widget{
  height: 6.25rem;
  width: 6.25rem;
}

#side-widget img{
  height: inherit;
  width: auto;
  margin: 0.313rem;
}
/* Side Menu */
#side-menu{
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  display: none;
  width: 20%;
  height: 100vh;
  top: 0;
  left: 80%;
  right: 0;
  bottom: 0;
  padding: 0.313rem;
  background: rgba( 255, 255, 255, 0.25 );
  backdrop-filter: blur( 0.25rem );
  -webkit-backdrop-filter: blur( 0.25rem);
  border-radius: 0.625rem;
  border: 0.063rem solid rgba( 255, 255, 255, 0.18 );
  z-index: 3;
}

#side-menu div{
  position: absolute;
  top: 2%;
  left: 2%;
  font-size: 2.813rem;
  color: #e60000;
  cursor: pointer;
}

/* Image Caption Containers */
#early-life,#NOI,#Departure,#Human_Rights_Activists{
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  height: 100vh;
  width: 100vw
}

#early-life{
  background-image: url("imgs/malcolmx-ella.jpg");
  background-position: 35%;
}

#NOI{
  background-image: url("imgs/NOI-1.jpg");
  background-position: 35%;
}

#Departure{
  background-image: url("imgs/download.jpg");
  background-position: 75%;
}

#Human_Rights_Activists{
  background-image: url("imgs/Malcolm-X-in-Cairo_CrescentStarAfrica.jpg");
  background-position: 65%;
}

section{
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto;
  width: 100vw;
}

section div {
  height: auto;
  width: 95%;
}

section h1{
  font-size: 4.375rem;
}

section p{
  font-size: 1.563rem;
  line-height: 2.5;
  padding:  0.625rem;
}


/* Modal */
.modal{
  position: fixed;
  display: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 75vh;
  width: 100%;
  padding: 0.625rem;
  background: rgba( 255, 255, 255, 0.9 );
  backdrop-filter: blur( 0.25rem );
  -webkit-backdrop-filter: blur( 0.25rem);
  border-radius: 0.625rem;
  overflow-y: scroll;
  overflow-x: hidden;
  z-index: 6;
}


.modal h1{
  font-size: 3rem;
}

.modal h2{
  font-size: 2rem;
  margin: 0.313rem;
}

.modal p{
  font-size: 1.5rem;
}
}
