@font-face {
    font-family: 'subatomic_tsoonamiregular';
    src: url('subatomic.tsoonami.woff2') format('woff2'),
         url('subatomic.tsoonami.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
	font-family: 'nasalization';
	src: url('nasalization-rg.otf');
	font-weight: normal;
	font-style: normal;
	}

@font-face {
    font-family: 'Strasua';
    src: url(Strasua.otf);
    font-weight: normal;
    font-style: normal;
}

body {
    max-width: 100%;
    align-items: center;
    margin: 0px auto;
    /*background-color: #386e86;*/
    background-color: #012433;
    font-family: Strasua;
    /*color: white;*/
    color: #f1eeea;
    text-shadow: 1px 1px 2px #0a1920;
}

.header {

}

.footer {
  display: flex;
  margin: auto 0px;
  bottom: 0%; width:auto;
  min-height: 30vh;
  background-color: #012433;
  box-shadow: inset 0vw 1vh 20px #442808;
  border-top: 2px solid #C07118;
  justify-content: center;
  align-items: center;
  font-family: Arial, Helvetica, sans-serif;
  /* #081355 */
}

.footer > .sectionsContainer {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  margin: auto 0;
  padding: 2vh 2vw;
  height: 95%;
  width: 100%;
  /* background-color: #012433;
  box-shadow: inset 0vw 0vh 10px #081355;
  border: 2px solid #C07118; */
  border-radius: 4px;
}

.footer > .sectionsContainer::after{
  background: linear-gradient(#41758c, #012433 60%) ;
  mask: url(headerPattern.svg) repeat;
}

.footer > .sectionsContainer > .subSection {
  display: flex;
  flex-direction: column;
  margin: auto auto;
}

.footer a {
  cursor: pointer;
  color: white;
  text-decoration: none;
}

.footer > .sectionsContainer > .subSection > a:hover {
  background: linear-gradient(#08445e, #1791c5 80%);
}

.footer > .sectionsContainer > .subSection > a > h5 {
  margin: 1.5vh auto;
  text-align: center;
  /*
  text-shadow: 1px 1px 0.5px #C07118, 
              0.5px 0.5px 0.5px #C07118,
              -1px -1px 0.5px #C07118, 
              -0.5px -0.5px 0.5px #C07118,
              1px -1px 0.5px #C07118, 
              0.5px -0.5px 0.5px #C07118,
              -1px 1px 0.5px #C07118,
              -0.5px 0.5px 0.5px #C07118;
              */
}

h1.dedication {
    color:white;
    font-family:'subatomic_tsoonamiregular';
    padding-top: 5px;
}

div.squareTitleBox {
    
  display: flex;
  width: auto;
  height: 110px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0px;
  justify-content: center;
  align-items: center;
  text-shadow: none;
  /* background: linear-gradient(#000, #386e86) ; */
  background: linear-gradient(#4487a5, #012433) ;
  align-self: center;
  position: relative;
  z-index: -3;
  overflow: hidden;
}

.squareTitleBox:before {
  content: "";
  position: absolute;
  z-index: -3;
  top: 0;
  right: 0;
  left: 0;
  height: 200px;
  /* background: linear-gradient(#0a1920, #41758c 60%) ; */
  background: linear-gradient(#41758c, #012433 60%) ;
  mask: url(headerPattern.svg) repeat;
  align-items: center;
}

.squareTitleBox .subBox {
  display: flex;
  width: fit-content;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-shadow: none;
  margin-left: 0px;
  margin-right: auto;
}

@media screen and (max-width: 1000px) {
  .squareTitleBox .subBox {
      margin-left: auto;
      margin-right: auto;
      width: auto;
  }
}

h1.titletext {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  position: absolute;
  font-size: 40px;
  width: auto;
  font-family:'Strasua';
  color: transparent;
  background: linear-gradient(0deg, #79d7ff 20%, #20100a );
  -webkit-background-clip: text;
  -moz-background-clip: text;
  background-clip: text;
  -webkit-filter: drop-shadow(0px 0.9px 1px white)
  drop-shadow(0px 0px 8px #000000)
  drop-shadow(0px 0px 8px #000000);
  filter: drop-shadow(0px 0.9px 1px #ffffff) 
  drop-shadow(0px 0px 8px #000000)
  drop-shadow(0px 0px 8px #000000);
  
}

.squareStart {
  background-image: url(Galaxy33-34_02c-halfSize.jpg);
  opacity: 0;
  position: relative;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  display: flex;
  /*background-clip: border;*/
  border: solid 1px black;
  opacity: 1;
  background-image: url(Galaxy33-34_02c-halfSize.jpg);
  transform: rotate(7deg);
  width: 570px;
  height: 570px;
  background-position: 50% 35%;
  background-size: 205px;
  z-index: -2;
  margin-left: 9px; 
  
}

div.square {
  display: block;
  position: relative;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  display: flex;
  /*background-clip: border;*/
  transform: rotate(7deg);
  width: 77%;
  height: 77%;
  border: solid 1px black;
  background-image: url(Galaxy33-34_02c-halfSize.jpg);
  background-position: 50% 35%;
  background-size: 205px;
  z-index: -2;
  
}

@keyframes startSquareHeaderSpin {

  from {
  border: solid 0px black;
  transform: rotate(0deg);
  opacity: 0;
  background-image: url(Galaxy33-34_02c-halfSize.jpg);
  }

  to {
  border: solid 1px black;
  opacity: 1;
  background-image: url(Galaxy33-34_02c-halfSize.jpg);
  transform: rotate(7deg);
  width: 620px;
  height: 620px;
  }

  }

.squareStartSpin {
background-image: url(Galaxy33-34_02c-halfSize.jpg);
opacity: 0;
position: relative;
overflow: hidden;
justify-content: center;
align-items: center;
display: flex;
background-position: 50% 35%;
background-size: 205px;
z-index: -2;
width: 570px; 
height: 570px; 
margin-left: 9px; 
animation: startSquareHeaderSpin 4s 1 forwards;
}

@keyframes squareHeaderSpin {

from {
transform: rotate(0deg);
width: 40%;
height: 40%;
border: solid 0px black;

background-image: url(Galaxy33-34_02c-halfSize.jpg);
}

to {
transform: rotate(7deg);
width: 77%;
height: 77%;
border: solid 1px black;

background-image: url(Galaxy33-34_02c-halfSize.jpg);
}

}

div.squareSpin {
display: block;
position: relative;
overflow: hidden;
justify-content: center;
align-items: center;
display: flex;
background-position: 50% 35%;
background-size: 205px;
z-index: -2;
animation: squareHeaderSpin 4s 1 forwards;
}
  
@keyframes headerFade {
  from {
    opacity: 0;
    /*background: linear-gradient(#386e86, #386e86);*/
  }

  to {
    /*background: linear-gradient(#0a1920, #386e86);*/
    opacity: 1;
  }
}

.squareTitleBox:before {
  content: "";
  position: absolute;
  z-index: -3;
  top: 0;
  right: 0;
  left: 0;
  height: 200px;
  animation: headerFade 4s 1 forwards;
  mask: url(headerPattern.svg) repeat;
  align-items: center;
  
}

#Hamburger_Menu:checked ~ .phoneNav {
  display: flex;
}

.pageBreakLine {
  max-width: 1000px;
  margin: 0 auto;
  border-top: 2px solid #618da0;
}

.content {
  font-family:'Arial';
  /*color: white;*/
  color: #f1eeea;
  font-size: 22px;
  font-weight: 500;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
  padding: 0px 10px;
  
}

.content .spacer {
  width: 100%; height: 20px;
}

.content img.imgborder {
  border: 3px solid #7acced;
  border-radius: 7px;
  width: inherit;
  box-shadow: 2px 3px 2px #1e3a49;
}

.content .writingAndImageT1 {
  display: flex;
	flex-direction: column-reverse;;
}

.content .writingAndImageT1 p {
  margin: auto 5px;
  height: fit-content;
  
}

.content .writingAndImageT2 {
  display: flex;
  flex-direction: column-reverse;
}

.content .writingAndImageT2 p {
  margin: auto 5px;
  height: fit-content;
}

div.scrollmenu {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  max-width: 1000px;
  background-color: #04222f;
  overflow-x: auto;
  overflow-inline:scroll;
  white-space: nowrap;
  display: flex;
}

div.scrollmenu input.tabs_radio {
  position: absolute;
  left: -30px;
  overflow: hidden;
  align-self: center;
  opacity: 0;
  cursor: pointer;
}

.scrollmenu label.tabs_label {
  display: inline-block;
  color: rgb(255, 255, 255);
  background: linear-gradient(#42789c, #08445e 80%);
  border: 2px solid white;
  border-bottom: none;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  text-align: center;
  padding: 14px;
  cursor: pointer;
  margin-left: 4px;
  margin-right: 4px;
    
}
  
.scrollmenu label.tabs_label:hover {
  background: linear-gradient(#08445e, #031821 80%);
   
}

div.content .tabContent {
  display: none;
  min-height: 300px;
  width:auto;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  margin-bottom: 20px;
  padding: 2px;
  border: 4px inset #618da0;
  flex-direction: column;
  align-items: center;
  background-image: url(https://www.nasa.gov/wp-content/uploads/2023/03/main_image_galaxies_stephans_quintet_sq_nircam_miri_final-5mb.jpg);
}

.content .tabContent .missionContainer {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  padding-bottom: 10px;
  /* flex: 1 0 30%; */
  
}

.content .tabContent .missionContainer a {
  padding: 0;
  display: inline-flex;
  background-color: #254959c9;
  background: linear-gradient(#254959c9, #4485a1c9);
  border: 4px solid #618da0;
  border-radius: 10px;
  margin: 5px;
  flex-direction: column;
  flex: 1 0 30%;
  max-width: 170px;
  text-decoration: none;
  /*
  margin: 10px;
  max-width: 110px;
  */
  justify-content: space-evenly;
}

.content .tabContent .missionContainer a:hover {
  transform: scale(1.15);
  background: linear-gradient(#4485a1c9, #62bee5c9);
  border: 4px solid #80b9d2;
}

.content .tabContent .missionContainer a p {
  text-align: center;
  text-wrap: wrap;
  color: white;
  font-size: 18px;
  padding: 0 4px;
  /*
  font-size: 14px;
  */
}

.content .tabContent a {
    margin: auto;
}

#missionTitle {
    color:#7bcced;
    font-family:'Arial';
    
    font-style: italic;
    font-size: 55px;
    padding: 5px;
    text-shadow: 2px 2px 7px #000;
    white-space: pre-line;
    
    flex-direction: column;
    text-align: center;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    height: fit-content;
    margin: 0px auto;
}

#missionTitle p {
    text-align: center;
    margin: 0px;
}

#missionSubtitle {
    color:#7bcced;
    font-family:'Arial';
    flex-basis: fit-content;
    font-style: italic;
    font-size: 40px;
    padding: 5px;
    margin: 5px;
    text-shadow: 2px 2px 7px #000;
    white-space: pre-line;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    height: 50px;
}

#missionSubject {
    color:#7bcced;
    font-family:'Arial';
    
    font-style: italic;
    font-size: 40px;
    padding: 5px;
    text-shadow: 2px 2px 7px #000;
    white-space: pre-line;
    
    flex-direction: column;
    text-align: center;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    height: fit-content;
    margin: 0px auto;
}

#missionSubtitle p {
    text-align: center;
    margin: 5px;
}

#content {
    font-family:'Arial';
    color: white;
    font-size: 22px;
    font-weight: 500;
    
    text-shadow: 2px 3px 2px #1e3a49;
    max-width: 995px;
}

#content p {
    margin: 10px;
    text-align: left;
    line-height: 1.5;
}

#content img.imgborder {
    border: 3px solid #7acced;
    border-radius: 25px;
    width: inherit;
    box-shadow: 2px 3px 2px #1e3a49;
}

/*Additions for dropdown menu Come back to later to change and reimplement*/

/*display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid #618da0;
    justify-content: space-evenly;
    max-width: 1000px;
    margin-left: 10px;
    margin-right: 10px;
    width: 100%;
    border-radius: 2px 2px 10px 10px;*/

.top-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  border: 2px solid #618da0;
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  color: #FFF;
  height: 50px;
  padding: 1em 0;
  max-width: 1000px;
  width: 100%;
  margin: 0 4px;
  border-radius: 4px;
}
      
.menu {
  display: flex;
  flex-direction: row;
  list-style-type: none;
  margin: 0;
  padding: 0;
  width: 100%;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
}
      
.menu > li {
  margin: 0 1rem;
  overflow: hidden;
  text-align: center; 
  height: auto;
  width: 150px;
  background-color: #08445e;
  border-radius: 4px;
  color: white;
  border: 2px solid white;
  font-weight: 100;
  display: flex;
  align-content: center;
  justify-content: center;
  height: 40px;
  width: 170px;
}

.menu > li > a {
  margin: 0;
  height: 100%;
  width: 100%;
  display: flex;
  align-content: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  color: white;
  background: linear-gradient(#42789c, #08445e);
}

.menu > li > a h3 {
  display: flex;
  align-content: center;
  justify-content: center;
  margin: auto;
}

.menu > li > a:hover {
  background: linear-gradient(#08445e, #031821 80%);
}
      
.menu-button-container {
  display: none;
  height: 100%;
  width: 30px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
      
#menu-toggle {
  display: none;
}

.menu-button,
.menu-button::before,
.menu-button::after {
  display: block;
  background-color: #fff;
  position: absolute;
  height: 4px;
  width: 30px;
  transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 2px;
}

/*
.squareStart,
.square {
  transition: ;
}
*/
      
.menu-button::before {
  content: '';
  margin-top: -8px;
}
      
.menu-button::after {
  content: '';
  margin-top: 8px;
}
      
#menu-toggle:checked + .menu-button-container .menu-button::before {
  margin-top: 0px;
  transform: rotate(405deg);
}
      
#menu-toggle:checked + .menu-button-container .menu-button {
  background: rgba(255, 255, 255, 0);
}
      
#menu-toggle:checked + .menu-button-container .menu-button::after {
  margin-top: 0px;
  transform: rotate(-405deg);
}
      
@media (max-width: 1000px) {
  .content .writingAndImageT1 {
    
    flex-direction: column-reverse;
  }
  
  .content .writingAndImageT1 p {
    margin: 5px auto;
    height: fit-content;
  }

  .content .writingAndImageT2 {
    
    flex-direction: column-reverse;
  }

  .content .writingAndImageT2 p {
    margin: 5px auto;
    height: fit-content;
  }
}

@media (max-width: 920px) {
  .menu-button-container {
      display: flex;
      width: 270px;
      border: 2px solid #618da0;
      border-radius: 4px;
      background: linear-gradient(#42789c, #08445e);
  }

  .menu {
    position: absolute;
    top: 0;
    margin-top: 190px;
    left: 0;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
  }

  #menu-toggle ~ .menu li {
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }

  #menu-toggle:checked ~ .menu li {
    border: 1px solid #618da0;
    height: 3.5em;
    padding: 0;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
    
  }

  #menu-toggle:checked + .menu-button-container {
    background: linear-gradient(#08445e, #031821 80%);
  }

  .menu > li {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0.5em 0;
    width: 100%;
    color: white;
    background-color: #224756;
  }

  .menu > li > a {
    background: #224756;
  }

  .menu > li > a > h3 {
    margin: auto;
    width: 256px;
    height: 35px;
    border: 2px solid white;
    border-radius: 4px;
    display: block;
    background: linear-gradient(#42789c, #08445e);
  }

  .menu > li > a:focus {
    background: linear-gradient(#08445e, #031821 80%);
  }

  .menu > li:not(:last-child) {
    border-bottom: 1px solid #444;
  }

  .content .tabContent .missionContainer {
    padding: 4px 0;
  }

  .content .tabContent .missionContainer a {
    
    width: 100px;
    margin: 2px;
    
  }

}