/*

Styles

(c) annaczr

*/

/******************************************************************************/
/*
/* Common
/*
/******************************************************************************/

:root {
  --primary: #000;
  --primary-border: rgb(0, 0, 0, 0.3);
  --button-background: #fff;
  --button-hover-shadow: 2px 2px 0 rgb(0, 0, 0, 0.25);
  --secondary-hover-background: #d8d8d8;
  --success-background: #9ff0ac;

  --gap: 10px;
  --entity-radius: 6px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  background-origin: border-box;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.2;
}

body {
  margin: 0;
  overflow: auto;
  color: #333;
  background-color: #fff;
  width: 100%;
  /* margin-right: 20px;
  margin-left: 20px; */
}

.post li,
table,
summary,
figure,
figure img,
figcaption,
.subscribe-by-email,
.loader {
  font-size: 14px;
  line-height: 23px;
  margin-bottom: 20px;
  margin-left: 240px;
  width: 420px;
}

figure img {
  max-width: 100%;
}
figcaption {
  font-size: 12px;
  color: #999;
  margin-top: -15px;
  max-width: 100%;
}

li {
  clear: both;
  margin-bottom: 82px;
}

a {
  color: #9ff0ac;
}

a:hover {
  text-decoration: none;
}

h1,
h2 {
  font-size: 18px;
  margin-block-start: 0.83em;
  margin-block-end: 0.83em;
}

h3 {
  margin-block-start: 1em;
  margin-block-end: 1em;
  font-weight: bold;
}

p {
  margin: 10px 0 0;
}

p,
span {
  -webkit-text-size-adjust: auto;
}

.page {
  max-width: 700px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

button,
input[type="color"],
select,
label {
  -ms-touch-action: manipulation;
  text-align: left;
  background-color: var(--button-background);
  border: 1px solid var(--primary-border);
  border-radius: var(--entity-radius);
  cursor: pointer;
  user-select: none;
  height: fit-content;
  color: var(--primary);
  flex-shrink: 0;
  max-width: 100%;
  margin: 0;
  padding: 5px 9px;
}

button:hover,
input[type="color"]:hover,
select:hover,
label:hover button.hover,
input[type="color"].hover,
select.hover,
label.hover {
  -webkit-box-shadow: var(--button-hover-shadow);
  box-shadow: var(--button-hover-shadow);
  background-color: var(--secondary-hover-background);
  outline: none;
}

button.success,
input[type="color"].success,
select.success,
label.success {
  background-color: var(--success-background);
}

/******************************************************************************/
/*
/* Header
/*
/******************************************************************************/

header {
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 700px;
  padding: 8px;
  transition: opacity 0.2s;
  position: fixed;
  top: 0;
  margin: auto;
}

.logo {
  background-image: url("/assets/logo.svg");
  background-repeat: no-repeat;
  height: 50px;
  margin-top: 20px;
  margin-right: 10px;
  width: 50px;
  cursor: pointer;
  float: left;
  -webkit-transition: all 0.2s;
  -moz-transition: all 0.2s;
  transition: all 0.2s;
}

.logo:hover {
  opacity: 0.6;
}

nav {
  float: right;
  margin-top: 38px;
  font-size: 13px;
  display: flex;
  align-items: center;
}

nav a {
  color: #1e5782;
  text-decoration: none;
  margin-left: 15px;
}

nav a:first-child {
  margin-left: 0px;
}

nav a:hover {
  color: #3c89c3;
  text-decoration: underline;
}

/******************************************************************************/
/*
/* Main
/*
/******************************************************************************/

main.page {
  padding-top: 6rem;
  padding-bottom: 4rem;
}

main.page .page-wrap > section {
  width: 100%;
  padding: 0 20px;
  margin-bottom: 2rem;
}

main.page .page-wrap > section video,
main.page .page-wrap > section img {
  max-width: 100%;
  height: auto;
}

/******************************************************************************/
/*
/* Index
/*
/******************************************************************************/

main.page .page-wrap > section > p {
  max-width: 440px;
  margin: 1rem 0;
}

main.page .page-wrap p {
  line-height: 1.35;
}

main.page .page-wrap > section.intro img {
  border-radius: calc(var(--entity-radius) * 2);
}

section.our-courses .our-courses-wrap {
  color: #fff;
  border-radius: 16px;
  background-color: #121a8b;
  padding: 2rem;
}

section.our-courses .our-courses-wrap h3 {
  margin-top: 0;
}

section.our-courses .our-courses-wrap img,
section.our-courses .our-courses-wrap video {
  border-radius: 12px;
  margin-bottom: 0;
}

section.our-courses .our-courses-wrap .row {
  flex-wrap: wrap;
  justify-content: space-between;
  display: flex;
}
section.our-courses .our-courses-wrap .row + .row {
  margin-top: 20px;
}

section.our-courses .our-courses-wrap .row .left {
  max-width: calc(45% - var(--gap));
  margin-right: var(--gap);
}

section.our-courses .our-courses-wrap .row .right {
  max-width: 55%;
}

video,
img {
  object-fit: contain;
  overflow-clip-margin: content-box;
  overflow: clip;
}

@media (width <= 760px) {
  nav {
    margin-top: 0;
  }

  .logo {
    margin-top: 0;
  }

  main.page .page-wrap {
    max-width: 600px;
  }

  main.page .page-wrap > section {
    padding: 0 12px;
  }

  main.page .page-wrap > section.intro img {
    border-radius: calc(var(--entity-radius) * 2);
  }

  section.our-courses .our-courses-wrap img,
  section.our-courses .our-courses-wrap {
    padding: 1rem;
  }

  section.our-courses .our-courses-wrap .row {
    flex-direction: column;
    align-items: stretch;
  }

  section.our-courses .our-courses-wrap .row .left,
  section.our-courses .our-courses-wrap .row .right {
    flex: 1 1 auto;
    max-width: 100%;
    margin-right: 0;
  }
}
