/* montserrat-regular - latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: local('Montserrat'),
       url('/fonts/montserrat-v25-latin-regular.woff2') format('woff2'),
       url('/fonts/montserrat-v25-latin-regular.woff') format('woff');
}
/* montserrat-500 - latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  src: local('Montserrat'),
       url('/fonts/montserrat-v25-latin-500.woff2') format('woff2'),
       url('/fonts/montserrat-v25-latin-500.woff') format('woff');
}
/* montserrat-700 - latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  src: local('Montserrat'),
       url('/fonts/montserrat-v25-latin-700.woff2') format('woff2'),
       url('/fonts/montserrat-v25-latin-700.woff') format('woff');
}

/* varela-round-regular - latin */
@font-face {
  font-family: 'Varela Round';
  font-style: normal;
  font-weight: 400;
  src: local(''),
      url('/fonts/varela-round-v19-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
      url('/fonts/varela-round-v19-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}


body {
  font-family: 'Varela Round', sans-serif;
  margin: 16px;
  background-color: #efefef;
  background-image: radial-gradient(ellipse at 50% 100%, #efefef 40%, #0d7163 100%);
  background-size: 200% 300px;
  background-position: top center;
  background-repeat: no-repeat;
}

body.subpage {
  background-image: radial-gradient(ellipse at 50% 100%, #efefef 40%, #0d7163 150%);
}

#content {
  max-width: min(1000px, 80vw);
  margin: 0 auto;
}

header {
  margin-top: auto 0;
  text-align: center;
}

header.small {
  display: flex;
  margin-bottom: 32px;
}

nav {
  text-align: right;
  min-height: 48px;
}

header.small nav {
  vertical-align: middle;
  display: inline-block;
}

nav a {
  display: inline-block;
  color: #000;
  padding: 8px 16px;
  border-radius: 24px;
  text-decoration: none;
}

nav a:hover {
  color: #000;
  background: #ddd;
}

nav a.selected {
  color: #fff;
  background: #000;
}

h1 img {
  width: 80vw;
  max-width: 500px;
}

header.small h1 {
  margin: 0;
  flex: 1;
  display: inline-block;
  text-align: left;
}

header.small h1 img {
  width: 200px;
}

h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  color: #000;
  font-weight: bold;
}

.callout {
  font-size: 2rem;
  color: #444;
  margin-bottom: 12px;
  font-weight: 500;
  text-align: center;
}

a.big {
  text-decoration: none;
  color: #000;
  background-color: rgba(0,0,0,0.1);
  border-radius: 24px;
  padding: 8px 24px;
  display: inline-block;
  margin-bottom: 8px;
  font-size: 1.2rem;
  font-weight: 500;
}

.feature {
  padding: 12px;
  text-align: center;
}

.parent-child {
  text-align: center;
  padding: 12px;
}

.parent-child > img {
  width: min(60vw, 400px);
}

.tts-example {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.tts-example .screenshot {
  width: 60%;
  max-width: 600px;
}

.tts-example p {
  flex: 1;
  background-color: rgb(199, 80, 0);
  color: #fff;
  font-size: 1.4rem;
  border-radius: 12px;
  padding: 32px 24px;
  margin: 8px;
  position: relative;
}

.tts-example.right-side p::before {
  content: "";
  position: absolute;
  
  /* Positions the arrow at the bottom of the bubble */
  top: 30%;
  left: -35px;
  
  /* Creates the triangle shape using borders */
  border-width: 20px;
  border-style: solid;
  border-color:  transparent rgb(199, 80, 0) transparent transparent;
}

.tts-example.left-side p::before {
  content: "";
  position: absolute;
  
  /* Positions the arrow at the bottom of the bubble */
  top: 30%;
  right: -35px;
  
  /* Creates the triangle shape using borders */
  border-width: 20px;
  border-style: solid;
  border-color:  transparent transparent transparent rgb(199, 80, 0);
}

.tts-example.blue p {
  background-color: #1976D2;
}
.tts-example.right-side.blue p::before {
  border-color:  transparent #1976D2 transparent transparent ;
}
.tts-example.left-side.blue p::before {
  border-color:  transparent transparent transparent #1976D2;
}

.tts-example.green p {
  background-color: #27622A;
}
.tts-example.right-side.green p::before {
  border-color:  transparent #27622A transparent transparent ;
}
.tts-example.left-side.green p::before {
  border-color:  transparent transparent transparent #27622A;
}

.tts-example.orange p {
  background-color: #8D4507;
}
.tts-example.right-side.orange p::before {
  border-color:  transparent #8D4507 transparent transparent ;
}
.tts-example.left-side.orange p::before {
  border-color:  transparent transparent transparent #8D4507;
}

footer {
  text-align: center;
  margin-top: 64px;
}

a {
  color: black;
}

@media only screen and (max-width: 800px) {
  .product {
    flex-direction: column;
  }

  header.small {
    display: block;
  }

  header.small h1 {
    display: block;
    text-align: center;
  }

  .tts-example {
    flex-direction: column;
  }

  .tts-example .screenshot {
    width: 100%;
    max-width: 800px;
  }

  .tts-example.right-side p::before {
    content: "";
    position: absolute;
    
    /* Positions the arrow at the bottom of the bubble */
    top: -30px;
    left: 30%;
    
    /* Creates the triangle shape using borders */
    border-width: 20px;
    border-style: solid;
    border-color:  transparent transparent rgb(199, 80, 0) transparent;
  }

  .tts-example.left-side p::before {
    content: "";
    position: absolute;
    
    /* Positions the arrow at the bottom of the bubble */
    top: -30px;
    left: 30%;
    right: 70%;
    
    /* Creates the triangle shape using borders */
    border-width: 20px;
    border-style: solid;
    border-color:  transparent transparent rgb(199, 80, 0) transparent;
  }

  .tts-example.right-side.blue p::before, .tts-example.left-side.blue p::before {
    border-color: transparent transparent #1976D2 transparent;
  }
  .tts-example.right-side.green p::before, .tts-example.left-side.green p::before {
    border-color: transparent transparent #27622A transparent;
  }
  .tts-example.right-side.orange p::before, .tts-example.left-side.orange p::before {
    border-color: transparent transparent #8D4507 transparent;
  }
  

  .tts-example.left-side {
    flex-direction: column-reverse;
  }
}

@media only screen and (max-width: 480px) {
  .callout {
    font-size: 1.6rem;
  }

  .feature {
    padding: 8px 0;
  }
}