@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat.ttf') format('ttf');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


/*---------------------------------------
  CUSTOM PROPERTIES ( VARIABLES )             
-----------------------------------------*/
:root {
  --color-bg:                     #bab9b4;
  --color-main:                   #302f2d;
  --color-accent:                 #696867;
  --color-text:                   #bab9b4;
  --color-white:                  #fff;

  --body-font-family:             'Montserrat', sans-serif;

  --h1-font-size:                 24px;
  --h2-font-size:                 20px;
  --p-font-size:                  16px;
  --btn-font-size:                18px;
  --copyright-font-size:          14px;

  --border-radius-large:          100px;
  --border-radius-medium:         20px;
  --border-radius-small:          10px;

  --font-weight-light:            300;
  --font-weight-normal:           400;
  --font-weight-semibold:         600;
  --font-weight-bold:             700;
}

body {
  background-color: var(--white-color);
  font-family: var(--body-font-family); 
  margin: 0;
  padding: 0;
}
* {
  box-sizing: border-box;
}

/*---------------------------------------
  TYPOGRAPHY               
-----------------------------------------*/

h2,
h3,
h4,
h5,
h6 {
  color: var(--dark-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-semibold);
}

h1 {
  font-size: var(--h1-font-size);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
}

h2 {
  color: var(--secondary-color);
  font-size: var(--h2-font-size);
  font-weight: var(--font-weight-normal);
}

h3 {
  font-size: var(--h3-font-size);
}

h4 {
  font-size: var(--h4-font-size);
}

h5 {
  color: var(--primary-color);
  font-size: var(--h5-font-size);
}

h6 {
  font-size: var(--h6-font-size);
}

p {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-light);
}

ul li {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-normal);
}

a, 
button {
  touch-action: manipulation;
  transition: all 0.3s;
}

a {
  color: var(--p-color);
  text-decoration: none;
}

a:hover {
  color: var(--primary-color);
}

b,
strong {
  font-weight: var(--font-weight-bold);
}

/*---------------------------------------
  MAIN               
-----------------------------------------*/
#wrapper {
  background: var(--color-bg) url('/images/bg.webp') 50% 50% /cover;
  width: 100vw;
  height: 100vh;
  position: relative;
}
.row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
#footer {
  position: absolute;

  bottom: 10px;
  left: 0;
  width: 100%;
}
#footer .row {
  max-width: 800px;
  margin: 0 auto;
  text-shadow: 2px 3px 3px rgba(255,255,255,0.3);
}
.container {
  position: absolute;
  left: 50%;
  top:50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: auto;
  max-width: 850px;
  display: flex;
  transform-origin: 50% 50%;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  color: var(--color-main);
  text-align: center;
  overflow: visible;
  opacity: 0;
  z-index: 1;
}
.container.center {
  padding-top: 10vh;
}
#m-img {
  position: absolute;
  max-width: 90vw;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}
#hashtag {
  width: 100%;
  text-align: center;
  font-size: 18px;
  color: var(--color-main);
  font-weight: bold;
}
#r-img {
  position: absolute;
  max-width: 90vw;
  top: 0;
  right: 100%;
  z-index: 2;
  transform: translate(80%, -50%) rotate(-17deg);
}
#lang {
  position: absolute;
  right: 5%;
  top: 3%;
  z-index: 10;
}
.sub p {
  width: 100%;
  text-align: center;
}
.lang {
  font-size: var(--h1-font-size);
  padding: 0 5px;
  color: var(--color-accent);
}
.lang.active {
  color: var(--color-main);
}
#form {
  padding: 20px 5px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#r_block {
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 463px;
  min-height: 463px;
  max-width: 90vw;
  border-radius: 20px;
  margin-bottom: 20px;
  position: relative;
  z-index: 3;
  background: var(--color-accent) url('/images/res.webp') 80% 110% no-repeat;
}
.btns {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
}
#r_block_img {
  margin-bottom: 10px;
  max-width: 90vw;
  position: relative;
  z-index: 3;
}
#subscribe_show {
  
  position: absolute;
  left: 83%;
  top: 10%;
  white-space: nowrap;
  cursor: pointer;
}
#r_block_img img {
  max-width: 100%;
}
.sharethis-inline-share-buttons {
  margin: 0 auto;
}
#share.hidden {
  display: none;
}
.shared {
  position: relative;
  margin: 30px auto 15px;
  text-align: center;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}
#save-btn {
  color: var(--secondary-color);
  font-size: var(--h2-font-size);
  font-weight: var(--font-weight-normal);
  margin: 0 auto;
}
#input, #email {
  background: var(--color-main);
  color: var(--color-text);
  font-size: var(--h2-font-size);
  width: 100%;
  padding: 25px;
  border: 0;
  border-radius: 20px;
  margin-bottom: 30px;
}
#result {
  margin-top: 40px;
  width: 100%;
  color: var(--color-white);
  font-size: 18px;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
}
#r_block.hidden {
  display: none;
}
#result p, #result {
  font-size: 14px;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
}
#result b {
  width: 100%;
  display: flex;
  font-size: 18px;
  margin-bottom: 15px;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
}
#submit, #reset, #sendmail, .btn, #sb {
  height: 60px;
  padding: 0 50px;
  border-radius: 30px;
  background: var(--color-white);
  color: var(--color-main);
  font-size: var(--h1-font-size);
  text-transform: uppercase;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: auto;
  border: 0;
  margin-bottom: 10vh;
}
.btn, #reset, #sb {
  margin-bottom: 10px;
}


#loader, #modal {
  position: fixed;
  background: var(--color-main);
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  z-index: -1;
  font-size: 20px;
  color: var(--color-white);
  transition: all 1s ease;
}
#loader div {
  margin-top: 30px;
}
#loader.active, #modal.active {
  z-index: 999;
  opacity: 1;

  transition: all 1s ease;
}
#main, #res {
  opacity: 0;
  transition: all 1s ease;
}
#res {
  padding-top: 0;
}
#res.active, #main.active {
  opacity: 1;
  z-index: 3;
  transition: all 1s ease;
}
#modal.active {
  z-index: 900;
}
#modal-inner {
  position: relative;
  min-width: 300px;
  min-height: 300px;
  max-width: 90vw;
  max-height: 80vh;
  background: var(--color-text);
  border-radius: 30px;
  padding: 30px;
  outline: none;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  justify-content: center;
  transition: all 1s ease;
}
#email {
  text-align: center;
}
#modal-close {
  position: absolute;
  left: 100%;
  bottom: 100%;
  border-radius: 4px;
  width: 30px;
  height: 30px;
  line-height: 30px;
  padding: 0;
  text-align: center;
  font-size: 24px;
  z-index: 995;
  border: 0;
  background: var(--color-text);
  color: var(--color-main);
}
#mail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow-y: scroll;
}

#sendmail {
  margin-bottom: 0;
}

@media screen and (max-width: 720px) {
  #footer .row, #footer .d-flex {
    display: flex;
    flex-direction: column;
    text-align: center;
  }
  .container.center {
    height: 70vh;
    padding-top: 30px;
    max-width: 90vw;
  }
  #input {
    padding: 10px 20px;
  }
  #submit {
    margin-bottom: 20px;
  }
  h1, .lang, #submit, #reset {
    font-size: 18px;
  }
  h2, #input, #result, .btn {
    font-size: 16px;
  }
  #r_block {
    margin-top: 80px;
    min-height: 330px;
    padding: 10px 20px;
  }
  #subscribe_show {
    top: 0;
    right: 0;
    left: unset;
    transform: translate(0, -150%);
  }
  .btns {
    flex-wrap: wrap;
  }
  .btn {
    padding: 5px 15px;
  }
  #r-img {
    max-width: 50vw;
    left: 0;
    transform: translate(-10%, -65%) rotate(-7deg);
  }
  #wrapper {
    background: var(--color-bg) url('/images/bg_m.webp') 40% 50% /cover;
  }
  #footer {
    bottom: 0;
    padding-top: 30px;
    color: var(--color-text);
    
    background: linear-gradient(to bottom, rgba(48,47,45,0) 0, rgba(48,47,45,0.9) 70%);
  }
  #footer .row {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
  }
  #footer p {
    font-size: 13px;
    letter-spacing: 0.1px;
  }
}
@media screen and (max-height: 720px) {
  #wrapper {
    height: 1000px;
  }
  .container {
    position: absolute;
  }
  #footer {
    position: fixed;
  }
}
