/*--------------------*/
/* BASIC TYPOGRAPHY */
/*--------------------*/

body,
html {
	overflow-x:hidden;
  margin: 0;
  min-height: 100vh;
}

body {
	font-family: 'Open Sans', sans-serif;
	font-size: 16px;
	letter-spacing: 0.5px;
	line-height: 1.5;
  background-color: var(--primary-light-bg-color);
	color: var(--primary-color);
}

.hidden {
  display: none;
}

.semi-hidden {
  opacity: 0;
  pointer-events: none;
}

.page {
  height: 100vh;
  overflow-y: auto;
}

.full-height {
  box-sizing: border-box;
  height: 100%;
  position: relative;
}

@media (max-width: 992px) {
  .page {
    height: auto;
    min-height: 100vh;
    min-width: 80%;
  }
}

.mobile-page{
  height: 100vh;
  overflow-y: auto;
}

a {
	text-decoration: none;
	color: var(--secondary-color);
  transition: color 0.3s;
  cursor: pointer;
}

a:hover,
a:focus {
	outline: none;
	text-decoration: none;
  color: var(--primary-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: 'Open Sans', sans-serif;
	font-weight: 500;
	margin: 0;
}


h1, .h1 {
	font-size: 38px;
}

h2,.h2 {
	font-size: 32px;
}

h3, .h3 {
	font-size: 26px;
}

h4, .h4 {
	font-size: 22px;
}

h5, .h5 {
	font-size: 20px;
}

h6, .h6 {
	font-size: 18px;
}

@media (max-width: 992px) {
  h1 {
    font-size: 32px;
  }
  h2 {
    font-size: 28px;
  }
  h3 {
    font-size: 24px;
  }
  h4 {
    font-size: 20px;
  }
  h5 {
    font-size: 18px;
  }
}

.comment {
  color: var(--text-light-color);
}

.float-left {
  float: left;
}

.float-right {
  float: right;
}

.clickable {
  cursor: pointer;
}

.modal-background {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 100;
  display: none;
}

.site-component {
  display: contents;
}

/*--------------------*/
/* FORMS */
/*--------------------*/

input[type='text'], input[type='password'], input[type='number'], input[type='search'], input[type='email'], input[type='phone'], input[type='date'], select, textarea {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
  background-color: var(--primary-contrast-color);

  font-size: 1.1em;
  font-family: 'Open Sans', sans-serif;
  color: var(--text-color);
  border: 1px solid var(--text-light-color);
  border-radius: 4px;
}

input[type='date'], select {
  padding: 7px 8px;
}

input:disabled {
  background-color: rgba(var(--text-color-decimal), 0.1);
  color: var(--text-light-color);
}

input[type='checkbox'] {
  accent-color: var(--secondary-color);
}

input[type='radio'] {
  display: none;
  margin: 0px;
}

.radio-button {
  display: inline-block;
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
  background-color: var(--primary-contrast-color);

  font-size: 18px;
  font-family: 'Open Sans', sans-serif;
  color: var(--text-color);
  border: 1px solid var(--text-color);
  border-radius: 4px;
  line-height: normal;

  cursor: pointer;
}

.radio-button:hover {
  background-color: rgba(var(--secondary-color-decimal), 0.1);
}

input:checked + .radio-button {
  background-color: var(--secondary-color);
  color: var(--primary-contrast-color);
}

input[type='submit'] {
  border: none;
}

/*--------------------*/
/* GENERAL */
/*--------------------*/

.button {
  text-align: center;
  background-color: var(--primary-color);
  color: var(--primary-contrast-color);
  padding: 8px 15px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  border-radius: 4px;
}
.button.full {
  width: 100%;
}
.button.small {
  padding: 5px 10px;
  font-size: 14px;
}
.button.icon {
  padding: 4px 8px;
  font-size: 12px;
}

.button.secondary {
  background-color: var(--secondary-color);
  color: var(--secondary-contrast-color);
}
.button.fail {
  background-color: #e78383;
  color: var(--primary-contrast-color);
}
.button.light {
  background-color: var(--primary-contrast-color);
  color: var(--text-color);
}


@media (hover: hover) and (pointer: fine) {
  .button:hover {
    background-color:  rgba(var(--primary-color-decimal), 0.5);
  }
  .button.secondary:hover {
    background-color: rgba(var(--secondary-color-decimal), 0.5);
  }
  .button.fail:hover {
    background-color: rgba(231, 131, 131, 0.8);
  }
  .button.light:hover {
    background-color: rgba(var(--primary-color-decimal), 0.2);
  }
}

.button.selected {
  background-color: rgba(var(--primary-color-decimal), 0.5);
}
.button.secondary.selected {
  background-color:  rgba(var(--secondary-color-decimal), 0.5);
}
.button.fail.selected {
  background-color: rgba(231, 131, 131, 0.8);
}
.button.light.selected {
  background-color: rgba(var(--primary-color-decimal), 0.2);
}


.button:disabled, .button.disabled, .button:disabled:hover, .button.disabled:hover  {
  background-color: #ccc;
  color: rgba(var(--primary-contrast-color-decimal));
  cursor: not-allowed;
}

.primary-background {
  background-color: rgb(var(--primary-color-decimal));
  color: rgb(var(--primary-contrast-color-decimal));
}

.secondary-background {
  background-color: rgb(var(--secondary-color-decimal));
  color: rgb(var(--primary-contrast-color-decimal));
}

.text-background {
  background-color: rgb(var(--primary-contrast-color-decimal));
  color: rgb(var(--primary-color-decimal));
}

.background-cover {
  background-repeat: no-repeat;
  background-size: cover;
}

.background-cover-center {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.background-cover-right {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right center;
}

.background-cover-fixed {
	background-color: rgba(var(--primary-color-decimal), 0.8);
	background-blend-mode: multiply;
	background-position: center center;
	background-attachment: fixed;
}



/*--------------------*/
/* STANDARD BLOCKS */
/*--------------------*/

.block {
  display: flex;
  direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 0px 20px;
}
.block-content {
  box-sizing: border-box;
  max-width: 1220px;
  width: 100%;
  height: max-content;
  margin: 0px auto;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.block-content.small {
  max-width: 640px;
}

.side-img {
  min-height:400px;
}

@media (max-width: 992px) {
  .side-img {
    min-height:200px;
  }
}


/*--------------------*/
/* STANDARD FLEX */
/*--------------------*/

.flex-row {
  display: flex;
  flex-flow: row wrap;
}

.flex-left {
  justify-content: flex-start;
}

.flex-right {
  justify-content: flex-end;
}

.flex-justify {
  justify-content: space-between;
}

.flex-justify-around {
  justify-content: space-around;
}

.flex-stretch {
  justify-content: stretch;
}

.flex-col {
  display: flex;
  flex-flow: column;
}

.flex-gap {
  gap: 8px;
}

.flex-gap-big {
  gap: 20px;
}

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

.flex-middle {
  align-items: center;
}

.flex-end {
  justify-content: flex-end;
}

.flex-cross-stretch {
  align-items: stretch;
}

.flex-item {
  flex: 2 1 0px;
}

.flex-item-shrink {
  flex-grow: 1;
}

.flex-item-grow {
  flex-grow: 3;
}

.flex-nowrap {
  flex-wrap: nowrap;
}

/*--------------------*/
/* MOBILE */
/*--------------------*/

@media (max-width: 992px) {
  body {
    font-size: 15px;
  }
  .mobile-75 {
    min-width: 75%;
  }
  .mobile-hide {
    display: none;
  }
  .mobile-order-1 {
    order: 1;
  }
  .mobile-order-2 {
    order: 2;
  }
  .mobile-flex-item {
    flex: 2 1 0px;
  }
  .mobile-flex-col {
    display: flex;
    flex-flow: column;
  }
  .mobile-flex-row {
    display: flex;
    flex-flow: row wrap;
  }
  .mobile-flex-center {
    justify-content: center;
    align-items: center;
  }
}

@media (min-width: 992px) {
  .desk-hide {
    display: none;
  }
  .desk-flex-row {
    display: flex;
    flex-flow: row wrap;
  }
}


/*--------------------*/
/* GRID */
/*--------------------*/

.row {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
}

.col-desk-12 {
  width: 100%;
  display: inline-block;
}

.col-desk-10 {
  width: 83%;
  display: inline-block;
}

.col-desk-9 {
  width: 75%;
  display: inline-block;
}

.col-desk-8 {
  width: 66.666%;
  display: inline-block;
}

.col-desk-6 {
  width: 50%;
  display: inline-block;
}

.col-desk-4 {
  width: 33.333%;
  display: inline-block;
}

.col-desk-3 {
  width: 25%;
  display: inline-block;
}

.col-desk-2 {
  width: 16%;
  display: inline-block;
}

.col-desk-1 {
  width: 8%;
  display: inline-block;
}

.offset-desk-6 {
  margin-left: 50%;
}

.offset-desk-4 {
  margin-left: 33%;
}

.offset-desk-3 {
  margin-left: 25%;
}

.offset-desk-2 {
  margin-left: 16%;
}

@media (max-width: 992px) {
  .container {
    margin: 0 1rem;
  }
  .col-desk-1, .col-desk-2, .col-desk-3, .col-desk-4, .col-desk-6, .col-desk-8, .col-desk-9, .col-desk-10, .col-desk-12 {
    width: 100%;
  }
  .offset-desk-6, .offset-desk-4, .offset-desk-3, .offset-desk-2 {
    margin-left: 0%;
  }
}

/*--------------------*/
/* SUBMENU */
/*--------------------*/

.submenu {
  position: relative;
  overflow: visible;
  display: none;
  z-index: 50;
}
.submenu-box {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--primary-contrast-color);
  color: var(--text-color);
  padding: 20px;
  white-space: nowrap;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.submenu-box a {
  color: var(--text-color) !important;
  font-weight: normal;
}
.submenu-box a:hover {
  color: var(--primary-color) !important;
}

/*--------------------*/
/* ANIMATIONS */
/*--------------------*/

.appears-left {
  animation: appears-left 0.5s ease-out;
}

@keyframes appears-left {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}


.pulse {
  animation: pulse-animation 1.5s infinite;
}

@keyframes pulse-animation {
  0% {
    box-shadow: 0 0 0 0px  rgba(37, 211, 102, 0.5);
  }
  50% {
    box-shadow: 0 0 0 25px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0px  rgba(37, 211, 102, 0);
  }
}


.fa-icon {
  width: 1em;
  height: 1em;

  display: inline-block;

  vertical-align: -0.125em;

  fill: currentColor;

  overflow: visible;
}
