/* 
  Easily change the colours and fonts by changing the CSS variables in root*/
:root {
  --yellow-light:#fffdd0;
  --yellow-dark: #fffea7;
  --matcha-light: #eafec9;
  --matcha-dark: #d2efa4;
  --pink-light: #fbdcea;
  --pink-dark: #fbd0dc;
  --cream-light: #faf9df;
  --cream-dark: #e7daad;
  --text-color: #9b6c6c;
  --font-family: Georgia, serif;
  --h1: "Fleur De Leah", serif; 
  --h2: "DynaPuff", system-ui, sans-serif;
  --h3: Georgia, serif;
  --h4: Courier, monospace
}

/* setting the fonts that come in the assets */

/* H1*/
@font-face {
  font-family: "Fleur De Leah";
  src: url("/assets/FleurDeLeah-Regular.ttf") format("ttf");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* H2*/
@font-face {
  font-family: "DynaPuff";
  src: url("/assets/DynaPuff-Regular.ttf") format("ttf");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0 auto;
  padding: 0;
  color: var(--text-color);
  font-family: var(--font-family);
  font-size: 1rem;
}

body {
/* set the background colour/image for the entire page here. */
  background: var(--cream-light);
 }
 
  h1 {
    font-family: var(--h1);
    font-size: 3rem;
  }
  h2 {
    font-family: var(--h2);
    font-size: 2rem;
  }
  h3 {
    font-family: var(--h3);
    font-size: 1.5rem;
  }
  h4 {
    font-family: var(--h4);
    font-size: 1.25em;
    
  }
  p{
    padding-bottom: 10px;
    padding-left: 30px;
    padding-right: 60px;
  }
  img{
  width: 90%;
  height: auto;
  margin: auto;
  display: block;
  margin: 15px;
}

mark{
  background-color: var(--matcha-dark);
  padding: 0 5px;
  border-radius: 5px;
  color: var(--text-color);
  font-weight: bold;
}
a{
  text-decoration: wavy underline;
  color: var(--text-color);
}

a:hover{
  background-color: var(--pink-dark);
}

.container {
  /* you can change the max-width of the content container here */
  max-width: 900px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  position: relative;
  background-color: white;
  border: var(--text-color) 2px solid;
  border-radius: 10px;
}

header {
  /* set the header image below as background for the header */
  background: url("./assets/header.webp") no-repeat center center;
  background-size: cover;
  min-width: 100%;
  min-height: 400px;
  text-align: center;
  align-content: center;
    border: 2px solid var(--text-color); 
    border-radius: 10px;   
    h1{
      
      font-size: 5rem;
      color: var(--text-color);
      text-shadow: 2px 2px 4px rgba(245, 157, 198, 0.5);
    }
    h4{
      font-size: 0.7rem;
      color: var(--text-color);
      text-shadow: 1px 1px 2px rgba(245, 157, 198, 0.5);
    }
}

nav {
  display: inline-flex;
  gap: 10px;
  width: 100%;
  background-color: var(--yellow-dark);
  padding: 10px;
  border: 1px solid var(--text-color);
  border-radius: 10px;
  justify-content: center;
}

nav a {
  display: block;
  padding: 5px 15px;
  text-align: center;
  text-transform: lowercase;
  color: var(--text-color);
  background: var(--cream-light);
  border: 1px solid var(--text-color);
  border-radius: 4px;
  transition: 0.2s ease;
  font:
    italic 13px var(--h2);
}

nav a:hover {
  color: #888;
  background: var(--matcha-light);
  transform: translateY(-1px);
}

/* start of the aside section */
aside {
  background-color: var(--pink-light);
  width: 200px;
  padding: 15px;
  border: 1px solid var(--text-color);
  border-radius: 10px;
}

aside .title {
  font-family: var(--h1);
  text-shadow: 2px 2px 4px rgba(245, 157, 198, 0.5);
  font-size: 2.5rem;
}
aside .subtitle {
  font-family: var(--h2);
  font-size: 1.5rem;
}
aside .description {
  font-family: var(--font-family);
  font-size: 1rem;
}
/* end of the aside section */

main {
  background-color: none;
  width: 100%;
  padding: 15px;
  border-radius: 10px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, 1fr);
}
/* start of grid content  */
article {
  background-color: var(--cream-light);
  width: 100%;
  border: 1px solid var(--text-color);
  border-right: 2px solid var(--text-color);
  border-bottom: 2px solid var(--text-color);
  border-radius: 10px;
  /* this sets the maximum height and enables scrolling */
  max-height: 500px;
  overflow: scroll;
}
article .title {
  font-family: var(--h1);
  font-size: 2rem;
  text-shadow: 2px 2px 4px rgba(245, 157, 198, 0.5);
  width: 100%;
  border-radius: 10px;
  border-bottom: 2px solid var(--text-color);
  padding: 5px;
  padding-left: 40px;
  background-color: rgba(255, 255, 255, 0.539);
}
article .subtitle {
  font-family: var(--h2);
  font-size: 1.2rem;
  padding: 15px;
}
article .content {
  font-family: var(--font-family);
  font-size: 1rem;
  padding-left: 15px;
  padding-bottom: 30px;
}

.full {
  grid-column: span 4;
}
.half {
  grid-column: span 2;
}
.three-fourths {
  grid-column: span 3;
}
.quarter {
  grid-column: span 1;
}

.matcha {
  background-color: var(--matcha-light);
}
.pink {
  background-color: var(--pink-light);
}
.yellow {
  background-color: var(--yellow-light);
}
/* end of grid content  */
/* start of styling the lists */
ul {
  padding-left: 20px;
  padding-right: 3px;
  list-style: circle inside;
  
}
ul li{
  padding-bottom: 5px;
}
/* end of styling the lists */

.icon{
  width: auto;
  height: 30px;
  display: inline-block;
  margin: 0;
}

footer {
  background-color: var(--matcha-light);
  width: 100%;
  padding: 15px;
  border: 1px solid var(--text-color);
  border-radius: 10px;
  text-align: center;
  font-family: var(--h4);
  font-size: 0.6rem;
}

/* this is what makes the layout mobile-friendly.  */
@media (max-width: 768px) {
  aside{
    width: 100%;
  }
  .full {
    grid-column: span 4;
  }

  .half {
    grid-column: span 4;
  } 
    .three-fourths {
        grid-column: span 4;
    }
    .quarter {
        grid-column: span 4;
    }
}
