/* LIGHT MODE COLORS */
/* DARK MODE COLORS */
body {
  font-size: 16px;
  font-family: "Montserrat", sans-serif;
  margin: 0;
  background-color: #ffffff;
  color: #252629;
}
p {
  line-height: 1.6;
  color: #252629;
}
a {
  color: #009792;
}
a:hover {
  color: #50e3c2;
}
h1,
h2,
h3 {
  font-weight: 800;
}
h1 {
  font-size: 3em;
  line-height: 1.2;
}
h2 {
  font-size: 2.5em;
  margin-bottom: 3rem;
  line-height: 1.4;
}
h3 {
  font-size: 1.5em;
  margin: 2rem 0 1rem 0;
  line-height: 1.4;
}
button {
  border: solid 2px #123466;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 4px 4px 0px 0px #123466;
}
a.button {
  border: solid 2px #123466;
  box-shadow: 4px 4px 0px 0px #123466;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}
a.button:active {
  box-shadow: 2px 2px 0px 0px #123466;
  -webkit-transform: translateY(4px);
  -webkit-transform: translateX(4px);
  transform: translateY(4px);
  transform: translateX(4px);
}
.primary.button {
  display: inline-block;
  color: #252629;
  background: #50e3c2;
  padding: 16px 32px;
}
.primary.button:hover {
  background: #57ffde;
}
.primary.button:disabled {
  background: #50e3c2;
  opacity: 0.5;
}
.secondary.button {
  color: #252629;
  border: solid 2px #123466;
  background: #ffffff;
}
.secondary.button:hover {
  background: #252629;
  color: #ffffff;
}
.cancel.button {
  color: #252629;
  padding: 16px 16px;
}
.cancel.button:hover {
  background: #E7EEFF;
}
.inverted.button {
  border: solid 2px #123466;
  padding: 0 12px;
  margin-left: 1rem;
  color: #252629;
  font-size: 32px;
}
.inverted.button:hover {
  background: #E7EEFF;
}
/*-------- PAGE GENERAL --------*/
.section {
  max-width: 1160px;
  margin: auto;
  padding: 3rem 2rem 5rem 2rem;
}
.section-fullwidth {
  width: 100%;
}
/*-------- HEADER / MAIN MENU --------*/
div.logo {
  background: url(./images/logos/rainkube_logo_light.svg) left top / 176px auto no-repeat;
  width: 176px;
  height: 40px;
}
header {
  padding: 16px 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  background: #E7EEFF;
}
.login {
  margin-top: 0.38rem;
  display: flex;
  align-items: center;
  padding: 8px;
}
/*-------- FOOTER --------*/
.footer {
  display: flex;
  flex-direction: row;
  gap: 24px;
}
.footer-image {
  width: 10%;
  max-width: 140px;
  min-width: 50px;
  height: fit-content;
}
div.footer-border {
  margin-bottom: 2rem;
  text-align: center;
}
.interested {
  text-align: center;
  padding-bottom: 5rem;
  padding-top: 5rem;
}
footer {
  text-align: center;
  padding-bottom: 2rem;
  background: #E7EEFF;
}
.footer {
  background: #E7EEFF;
}
div.footer-border {
  border: 1px solid #fff;
}
/*-------- MAIN SECTION --------*/
#toppage {
  background: linear-gradient(177deg, #E7EEFF 75%, transparent 75.1%);
}
.main {
  display: flex;
  align-items: center;
  padding: 0 2rem 8rem 2rem;
}
#beta {
  font-size: 18px;
  font-weight: 700;
  padding: 1rem 0 2rem 0;
}
.image-area {
  width: 50%;
  overflow: visible;
}
.main-image {
  max-height: 480px;
  display: block;
  padding: 2rem 0 0 4rem;
}
.mobile-image-area {
  display: none;
}
/*-------- WHY RAINKUBE SECTION --------*/
#why-rainkube {
  padding: 0px 2rem 64px 2rem;
}
#why-rainkube h2 {
  text-align: center;
}
#why-rainkube h3 {
  font-weight: 600;
}
#why-rainkube div.features {
  display: flex;
  margin: 40px auto 0 auto;
  flex-direction: row;
  gap: 24px;
  flex-wrap: wrap;
}
#why-rainkube div.feature {
  box-shadow: 8px 8px 0px 0px #123466;
  border: solid 2px #123466;
  display: flex;
  max-width: calc(100% / 2 - 64px);
  padding: 8px 24px 24px 24px;
  flex-direction: column;
}
#why-rainkube div.feature .feature-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}
#why-rainkube div.feature .feature-title img {
  width: 48px;
}
/*-------- FEATURES SECTION --------*/
.text-center {
  text-align: center;
}
.with-image {
  display: flex;
  align-items: center;
  padding: 1rem 0 2rem 0;
  gap: 4rem;
}
.with-image img {
  max-width: 50%;
}
/*--------FAST AND EASY DEPLOY PART--------*/
/*--------TERMINAL--------*/
.terminal {
  position: relative;
  box-shadow: 8px 8px 0px 0px #123466;
  background-color: #252629;
  max-width: 650px;
  padding: 1rem 1.5rem 0.5rem 1.5rem;
  margin: 2rem auto 0 auto;
  background-color: #131313;
  overflow-wrap: break-word;
  text-align: left;
  color: #fff;
  min-height: 200px;
}
.terminal p {
  color: #fff;
}
.terminal .dots {
  position: absolute;
  content: "";
  top: 12px;
  right: 60px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #d9515d;
  -webkit-box-shadow: 25px 0 0 #f4c025, 50px 0 0 #3ec930;
  box-shadow: 25px 0 0 #f4c025, 50px 0 0 #3ec930;
  margin-bottom: 1rem;
}
pre {
  padding-top: 1rem;
  white-space: pre-wrap;
  /* Since CSS 2.1 */
  white-space: -moz-pre-wrap;
  /* Mozilla, since 1999 */
  white-space: -pre-wrap;
  /* Opera 4-6 */
  white-space: -o-pre-wrap;
  /* Opera 7 */
}
/*--------UNIFIED MANAGEMENT PART--------*/
#management {
  background-color: #F5F7FA;
  padding: 2rem 0 3rem 0;
}
.detail-cards {
  display: flex;
  gap: 1.5rem;
}
.detail-cards .card {
  background-color: #ffffff;
  margin-top: 1.5rem;
  padding: 2rem 1rem 0.5rem 1rem;
  width: calc(100% / 4);
  border: solid 2px #123466;
  box-shadow: 8px 8px 0px 0px #123466;
}
.detail-cards .card img {
  max-height: 96px;
}
/*-------- APPLICATION MODAL --------*/
#overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  display: none;
  opacity: 0;
}
body.modal {
  overflow: hidden;
}
body.modal #overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.3s;
  opacity: 1;
  z-index: 100;
}
@keyframes slideUp {
  from {
    margin-top: 100%;
  }
  to {
    margin-top: 100px;
  }
}
#overlay div.modal {
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: 8px 8px 0px 0px #123466;
  max-width: 640px;
  padding: 40px 32px 32px 32px;
  text-align: center;
  margin: 100px 0 60px;
  flex-shrink: 0;
  box-sizing: border-box;
  background: #ffffff;
  color: #252629;
}
#overlay div.modal p {
  line-height: 1.5rem;
  font-size: 14px;
}
#overlay div.modal div.slide {
  display: none;
  min-height: 200px;
}
#overlay div.modal div.slide.active {
  display: block;
}
/* when visible */
body.modal #overlay div.modal {
  animation: slideUp 0.2s ease-out;
  margin-top: 60px;
}
.field {
  text-align: left;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}
.label {
  font-weight: regular;
  font-size: 12px;
  margin-bottom: 4px;
  color: #7f858c;
}
.actions {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
}
#close {
  align-self: stretch;
  cursor: pointer;
}
#contact-form h2 {
  font-size: 24px;
}
.contact .mail-link {
  color: #50e3c2;
}
#contact-form form {
  padding-top: 16px;
}
#contact-form form input,
#contact-form form textarea {
  font-size: 16px;
  font-family: "Montserrat", sans-serif;
  align-self: stretch;
  padding: 8px 16px;
  border: 1px solid #123466;
}
#contact-form form textarea {
  resize: vertical;
}
#contact-form form .submit-button {
  margin-top: 30px;
}
.captcha-image-wrapper {
  display: flex;
  align-items: center;
  background: #ffffff;
  margin-bottom: 8px;
}
.captcha-image-wrapper > * {
  margin: 0 4px;
}
.captcha h3 {
  margin: 0;
  text-align: left;
}
.captcha img {
  width: 200px;
  height: 70px;
  background: #ffffff;
  border-radius: 2px;
}
.action {
  margin-top: 32px;
}
/* Error */
#error-message {
  padding: 16px;
  text-align: left;
  font-size: 14px;
  background: rgba(255, 94, 94, 0.15);
  color: #FF0000;
  border-radius: 4px;
}
/* Loader */
.loader {
  margin: 56px auto;
  width: 96px;
  height: 96px;
  border: 4px solid #43C6AC;
  border-radius: 50%;
  animation: spin 1s infinite linear;
}
.spinner,
.spinner::before {
  border-color: transparent;
  border-top-color: #43C6AC;
}
.spinner::before {
  animation: spin 1.5s infinite ease;
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
/* DARK MODE */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #17181A;
    color: #fff;
    /*       BUTTONS       */
    /*--------TOP PAGE--------*/
    /*--------WHY RAINKUBE PART--------*/
    /*--------TERMINAL--------*/
    /* MODAL */
  }
  body p {
    color: #C0C0C0;
  }
  body a {
    color: #FAE24C;
  }
  body a:hover {
    color: #B6A430;
  }
  body div.logo {
    background: url(./images/logos/rainkube_logo_dark.svg) left top / 176px auto no-repeat;
  }
  body button {
    box-shadow: 4px 4px 0px 0px #009792;
  }
  body .button {
    box-shadow: 4px 4px 0px 0px #009792;
  }
  body .button:active {
    box-shadow: 2px 2px 0px 0px #009792;
  }
  body .secondary.button {
    color: #fff;
    box-shadow: 4px 4px 0px 0px #009792;
    border: #fff solid 1px;
    background: none;
  }
  body .secondary.button:hover {
    background: #fff;
    color: #17181A;
  }
  body .secondary.button:active {
    box-shadow: 2px 2px 0px 0px #009792;
  }
  body .cancel.button {
    color: #fff;
    border: #fff solid 1px;
    padding: 16px 16px;
  }
  body .cancel.button:hover {
    color: #252629;
    background: #ffffff;
  }
  body .inverted.button {
    background: none;
    font-size: 32px;
  }
  body #toppage {
    background: linear-gradient(177deg, #252629 75%, transparent 75.1%);
  }
  body #why-rainkube div.feature {
    border: solid 2px #50e3c2;
    box-shadow: 8px 8px 0px 0px #50e3c2;
  }
  body #why-rainkube div.feature img {
    filter: brightness(50);
  }
  body #management {
    background-color: #252629;
  }
  body .detail-cards .card {
    background: #17181A;
    border: solid 2px #50e3c2;
    box-shadow: 8px 8px 0px 0px #50e3c2;
  }
  body .terminal {
    background-color: #252629;
    box-shadow: 8px 8px 0px 0px #50e3c2;
  }
  body #overlay {
    background: rgba(0, 0, 0, 0.8);
  }
  body #overlay div.modal {
    background: #252629;
    box-shadow: 8px 8px 0px 0px #50e3c2;
    color: #fff;
  }
  body label.label {
    color: #C0C0C0;
  }
  body header {
    background: #252629;
  }
  body footer {
    background: #252629;
  }
  body .footer {
    background: #252629;
  }
  body .footer img {
    filter: brightness(0);
  }
  body div.footer-border {
    border: 1px solid #17181A;
  }
}
/*-------- MOBILE --------*/
@media only screen and (max-width: 799px) {
  .main {
    display: inherit;
    max-width: 100%;
    padding-bottom: 5rem;
    text-align: center;
    padding: 1rem;
    margin: 0 0 4rem 0;
  }
  /*    TOP PART   */
  #toppage {
    background: linear-gradient(177deg, #E7EEFF 95%, transparent 95.1%) !important;
  }
  /*    TOP PART IMAGES    */
  .image-area {
    display: none;
  }
  .desktop-image-area {
    display: none;
  }
  .mobile-image-area {
    padding: 0;
    display: flex;
    justify-content: center;
  }
  .mobile-image-area .main-image {
    max-width: 80%;
    padding: 0;
  }
  h1 {
    text-align: center;
    font-size: 2.8em;
  }
  /*    WHY RAINKUBE PART   */
  #why-rainkube div.feature {
    max-width: 100%;
    padding: 8px 24px 32px 24px;
  }
  #why-rainkube div.feature img {
    width: 2rem;
  }
  /*    WHY RAINKUBE DETAILS PART   */
  .with-image {
    flex-direction: column;
    gap: 2rem;
  }
  .with-image img {
    max-width: 100%;
  }
  /*    WHY RAINKUBE UNIFIED MANAGEMENT PART   */
  .detail-cards {
    flex-direction: column;
    gap: 1.5rem;
  }
  .detail-cards .card {
    width: inherit;
    margin-top: 0;
  }
  /*    FOOTER   */
  .interested h2 {
    font-size: 2.5rem;
    line-height: 3.5rem;
    padding: 2rem 0;
  }
  /*    MODAL   */
  body.modal #overlay div.modal {
    width: calc(100% - 16px);
    padding: 40px 24px;
    margin: 20px;
  }
  /*    HEADER / MENU    */
  header {
    padding: 1rem 1rem 0 1rem;
  }
  .menu {
    display: inline-block;
    margin-right: auto;
  }
  nav ul {
    padding: 0;
  }
  .login {
    margin-top: 0;
  }
}
@media only screen and (max-width: 799px) and (prefers-color-scheme: dark) {
  #toppage {
    background: linear-gradient(177deg, #252629 95%, transparent 95.1%) !important;
  }
}
@media only screen and (max-width: 510px) {
  pre {
    font-size: 14px;
  }
}
@media only screen and (max-width: 355px) {
  div.logo {
    background: url(./images/logos/rainkube_logo_light.svg) left top / 140px auto no-repeat;
    width: 140px;
  }
}
@media only screen and (max-width: 355px) and (prefers-color-scheme: dark) {
  div.logo {
    background: url(./images/logos/rainkube_logo_dark.svg) left top / 140px auto no-repeat !important;
  }
}
