:root{
  --background-1: #293b45;
  --background-2: #92A4B2;
  --background-3: #c1d2d9;
  --text-light: #fff;
  --text-dark: #293b45;
  --spacing-s: 8px;
  --spacing-m: 16px;
  --spacing-l: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 80px;
  --width-container: 1200px;
}

*{
  border: 0;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  font-family: 'Bellota Text'; 
  font-size: 20px;
}

header {
  background-image: url("https://mir-s3-cdn-cf.behance.net/project_modules/fs/eb26b694842851.5e88d7fc15313.jpg"); /* The image used which for some reason could not be updated from the folder so had to use link.*/
  background-color: var(--background-2); /* Used if the image is unavailable */
  background-position: center; 
  background-repeat: no-repeat; 
  background-size: cover; 
  height: 1200px; 
}

/* Navigation */
nav {
  background-color: var(--background-3);
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index:1; 
}

/* Navigation Links Style */
nav a {
  color: var(--text-dark);
  display: inline-block;
  text-align: center;
  padding: 10px;
  text-decoration: none;
}

/* Navigation Links Hover */
nav a:hover {
  background-color: var(--background-1);
  color: var(--text-light);
}

/* Style the header */
header {
  padding-left: 20%;
  padding-right: 25%;
  padding-top: 20%;
  text-align: justify;
  line-height: 200%;
  height: 800px; 
  color: var(--text-dark);
}

/* Style cards */
.hero-section{
  background-color: var(--background-2);
  display: flex;
  min-height: 100%;
  justify-content: center;
  padding: var(--spacing-xxl) var(--spacing-xxl);
}

.card-grid{
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-column-gap: var(--spacing-xxl);
  grid-row-gap: var(--spacing-xxl);
  max-width: var(--width-container);
  width: 100%;
}

/* Media */
@media(min-width: 540px){
  .card-grid{
    grid-template-columns: repeat(2, 1fr); 
  }
}

@media(min-width: 960px){
  .card-grid{
    grid-template-columns: repeat(3, 1fr); 
  }
}

.card{
  list-style: none;
  position: relative;
  height: 350px;
}

.card:before{
  content: '';
  display: block;
  padding-bottom: 150%;
  width: 100%;
}

.card__background{
  background-size: cover;
  background-position: center;
  background-color: var(--background-1);
  border-radius: var(--spacing-l);
  bottom: 0;
  filter: brightness(0.75) saturate(1.2) contrast(0.85);
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transform-origin: center;
  transform: scale(1) translateZ(0);
  transition: 
    filter 200ms linear,
    transform 200ms linear;
}

.card:hover .card__background{
  transform: scale(1.05) translateZ(0);
}

.card-grid:hover > .card:not(:hover) .card__background{
  filter: brightness(0.5) saturate(0) contrast(1.2);
}

.card__content{
  left: 0;
  padding: var(--spacing-l);
  position: absolute;
  top: 0;
}

.card__heading{
  color: var(--text-light);
  font-size: 1.4rem;
  text-shadow: 2px 2px 20px rgba(0,0,0,0.2);
  line-height: 1.4;
  word-spacing: 100vw;
}

.list {
  background-color:#c1d2d9;
}

/* Button */
#buttonContainer{
  width: 100%;
  text-align: start;
}
#button{
  width:200px;
  margin-top: 10px;
  border:2px solid #293b45;
  color:#045;
  font-family: inherit;
  font-weight: bold;
  padding:5px;
  text-decoration: none;
  text-align: center;
}

#button:hover{
  cursor:pointer;
  background:#293b45;
  color: #fff;    
}
#button:active{
  cursor: pointer;
}
#button{
  display: inline-block;
}
#quoteGenius{
  font-style: italic;
  font-weight: 600;
  text-align: center;
}

/* Footer */
footer { 
  position: justify;
    background-color: var(--background-1);
    color: white;
    line-height: 200%;
    padding-left: 15%;
    padding-right: 15%;
    padding-top: 5%;
    padding-bottom: 5%;
    text-align: center;
  }