@import url("preloader.css");

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100%;
  height: 100%;
  background-color: lavender;  
  display: grid;
  grid-template-columns: 10px 1fr 10px;
  grid-template-rows: 200px 1fr auto 105px 270px;
  grid-template-areas:
    ". header ."
    ". main ."
    ". votes ."
    ". pagination ."
    "footer footer footer";
}

header {
  grid-area: header;
  width: 100%;
  background-image: url(../imgs/kurdistan-flag.jpg);
  background-size:cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
header p {
  direction: ltr;
  text-align: center;
  font-size: 2rem;
  color: #fff;
  text-shadow: 0px 0px 10px #000;
  background-color: #10687950;
}


main {
  grid-area: main;
  width: 100%;
  height: 70vh;
  padding: 25px 0;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: url(../imgs/kurdistan-map.jpg);
  background-size:cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: background-move 25s -1s ease-in-out infinite alternate;
}
@keyframes background-move {
  from {
    background-position:left;
  }

  to {
    background-position: right;
  }
}
.main .lang-selector {
  width: 90%;
  padding: 30px 50px;
  margin-bottom: 0;
  box-shadow: 0 0 40px #fffa94;
  background: 
    linear-gradient(
      to right bottom,
      rgba(112, 210, 255, 0.533),
      rgba(0, 47, 123, 0.249)
    );
  backdrop-filter: blur(2px);
  border: 2px solid #106879;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.main .lang-selector-head {
  width: calc(100% + 100px);
  margin-top: -50px;
  margin-bottom: 50px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-bottom: 2px solid #337910;
  box-shadow: 0 10px 10px #b3ff002d;
}
.main .lang-selector-head p {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border-radius: 16px;
  color: #136;
}
.main .lang-selector-body {
  width: 100%;
  height: 50%;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 30px;
  justify-content: center;
}
.main .lang-selector-body a {
  width: 100%;
  height: 100%;
  text-decoration: none;
  font-family: zar;
  font-size: 1.7rem;
  margin-bottom: 20px;
  color: #fff;
  display: flex;
  text-shadow: 0px 0px 5px #222;
  flex-direction: column;
  font-weight: bolder;
  align-items: center;
  border: 2px solid #02353f;
  border-radius: 10px;
  padding: 10px 0;
  background-color: #106879;
  box-shadow: 0 5px 20px #353535c0 ;
}

.votes {
  grid-area: votes;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.votes h2 {
  margin: 60px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.votes h2 span {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px 0;
  padding: 30px;
  font-size: 5rem;
  color: #eee;
  background-color: #03374f;
  border-radius: 50%;
  border: 2px solid #eee;
  box-shadow: 0 4px 20px 1px #181e21;
}

.card {
  width: 80%;
  height: 100px;
  margin-bottom: 20px;
  box-shadow: 0 1px 5px #0009;
  background-image: linear-gradient(#9db3ca60 40%, #9db3ca80 60%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.paginationContainer {
  margin: 25px 0;
  grid-area: pagination;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
nav.pagination {
  width: 95%;
  height: 100%;
  background-color: #03374f;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.pagination li {
  width: 37px;
  height: 37px;
  background-color: #10577f;
  box-shadow: 0 0 3px #000a, inset 0 0 2px #05a4c4;
  border-radius: 5px;
  list-style: none;
  display: none;
  align-items: center;
  justify-content: center;
}
.pagination li:first-child,
.pagination li:nth-child(2),
.pagination li:nth-child(3),
.pagination li:nth-last-child(2),
.pagination li:last-child,
.pagination li.current-page {
  display: flex;
}
.current-page {
  font-size: 1.8rem;
  color: #fff;
}
.pagination li a {
  display: block;
  width: 100%;
  height: 37px;
  line-height: 37px;
  font-size: 1.5rem;
  text-decoration: none;
  text-align: center;
  text-shadow: 0 0 5px #f00;
  color: #05d4f4;
}
.pagination li.previous-page {
  margin: 0 5px 0 10px;
}
.pagination li.next-page {
  margin: 0 10px 0 5px;
}
.pagination li.previous-page,
.pagination li.next-page {
  position: relative;
}
.pagination li.previous-page::before,
.pagination li.next-page::before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 1.8rem;
  content: "\f104";
  color: #05d4f4;
  pointer-events: none;
}
.pagination li.next-page::before {
  content: "\f105";
}
.three-dots {
  font-size: 1.8rem;
  color: #eee;
}

footer {
  grid-area: footer;
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #212121;
  z-index: 0;
}

.copy-rights {
  border-top: 2px solid #ccc;
  padding: 10px 20px 0;
  font-family: Unikurd_Midya;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  color: #ccc;
  z-index: 2;
}
.copy-rights span {
  display: inline-block;
  margin-top: 10px;
  z-index: 2;
}

/* tablet view */
@media only screen and (min-width: 745px) {
  body {
    grid-template-rows: 400px 1fr auto 105px 270px;
  }
  
  header p {
    font-size: 4.5rem;
    color: #fff;
    text-shadow: 0px 0px 10px #000;
    background-color: #10687950;
  }

  main {
    background-size: 150% 100%;
  }

  .main .lang-selector {
    width: 70%;
  }
  
  .main .lang-selector-head p {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bolder;
    text-shadow: 1px 1px 6px #136;
    border-radius: 16px;
    color: #eee;
  }
  
  .main .lang-selector-body a {
    width: 80%;
    
    font-size: 2.5rem;
    background-color:unset;
    backdrop-filter: blur(2px);
  }
  
  .votes h2 {
    font-size: 2.5rem;
  }

  .card {
    width: 50%;
  }

  .paginationContainer {
    height: 75px;
  }

  .copy-rights {
    border-top: 2px solid #ccc;
    padding: 10px 20px 0;
    font-family: Unikurd_Midya;
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    color: #ccc;
    z-index: 2;
  }
  .copy-rights span {
    display: inline-block;
    margin-top: 10px;
    z-index: 2;
  }
}

@media only screen and (min-width: 1000px) {
  
  body {
    /* place-items: center; */
    grid-template-columns: 1fr;
    grid-template-rows: 400px 1fr auto 105px 270px;
    grid-template-areas:
      "header"
      "main"
      "votes"
      "pagination"
      "footer";
  }

  main {
    background-size: 120% 100%;
    height: 100%;
  }

  .main .lang-selector {
    width: 50%;
    height: 700px;
  }

  .card {
    width: 30%;
  }

  .paginationContainer {
    justify-self: center;
    height: 75px;
    width: 50%;
  }
  
}
