body{               
  margin: 0px;
  font-family: 'Orbitron', sans-serif;
}

ul{
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

.grid-container{
  display: grid;
  grid-template-areas:
  'header nav'
  'article right'
  'footer footer';
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  width: 100%;
  box-sizing: border-box;
  background-color: rgba(238, 234, 0, 0.911);
  padding: 2px;
}

.grid-container > *{
  background-color: rgb(11, 12, 16);
}

header{
  grid-area: header;             /* Header area styling */
  display: flex;
  justify-content: center;
  align-items: center;
}

header > h1{
  color: gold;
  display: inline-block;      /*keeps it next to the logo*/
  font-size: 60px;
}
nav{
  grid-area: nav;                /* Navigation area styling */
  display: flex;                    /*keeps the links in a row*/
  justify-content: center;  
  align-items: center;    
  padding: 10px;}

nav a{                                /* styling for the three navigation links */
  display: block;
  margin: 15px;
  text-decoration: none;
  font-weight: bold;
  font-size: 30px;
  color: gold;
}

nav a:hover{                      /* underline effect when hovering over links */
  text-decoration: underline;
}

article{
  grid-area: article;
  margin-top: 1px;         /* adds line break above article */
  margin-right: 1px;       /* adds line break to the right of article */
  padding: 0px;
}

aside{
  grid-area: right;
  margin-top: 1px;         /* adds line break above aside */
  margin-left: 1px;        /* adds line break to the left of aside */
  align-items: stretch;
}      

footer{
  grid-area: footer;
  display: flex;           /*keeps it centered vertically and horizontally*/
  justify-content: center;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
  margin-top: 1px;          /* adds line break above footer */
  color: gold;
  width: 100%;
}

.logo {                  /* Logo image styling */
  width: 150px;
  height: 150px;
}


h2{                               /* Subheader styling */
  font-size: 44px;
}

article > div > p{                                /* Paragraph text styling and double 1.5 spacing */
  font-size: 30px;
  line-height: 1.5;
  width: 100%;                 /* ensures paragraph takes full width of container */
  padding: 10px;
  border-bottom: 1px solid gold;
  padding-bottom: 10px;
  margin-bottom: 0px;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

.home-content {                                  /* Home page content layout inside of article */
  display: block;
  width: 100%;
  color: white;
}

.welcome-text {              /* Welcome text styling */
  grid-column: 1 / 3;      /* spans both columns */
  background-color: rgb(31, 64, 104);
}

.welcome-text p{
  padding: 20px;
  box-sizing: border-box;
  margin-top: 0px; 
}

.welcome-text h2{
  padding: 20px;
  box-sizing: border-box;    /* keeps padding from increasing overall size */
  margin-bottom: 0px;           /*keeps header close above first paragraph*/        
  margin-top: 0px;            /*gets rid of gap above h2*/
}

.image-area {                          /* Layout for image and hours/info box */    
  display: grid;
  grid-template-columns: 4fr 2fr;
  gap: 12px;
  margin: 0px;
  padding: 20px;
  align-items: stretch;
}

.pizza-img {
  width: 100%;
  max-width: 800px;           
  max-height: 400px;                 
  object-fit: cover;                /* ensures image covers the area without stretching */
  border-radius: 10px;                    /* rounded corners for pizza images */
  border: 1px solid gold;            
  margin: 8px;
}

.info-box {                           /* Information box styling */
  background-color: rgb(31, 64, 104);
  padding: 10px;
  border-radius: 10px;                  /* rounded corners for info box */
  margin: 8px;
  border: 1px solid gold;
  width: 100%;
  max-width: 450px;
  max-height: 400px;
  box-sizing: border-box;       
  overflow: auto;             /* adds scroll if content goes past box size when shrinking screen */
}

.info-box-font {                   /* Font styling for info box content */
    font-size: 22px;
}

.missionLog {
  background-color: rgb(31, 64, 104);
  padding: 20px;
  margin: 0px auto;              /*keeps the box centered*/
  max-width: 500px;
  font-size: 36px;
  line-height: 1.5;
  color: white;
  border: 1px solid gold;
  font-family: 'Orbitron', sans-serif;
  height: 90%;
  display: flex;
    flex-direction: column;
    flex: 1;
}

.missionLog > h3 {
  font-size: 35px;
}

@media (max-width: 768px) {
  .grid-container {
    grid-template-areas:
      'header'
      'nav'
      'article'
      'right'
      'footer';
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 0;
  }

  nav a {
    font-size: 22px;
    padding: 8px 12px;
  }

  header .logo {      /*reduces logo and header size for smaller screens */
    width: 110px;
    height: 110px;
  }

  header > h1 {
    font-size: 40px;
    line-height: 1.1;
    text-align: center;
    margin: 8px 12px;
  }

  aside {                      /* right column: map & hours aligned */
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  footer {          /*reduces footer size for smaller screens */
    font-size: 16px;
    padding: 12px;
    text-align: center;
  }
  
.image-area {
    grid-template-columns: 1fr; /* stack image on top of info box */
    gap: 10px;
    padding: 12px;
    margin: 0;
  }

.pizza-img {
    width: 100%;
    max-width: 100%;
    max-height: none;    /* remove fixed height to avoid cropping info box*/
    border-radius: 10px;
    margin: 0;
  }
}