@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&display=swap');

body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  background-color: black;
  -webkit-animation: bugfix infinite 1s;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Advanced Checkbox Hack */
@-webkit-keyframes bugfix {
  from { padding: 0 } to { padding: 0 }
}

nav[role="custom-dropdown"] input[type=checkbox] {
  position: absolute;
  top: -9999px;
  left: -9999px;
}

nav[role="custom-dropdown"] label {
  display: none;
  cursor: pointer;
  user-select: none;
}

nav[role="custom-dropdown"] {
  position: relative;
  -webkit-user-select: none;
  user-select: none;
  width: 100%;
}

.video-container {
  width: 100%;
  position: relative;
  margin: 1em auto;
}

.video-container::after {
  content: '';
  display: block;
  padding-top: 56.25%;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #2AA942;
  border-radius: 24px;
  min-height: 48px;
  min-width: 240px;
  text-decoration: none;
  font-size: inherit;
  color: inherit;
  font-weight: 600;
}

.page-container {
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  background-color: white;
}

.page-container img {
  display: block;
  max-width: 100%;
}

.page-container > * {
  max-width: 800px;
  margin: 1em auto;
}

.profile {
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile img {
  max-width: 200px;
  max-height: 200px;
  border-radius: 50%;
  margin: 80px;
}

.profile > div {
  max-width: 480px;
}

.profile > * {
  flex: 1;
}

.logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: black;
  -webkit-user-select: none;
  user-select: none;
}

.logo h1 {
  font-size: 1.5em;
}

.logo h1,
.logo h1 a {
  color: #28A842;
  display: flex;
  align-items: center;
}

.logo h1 a {
  text-decoration: none;
  color: inherit;
}

.mobile-nav {

}

.mobile-nav summary {
  display: none;
}

.main-nav {
  background-color: white;
  display: flex;
  justify-content: center;
  list-style-type: none;
  margin: 0;
  padding: 0;
  font-size: 19px;
  text-transform: uppercase;
  -webkit-user-select: none;
  user-select: none;
  z-index: -1;
}

.main-nav li {
  padding: 24px 15px;
}

.main-nav li a {
  text-decoration: none;
  color: inherit;
}

.main-nav li.active {
  font-weight: 600;
}

.main-nav li a:hover {
  text-decoration: underline;
}

.hero {
  background: url(img/bk5.jpg) no-repeat;
  background-position: 0% 38%;
  background-size: cover;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-box {
  background: rgba(255,255,255,0.86);
  box-shadow: 0 2px 11px 1px rgba(0,0,0,0.72);
  max-width: 568px;
  padding: 20px 20px 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-box .cta-btn {
  background-color: #3F7CAC;
  color: white;
}

.about-us {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 30px 0;
}

.about-us-content {
  max-width: 960px;
}

.about-us h2 {
  text-transform: uppercase;
}

section.why-cardano {
  background-image: linear-gradient(180deg, #7FC025 0%, #28A842 100%);
  text-align: center;
  padding: 50px 90px 60px 90px;
}

.why-cardano ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.why-cardano li {
  text-align: center;
  margin: 40px;
}

.features {
  display: flex;
  justify-content: center;
}

.feature {
  background-color: #3F7CAC;
  color: white;
  margin: 50px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
}

.feature .cta-btn {
  background-color: black;
  font-size: 23px;
  font-weight: 500;
}

section.contact-us {
  background-color: #5B507A;
  display: flex;
  background: url(img/starsbackground.jpg) no-repeat;
  background-size: cover;
  justify-content: center;
}

.contact-us-box {
  background-color: white;
  margin: 40px 50px 60px 50px;
  box-shadow: 0 3px 11px 4px rgba(0,0,0,0.5);
  max-width: 960px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background-image: url(img/cardanoleaf.svg);
  background-repeat: no-repeat;
  background-position: 10% 50%;
  box-sizing: border-box;
  padding: 20px;
  padding-left: 33%;
}

.contact-us h2 {
  color: #2AA942;
  text-transform: uppercase;
}

footer {
  background-color: black;
  color: white;
  display: flex;
  padding: 40px 20px;
}

footer > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

footer ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

@media screen and (max-width: 1136px) {
  .main-nav {
    font-size: 16px;
  }

  .logo img {
    height: 72px;
  }
}

@media screen and (max-width: 1024px) {
  .features {
    flex-direction: column;
  }

  .why-cardano ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 960px) {
  .main-nav {
    font-size: 14px;
  }

  .main-nav li {
    padding: 24px 8px;
  }

  .logo img {
    height: 64px;
  }

  .logo h1 {
    font-size: 1.38em;
  }
}

@media screen and (max-width: 768px) {
  body {
    margin-top: 70px;
  }

  .logo {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
  }

  .logo h1 {
    font-size: 1em;
    margin-left: -22px;
    z-index: 500;
  }

  .logo img {
    height: 49px;
  }

  .main-nav {
    width: 100%;
    flex-direction: column;
  }

  .mobile-nav summary {
    display: block;
    background-color: white;
    min-height: 44px;
    padding: 15px;
    box-sizing: border-box;
  }

  .mobile-nav summary:focus {
    outline: none;
  }

  .main-nav li {
    padding: 15px;
  }

  .why-cardano ul {
    grid-template-columns: repeat(1, 1fr);
  }

  section.why-cardano {
    padding: 40px 40px 40px 40px;
  }

  .why-cardano li {
    margin: 20px;
  }

  .profile {
    flex-direction: column;
  }

  .profile.img-right {
    flex-direction: column-reverse;
  }

  .profile img {
    margin-top: 30px;
    margin-bottom: 10px;
  }

  .contact-us-box {
    margin: 40px 20px;
    padding-left: 20px;
    padding-top: 33%;
    background-position: 50% 8%;
    background-size: 35%;
  }

  footer {
    flex-direction: column;
    padding: 20px 40px 40px 40px;
  }

  footer > div {
    width: 100%;
    align-items: flex-start;
  }

  /* MOBILE MENU */
  nav[role="custom-dropdown"] .main-nav {
    transform: translateY(-101%);
    overflow: auto;
    position: absolute;
    box-shadow: 0 0 0 black;
  }

  nav[role="custom-dropdown"] input[type=checkbox]:checked ~ .main-nav {
    transform: translateY(0);
    box-shadow: 0 10px 0 black;
    transition: transform .24s ease-in-out;
  }

  nav[role="custom-dropdown"] label {
    position: relative;
    display: block;
    width: 100%;
    user-select: none;
    pointer-events: none;
    margin: 0;
    min-height: 70px;
    position: fixed;
    top: 0;
    left: 0;
    background-color: black;
  }

  nav[role="custom-dropdown"] label:after {
    position: absolute;
    left: 0;
    top: 0;
    height: 70px;
    width: 70px;
    content: "\2261";
    font-size: 48px;
    padding-left: 10px;
    color: white;
    pointer-events: initial;
    z-index: 600;
  }

  nav[role="custom-dropdown"] input[type=checkbox] ~ ul > li {
    position: relative;
  }

  nav[role="custom-dropdown"] input[type=checkbox] ~ ul > li a {
    display: block;
    height: 100%;
    width: 100%;
    margin: -15px;
    padding: 15px;
    -webkit-tap-highlight-color: none;
  }

  nav[role="custom-dropdown"] input[type=checkbox] ~ ul > li a:hover {
    text-decoration: none;
  }

  nav[role="custom-dropdown"] input[type=checkbox] ~ ul > li.active,
  nav[role="custom-dropdown"] input[type=checkbox] ~ ul > li a:active {
    background-color: #2AA942;
    font-weight: bold;
  }

  nav[role="custom-dropdown"] input[type=checkbox] ~ ul > li:not(:last-child) {
    box-shadow: 0 1px black;
  }

  nav[role="custom-dropdown"] input[type=checkbox] ~ ul > li:after {
    position: absolute;
    right: 10px;
    top: 0;
    display: flex;
    align-items: center;
    bottom: 0;
    content: "\203A";
    color: #2AA942;
  }

  nav[role="custom-dropdown"] input[type=checkbox] ~ ul > li:active:after,
  nav[role="custom-dropdown"] input[type=checkbox] ~ ul > li.active:after {
    color: black;
  }
}
