/*Fonts*/
@import url("font/fredoka-one/stylesheet.css");
@import url("font/lato/stylesheet.css");

/*Colors*/
@import url("color.css");

/*Element styles*/
@import url("header.css");
@import url("footer.css");

:root {
  /*Font variables*/
  --font-headings: "Fredoka One", sans-serif;
  --font-primary:  "Lato", sans-serif;

  /*Breakpoints*/
  --break-small:  640px;
  --break-medium: 768px;
  --break-large:  1024px;

  /*Text sizes*/
  --text-small:   12px;
  --text-normal:  18px;
  --text-large:   20px;
  --text-xlarge:  32px;
  --text-xxlarge: 44px;
}

html {
  background: var(--color-background);
  color: var(--color-text);
  max-width: var(--break-large);
  font-family: var(--font-primary);
  margin: 0 auto;
}

h1, h2, h3, h4, h5, h6 {font-family: var(--font-headings)}

h1 {
  color: var(--brand-primary);
  font-size: var(--text-xxlarge);
  line-height: var(--text-xxlarge);
  margin: 0 0 calc(var(--text-xxlarge) / 2);
  text-align: center;
}

h2 {
  color: var(--brand-dark);
  font-size: var(--text-xlarge);
  line-height: var(--text-xlarge);
  margin: 0 0 calc(var(--text-xlarge) / 2);
  text-align: center;
}

h3 {
  color: var(--color-text-subtle);
  font-size: var(--text-large);
  line-height: var(--text-large);
  margin: 0 0 calc(var(--text-large) / 2);
}

h4, h5, h6 {
  color: var(--color-text-muted);
  font-size: var(--text-normal);
  line-height: var(--text-normal);
  margin: 0 0 calc(var(--text-normal) / 2);
}

a {text-decoration: none !important}

body {
  width: 100%;
  margin: 0 auto;
}

main {
  position: relative;
  display: block;
  width: calc(100% - 0px);
  height: auto;
  background: var(--color-foreground);
  margin: 60px 0 0 0;
  padding: 40px 0 20px 0;
  border-radius: 0 0 10px 10px;
  z-index: 1;
}

#text-container {margin: 40px 40px 20px 40px}

#text-container p {
  font-size: var(--text-normal);
  line-height: calc(var(--text-normal) * 1.5);
  margin: 0 0 var(--text-normal) 0;
}

#text-container p:last-of-type {margin: 0}

#text-container hr {
  position: relative;
  display: block;
  width: 100%;
  height: 4px;
  clear: both;
  border-radius: 4px;
  border: 0;
  background: var(--color-subtle);
  margin: 20px 0;
}

#text-container a {
  color: var(--brand-primary);
  font-weight: bold;
}

#text-container a:hover {color: var(--brand-primary-light)}

/*home.html styling*/
#home-hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 0;
  align-items: center;
  background: var(--brand-primary);
  border-radius:  0 0 10px 10px;
  width: calc(100%);
  margin: -40px 0 35px 0;
  padding: 20px 0 0 0;
  max-height: 300px;
  overflow: hidden;
  z-index: 1;
  cursor: pointer;
}

#hero-info {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: min-content min-content min-content;
  align-content: center;
  gap: 20px 0;
  padding: 20px 0;
  width: calc(100% - 10px);
  height: calc(100% - 60px);
  margin: 10px 0 10px 10px;
  border-radius: 5px;
  background: var(--brand-dark);
  z-index: 2;
  user-select: none;
  pointer-events: none;
  text-align: center;
}

#hero-info h1 {
  color: var(--brand-light);
  margin: 0 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 24px;
  line-height: 24px;
}

#hero-info p {
  position: relative;
  display: block;
  color: var(--brand-primary-light);
  margin: 0 20px;
  max-height: 6em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: pre-wrap;
}

#hero-info button {
  position: relative;
  display: inline-block;
  margin: 0 auto;
  padding: 6px 14px;
  border-radius: 5px;
  border: 2px solid var(--brand-primary);
  background: none;
  font-family: var(--font-headings);
  color: var(--brand-primary);
  transition: .2s ease-in-out;
}

#home-hero-container:hover #hero-info button {
  color: var(--color-foreground);
  background: var(--brand-primary);
}

#hero-image {
  position: relative;
  display: block;
  width: 100%;
  height: calc(100% + 20px);
  margin: -20px 0 0 0;
  overflow: hidden;
  z-index: 2;
  user-select: none;
  pointer-events: none;
}

#hero-image::before {
  content: "";
  position: absolute;
  z-index: 3;
  width: 10px;
  height: calc(100% - 20px);
  margin: 20px 0 0 0;
  background: var(--brand-primary);
  border-radius: 0 0 10px 0;
}

#hero-image img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%);
  transform: scale(1) rotate(0deg);
  transition: 1s ease-in-out;
}

#home-hero-container:hover #hero-image img {
  filter: grayscale(0%);
  transform: scale(1.15) rotate(5deg);
}

#home-title {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 450px 1fr;
  grid-template-rows: 1fr;
  align-content: center;
  width: 100%;
  margin: 0 0 30px 0;
}

#home-title h2 {
  position: relative;
  display: inline-block;
  margin: 0;
  line-height: 20px;
}

#home-title h2::before {
  content: "";
  position: relative;
  display: inline-block;
  width: 30px;
  height: 100%;
  background: url("../../home/image/titleDeco.svg")
              no-repeat center;
  background-size: contain;
  margin: 0 15px 0 0;
  transform: rotate(180deg);
}

#home-title h2::after {
  content: "";
  position: relative;
  display: inline-block;
  width: 30px;
  height: 100%;
  background: url("../../home/image/titleDeco.svg")
              no-repeat center;
  background-size: contain;
  margin: 0 0 0 15px;
}

/*Generic page style*/
#page-title-container {
  position: relative;
  display: block;
  width: calc(100% - 80px);
  margin: -40px 40px 40px 40px;
  background: var(--brand-light);
  padding: 40px 0 20px 0;
  border-radius: 0 0 10px 10px;
}

#page-title-container h1 {margin: 0}