body {
 /* This gives the page a background colour, sets the font, for the page, gives it a border, and sets a colour for all words on the page that have not been given a referenced class. */   
    background-color: #66CDAA;
    font-family: "Times New Roman", Times, serif;
    color: #000066;
    border: black solid 3.5px;
    margin: auto;
    height: 100%;
}
/* Most headings are underlined and are aligned in the centre of the page. */
h1 {
    text-align: center;
    text-decoration: underline;
    letter-spacing: 3.5px;
}

h2 {
    text-align: center;
}	

#span1 {
    font-weight: bold;
}

#headerdiv {
    text-align: center;
}

/* Titles indicating new weeks/visualisations are given the same font as the body, and same format as the headings, for consistency. */
.weekTitle {
       font-family: "Times New Roman", Times, serif;
       text-align: center;
       text-decoration: underline;
       letter-spacing: 3.5px;
       font-weight: bold;
}

.chart {
    /* My charts are given a different font to separate from the rest of the page. The borders and margins are of typical size. */
    font-family: Arial, Helvetica, sans-serif;
    vertical-align: center;
    width: 400px;
    border: #4B0082 solid 3.5px;
    border-radius: 10px;
    margin: 10px;
    padding: 8px;
    background-color: white
}

/* The following CSS code (lines 51-130) take inspiration from this website: 'https://www.webtopic.com/cool-css-button-examples/'. I took example code from here and played around with the parameters to make my own buttons. */
.multi-button {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.button {
  min-width: 75px;
  min-height: 15px;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  letter-spacing: 1.3px;
  font-weight: 700;
  color: #000dff;
  background: blue;
background: linear-gradient(90deg, rgba(255, 212, 41,1) 0%, rgba(255, 212, 41,1) 100%);
  border: none;
  border-radius: 1000px;
  box-shadow: 12px 12px 24px rgba(79,209,197,.64);
  transition: all 0.3s ease-in-out 0s;
  cursor: pointer;
  outline: none;
  position: relative;
  padding: 10px;
  }

button::before {
content: '';
  border-radius: 1000px;
  min-width: calc(75px + 12px);
  min-height: calc(15px + 12px);
  border: 6px solid #9800b3;
  box-shadow: 0 0 60px rgba(0,255,203,.64);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all .3s ease-in-out 0s;
}

.button:hover, .button:focus {
  color: green;
  transform: translateY(-6px);
}

button:hover::before, button:focus::before {
  opacity: 1;
}

button::after {
  content: '';
  width: 30px; height: 30px;
  border-radius: 100%;
  border: 6px solid red;
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ring 1.5s infinite;
}

button:hover::after, button:focus::after {
  animation: none;
  display: none;
}

@keyframes ring {
  0% {
    width: 20px;
    height: 20px;
    opacity: 1;
  }
  100% {
    width: 150px;
    height: 150px;
    opacity: 0;
  }
}

/* The below CSS is taken from Richard's page, and sets a different number of columns (of graphs) on the page depending on the size of the screen that is being used. */
/* E.g., a typical phone displays one column, and iPad displays two, and a typical computer screen displays three. */
/* ------------------------------------------------------------------------------
	DIFFERENT SCREEN SIZES
-------------------------------------------------------------------------------*/

/* One column*/
@media only screen and (min-width: 250px) {
  .grid_items {
    grid-template-columns: 100%;
    max-width: 420px; 
    margin: 0 auto 0 auto !important;
	padding: 0 5 0 5; 
    grid-column-gap: 10px;
    grid-row-gap: 40px;
    text-align: center;
  }

  .wrap {
    grid-template-columns: 100%;
    max-width: 360px; 
    margin: 0 auto 0 auto !important;
	  padding: 0 5 0 5; 
    grid-column-gap: 10px;
    grid-row-gap: 40px;
    text-align: center;
  }
  .grid_items > div {
    padding: 10px;
  }
  .rubric {
    text-align: left;
  }
}

/* Two columns*/
@media only screen and (min-width: 900px) {
  .grid_items, .wrap {
    grid-template-columns: 47.5% 47.5%;
    max-width: 880px; 
    margin: 0 auto 0 auto !important;
	padding: 0 5 0 5; 
    grid-column-gap: 10px;
    grid-row-gap: 40px;
    text-align: left;
  }
  .grid_items > div {
    padding: 10px;
  }
}

/* Three columns*/
@media only screen and (min-width: 1400px) {
  .grid_items, .wrap {
    grid-template-columns: 30% 30% 30%;
    max-width: 1400px; 
    margin: 0 auto 0 auto !important;
	padding: 0 5 0 5; 
    grid-column-gap: 20px;
    grid-row-gap: 50px;
  }
  
  .grid_items > div {
    padding: 10px;
  }
}

/* Four columns*/
@media only screen and (min-width: 1800px) {
  .grid_items, .wrap {
    grid-template-columns: 25% 25% 25% 25%;
    max-width: 1900px; 
    margin: 0 auto 0 auto !important;
	padding: 0 5 0 5; 
    grid-column-gap: 20px;
    grid-row-gap: 50px;
  }
  .grid_items > div {
    padding: 10px;
  }
}
