@font-face {
    font-family: 'radius';
    src: url('../fonts/radius-narrow-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'radius';
    src: url('../fonts/radius-boldnarrow-webfont.woff') format('woff');
    font-weight:600;
    font-style: normal;

}

@font-face {
    font-family: 'radius';
    src: url('../fonts/radius-heavycompact-webfont.woff') format('woff');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'gaya';
    src: url('../fonts/gayaregular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'gaya';
    src: url('../fonts/gayaitalic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}

:root {
  --bg-color: #ffffff;
  --bg-secondary-color: #f3f3f6;
  --color-primary: #14854F;
  --color-lightGrey: #d2d6dd;
  --color-grey: #747681;
  --color-darkGrey: #3f4144;
  --color-error: #d43939;
  --color-success: #28bd14;
  --color-pink: #e83a84;
  --color-purple: #472583;
  --color-green: #22ad84;
  --grid-maxWidth: 120rem;
  --grid-gutter: 4rem;
  --font-size: 2.2rem;
  --font-color: #000000;
  --font-family-sans: "gaya", serif;
  --font-family-mono: monaco, "Consolas", "Lucida Console", monospace;
}

body {
  font-family: "gaya";
  line-height: 1.3;
}

h1, .h1 {
  font-family: "radius";
  font-weight: normal;
  text-transform: uppercase;
  text-align: center;
  margin: 0;
  font-size: 9rem;
  margin-bottom: 1rem;
  line-height: .9;
}

h2, .h2 {
  font-family: "radius";
  font-weight: 600;
  text-transform: uppercase;
  margin: 0;
  line-height: .9;
  font-size: 3rem;
  margin-bottom: .5rem;
}

h3, .h3 {
  font-family: "radius";
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.6rem;
  line-height: .9;
  margin: 0;
  margin-bottom: .5rem;
}

a {
  color: inherit;
  text-decoration: underline;
}

figure {
  margin: 3rem 0;
}

.button, [type="button"], [type="reset"], [type="submit"], button {
  padding: 0.3rem 1rem;
  color: var(--font-color);
  background: none;
  border-radius: 0px;
  border: 1px solid;
  line-height: 1.8rem;
  text-align: center;
  font-family: radius;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 1.4rem;
  display: inline-flex;
  gap: 1rem;
  vertical-align: bottom;
  white-space: nowrap;
}

.button.dark, .button.error, .button.primary, .button.secondary, .button.success, [type="submit"] {
  color: var(--color-pink);
  background-color: var(--color-purple);
}

button:focus {outline:0;}

.two-columns {
  column-count: 2;
  column-gap: 4rem;
}

.flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.small {
  font-size : 1.6rem;
}

.small h2, h2.small {
  font-size: 1.8rem;
}

.small h3, h3.small {
  font-size: 1.4rem;
  margin: 0;
}

.is-purplebackground {
  background-color: var(--color-purple);
  color: var(--color-green);
}

.is-purplebackground h1,
.is-purplebackground h2,
.is-purplebackground h3 {
  color: var(--color-pink);
}

.is-pinkbackground {
  background-color: var(--color-pink);
  color: var(--color-purple);
}

.is-purpletext {
  color: var(--color-purple);
}

.is-greentext {
  color: var(--color-green);
}

.is-pinktext {
  color: var(--color-pink);
}

 .is-marginbottomless {
   margin-bottom: 0;
 }

 .is-framed p {
  border: 1px solid;
  padding: 1rem;
}

.viewport {
  display: flex;
  align-items: flex-end;
}

#book-section, #recordings-section {
  flex: 1;
  padding: 3rem 2rem;
  position: sticky;
  bottom: 0;
}

.wave {
  display: flex;
  align-items: center;
}

.wave .wave-wrapper {
  flex: 1;
  margin-bottom: 2rem;
}

.wave button {
  width: 80px;
  height: 80px;
  background-color: #FFFFFF;
  border: 1.5px solid #000;
  text-indent: -99999px;
  margin-right: 2rem;
  padding: 0;
  border-radius: 100%;
  background-image: url('../img/play.svg');
  background-size: 60%;
  background-position: center center;
  background-repeat: no-repeat;
}

.wave button.isPlaying {
  background-image: url('../img/pause.svg');
  background-size: 50%;
}

/*---------------------------*/
#piece-section {
    position: fixed;
    top: calc(100% - 7rem);
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    z-index: 999;
    transition: top .5s;
}

#piece-section .banner {
    display: flex;
    justify-content: space-between;
}

#piece-section.open {
  top:0;
  overflow: hidden;
  overflow-y: auto;
}

#piece-section .button-close {
  display: none;
}

#piece-section.open .button-open {
  display: none;
}

#piece-section.open .button-close {
  display: block;
}

@media screen and (max-width: 900px)
{
  .viewport {
    display: block;
  }
  #piece-section {
    position: unset;
  }
  #book-section, #recordings-section {
    position: relative;
  }
}

@media screen and (max-width: 640px)
{
  :root{
    --font-size: 1.8rem;
  }

  h1,.h1 {
    font-size: 5rem;
  }

  h2, .h2 {
    font-size: 2.5rem;
  }

  h3, .h3 {
    font-size: 1.6rem;
  }

  .small {
    font-size: 1.4rem;
  }

  .small h3, h3.small {
    font-size: 1.15rem;
  }

  .flex {
    display: block;
  }

  #book-section, #recordings-section {
    padding: 2rem;
    position: relative;
  }

  #piece-section .button-wrapper {
    display: none;
  }

}
