@charset "utf-8";
body {
    font-family: Arial, sans-serif;
    background-color: #0C243C;
    font-size: 1em;
	line-height: 1.3em;
    }
nav {
        width: 960px;
        max-width: 100%;
        display: flex;
    }
nav ul {
       display: flex;
        list-style: none;
        justify-content: space-around;
        width: 100%;
    }

nav a {
    text-decoration: none;
    color: #0C243C;
    padding: 20px 25px;
}
nav a:hover {
    color: #E94D40;
}

h1 {
    color: #E94D40;
    font-size: 36px;
}
h2, h3{
    color: #0C243C;
    font-size: 24px;
}
p, label, input {
    line-height: 150%;
}
main a {
    color: #0C243C;
}
footer {
    color: #0C243C;

}
#footername {
    text-align: center;
}
.currentpage {
    background-color:#0C243C;
    color: white;
}
fieldset {
    border: solid #0C243C 2px;
    width: 910px;
}

legend {
    font-weight: bold;
    color: #0C243C;
    font-size: 24px;
    padding: 5px;
}
input, textarea, label {
    margin: 5px;
}

#map {
    max-width: 940px;
}
.flex-container {
    display: flex;
    column-gap: 30px;
}
#wrapper {
    width: 1000px;
    max-width: 95vw;
    background-color: #ffffff;
    margin: auto;
}
#inner-wrapper {
    padding: 15px 30px;
}
header {
    display: flex;
    justify-content:center;
}
footer a {
    text-decoration: none;
}
footer {
    width: 100%;
    max-width: 80vw;
    margin: auto auto -20px auto;
}

.flex-container div {
    width: 50%;
}

main img, #map {
    max-width: 100%;
    height: auto;
}
header img {
    max-width: 100%;
    height: auto;
}


.abouttext {
    font-size: 1.3em;
}


/*The grid on the cake product page: */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    grid-gap: 1rem;
    width: 100%;
}
.cake-card {
    border: 2px solid #e7e7e7;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
    text-align: center;
    border-radius: 5%;
    padding: 0.1rem 0.8rem;
}
.cake-card img {
    border-radius: 5%;
}
@media all and (max-width: 800px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

}
@media all and (max-width: 600px) {
    .grid-container {
        display: block;
    }
}

/*MODAL FOR THE CAKES GRID*/
/* Style the Image Used to Trigger the Modal */
.cakepics {
    cursor: pointer;
    transition: 0.3s;
  }
  
  .cakepics:hover {opacity: 0.7;}
  
  /* The Modal (background) */
  .modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 60px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
  }
  
  /* Modal Content (Image) */
  .bigger-image {
    margin: auto;
    display: block;
    width: 100%;
    max-width: 900px;
  }
  
  /* Add Animation - Zoom in the Modal */
  .bigger-image {
    animation-name: zoom;
    animation-duration: 0.8s;
  }
  @keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
  }
  
  /* The Close Button - I've made it twice as big as the original 40px for accessibility */
  .close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 80px;
    font-weight: bold;
    transition: 0.3s;
  }
  
  .close:hover, .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
  }
  
  /* 100% Image Width on Smaller Screens */
  @media only screen and (max-width: 700px){
    .bigger-image {
      width: 100%;
    }
  }

  /* Table styling */
  #prices {
    border-collapse: collapse;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  }
  #prices th {
    background-color: rgb(255, 212, 104);
    text-align: left;
    padding: 8px;
  }

  #prices td {
    padding: 12px;
  }
  #prices tr {
    background-color: rgb(255, 242, 208);
  }
#prices #secondrow {
    background-color: rgb(255, 224, 144);
}

#jobtable {
    border-collapse: collapse;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
#jobtable th {
    text-align: left;
    background-color: rgb(255, 212, 104);
}
#jobtable td {
    background-color: rgb(255, 242, 208);
}
#jobtable tr, td, th {
    padding: 10px;
}


/*My other media queries: */

@media all and (max-width: 1040px) {
    fieldset {
     width: 90%;
    }
  }

@media all and (max-width:870px) {
    #welcome {
        line-height: 2rem;
    }
}
@media all and (max-width:780px) {
    #aboutspecial {
        line-height: 2rem;
    }
}

 @media all and (max-width: 800px) {
     .flex-container {
         display:block;
     }
     .flex-container div {
         width: 100%;
     }
    
     .abouttext {
         font-size: 1em;
     }
 }
 @media all and (max-width: 744px) {
     nav a {
         padding: 6px;
     }
 }
 @media all and (max-width: 690px) {
     textarea {
         width: 95%;
     }
 }
 @media all and (max-width: 520px) {
    nav a {
     padding: 5px;
    }
    nav li {
     margin: 10px;
    }
    nav ul {
     display: block;
    }
    header {
     margin: -5px -15px -15px -15px;
 }
 }
 @media all and (max-width:430px) {
    #intouch {
        line-height: 2rem;
    }
}
 @media all and (max-width: 410px) {
     input {
         width: 95%;
     }
 }
 @media all and (max-width:340px) {
    #forsale {
        line-height: 2rem;
    }
}