@font-face{
font-family:IRANSans;font-weight:400;font-style:normal;
src:url(../fonts/iransans/IRANSansWeb.eot);src:url(../fonts/iransans/IRANSansWeb.eot?#iefix) format("embedded-opentype"),url(../fonts/iransans/IRANSansWeb.woff2) format("woff2"),url(../fonts/iransans/IRANSansWeb.woff) format("woff"),url(../fonts/iransans/IRANSansWeb.ttf) format("truetype")
}

* {
  margin: 0;
  padding: 0;
}


html {
  background-image: url(./bg-repeat.jpg);
  background-position: center;
  height: 100vh;
}

@media screen and (orientation: landscape) {
  body {
    background-image: url(./flags.png);
    background-repeat: no-repeat;
    background-position: bottom right;
    height: 100vh;
  }
}

@media screen and (orientation: portrait) {
  body {
    background-image: url(./flags-portrait.png);
    background-repeat: no-repeat;
    background-position: bottom right;
    height: 100vh;
  }
}

/*/////////////////Container////////////////////*/

@media screen and (orientation: landscape) {
  .container {
    width: 100%;
    height: 100%;
    margin: 0px auto;
    font-size: 2rem;
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: 1.75fr 1fr 1fr;
    row-gap: 5px;
  }
}

@media screen and (orientation: portrait) {
  .container {
    width: 100%;
    height: 100%;
    margin: 0px auto;
    font-size: 2rem;
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: 1fr 1fr 1.5fr;
    row-gap: 5px;
  }
}

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

@media screen and (min-width: 100px) {
  header {
    background-image: url(./Top-Islim-phone.png);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center top;

    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
  }
}

@media screen and (min-width: 700px) {
  header {
    background-image: url(./Top-Islim.png);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: top;
    background-size: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
  }
}

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

main {
  margin: 0px;
  padding: 0px;
  display: flex;

  justify-content: center;
  align-items: center;
}

.content {
  display: grid;
  grid-template-rows: 1fr 1fr;
  row-gap: 5vh;

  position: fixed;
}

/* ////////////////Input Portrait///////////// */

@media screen and (orientation: portrait) {
  .field {
    padding: 25px;
    width: 60vw;
    height: 5vh;

    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #in-for {
    width: 60vw;
    height: 3vh;
    position: absolute;
    /* top: 0px; */
    border-radius: 6px;
    border: none;
    box-shadow: 0px 1px 2px 1px rgb(0, 0, 0);
    outline: none;
    padding-left: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-right: 35px;

    font-family: sans-serif;
    font-size: 16px;
    z-index: 0;
  }
}

/* //////////////////Input landscape/////////////////// */

@media screen and (orientation: landscape) {
  .field {
    padding: 25px;
    width: 35vw;
    height: 5vh;

    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #in-for {
    width: 35vw;
    height: 3vh;
    position: absolute;
    /* top: 0px; */
    border-radius: 6px;
    border: none;
    box-shadow: 0px 1px 2px 1px rgb(0, 0, 0);
    outline: none;
    padding-left: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-right: 35px;

    font-family: sans-serif;
    font-size: 16px;
    z-index: 0;
  }
}

#in-for:hover {
  box-shadow: 0px 3px 10px 1px rgba(0, 0, 0, 0.5);
}

/* ////////////////////Copy Icon///////////////// */

#copy-btn {
  position: absolute;
  right: 10px;
  opacity: 0.5;
  max-width: 100%;
  height: auto;
  z-index: 1;
  background:url(./copy-icon.png) 0 0 / 100% 100%;
  width:22px;
  height:26px
}

#copy-btn:hover {
  opacity: 1;
  cursor: pointer;
}

/* /////////////////////////submit button//////////// */

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

@media screen and (orientation: portrait) {
  #sub-btn {
    font-family: IRANSans;
    font-size: 5vw;
    width: 20vw;
    height: 6vh;
    padding: 5px auto;
    border-radius: 10px;
    border: none;
    background: rgb(204, 191, 72);
    background: linear-gradient(
      90deg,
      rgba(204, 191, 72, 1) 0%,
      rgba(255, 255, 255, 1) 35%,
      rgba(204, 191, 72, 1) 65%,
      rgba(204, 191, 72, 1) 100%
    );
    box-shadow: 0px 1px 0px 1px rgb(0, 0, 0);
  }
}

@media screen and (orientation: landscape) {
  #sub-btn {
    font-family: IRANSans;
    font-size: 1.75vw;
    width: 10vw;
    height: 8vh;
    padding: 5px auto;
    border-radius: 10px;
    border: none;
    background: rgb(204, 191, 72);
    background: linear-gradient(
      90deg,
      rgba(204, 191, 72, 1) 0%,
      rgba(255, 255, 255, 1) 35%,
      rgba(204, 191, 72, 1) 65%,
      rgba(204, 191, 72, 1) 100%
    );
    box-shadow: 0px 1px 2px 1px rgb(0, 0, 0);
  }
}

#sub-btn:hover {
  box-shadow: 0px 3px 10px 1px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

/*/////////////////Footer////////////*/

/* //////////////footer Portrait///////////// */

@media screen and (orientation: portrait) {
  footer {
    display: grid;
    grid-row: 1fr 1fr 0.25;
  }

  footer > div {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .site-btn {
    color: rgb(255, 255, 255);
    /* padding: 20px 40px; */
    width: 50vw;
    height: 10vh;
    text-align: center;
    text-decoration: none;
    font-size: 4vw;
    font-family: IRANSans;
    margin: 2px 4px;
    cursor: pointer;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
  }

  .site-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 8px rgba(0, 0, 0, 0.2);
    color: rgb(14, 9, 92);
  }
}

/* //////////////footer landsape///////////////// */

@media screen and (orientation: landscape) {
  footer {
    display: grid;
    grid-template-columns: 0.5fr 1fr 1fr 0.5fr;
  }

  footer > div {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .site-btn {
    color: rgb(255, 255, 255);
    width: 20vw;
    height: 15vh;
    text-align: center;
    text-decoration: none;
    font-size: 1.5vw;
    font-family: IRANSans;
    margin: 2px 4px;
    cursor: pointer;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
  }

  .site-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 8px rgba(0, 0, 0, 0.2);
    color: rgb(14, 9, 92);
  }
}

/*/////////////////Snackbar////////////*/

#snackbar {
  visibility: hidden;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 2px;
  padding-top: 10px;
  padding-bottom: 10px;
  position: fixed;
  z-index: 1;
  top: 0px;
  width: 100%;
  font-family: IRANSans;
  font-size: 18px;
}

#snackbar.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
  from {top: -30px; opacity: 0;} 
  to {top: 0px; opacity: 1;}
}

@keyframes fadein {
  from {top: -30px; opacity: 0;}
  to {top: 0px; opacity: 1;}
}

@-webkit-keyframes fadeout {
  from {top: 0px; opacity: 1;} 
  to {top: -30px; opacity: 0;}
}

@keyframes fadeout {
  from {top: 0px; opacity: 1;}
  to {top: -30px; opacity: 0;}
}
