@import url("preloader.css");

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  src: url(fonts/Unikurd_Magroon.ttf);
  font-family: Unikurd_Magroon;
}
@font-face {
  src: url(fonts/Unikurd_Midya.ttf);
  font-family: Unikurd_Midya;
}
@font-face {
  src: url(fonts/Diyako.ttf);
  font-family: diyako;
}

body {
  direction: rtl;
  width: 100%;
  height: 100%;
  background-color: lavender;  
  display: grid;
  grid-template-columns: 10px 1fr 10px;
  grid-template-rows: 200px 1fr 270px;
  grid-template-areas:
    ". header ."
    ". main ."
    "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: linear-gradient(to bottom right, rgba(0, 128, 175, 0.8), rgba(0, 42, 83, 0.933));
}

.main-Kurdî {
  direction: ltr;
}

.main p.discurce {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;  
  font-size: 2rem;
  font-family: Unikurd_Magroon;
  text-align: center;
  color: #eee;
}
.main .text {
    width: 90%;
    display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.main p.title {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;  
    font-size: 2rem;
    font-family: diyako;
    text-align: center;
    font-weight: bolder;
    color: #fff;
}
.main p.main-text {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;  
    font-size: 1.8rem;
    font-family: diyako;
    text-align:justify;
    text-align-last: right;
    color: #ddd;
}

.main p.kurdi {
  text-align-last: left;
}

.form-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
}


.form-container .warrning {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    width: 80%;
    height: 100%;
    top: 0;
    background-color: #eee;
    transition: all 1s ease-in-out;
    z-index: 1;
    padding: 10px   ;
}
.warrning p {
    margin-bottom: 30px;
    line-height: 40px;
    font-family: Unikurd_Magroon;
    font-size: 1.3rem;
    color: #333;
    text-align: justify;
    text-align-last: right;
}
.warrning p.kurdi {
  text-align-last: center;
  text-align: center;
}
.warrning button {
    background-color: #6b0d0d;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: #eee;
    font-size: 25px;
}
form {
width: 90%;
min-height: 550px;
padding: 30px 50px;
background-image: linear-gradient(-45deg, #31354c90, #9fbaa895);
backdrop-filter: blur(1px);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
border-radius: 5px;
box-shadow: -2px 0 7px #222;
position: relative;
}

.input-containers {
width: 85%;
height: 40px;
margin-bottom: 25px;
border-radius: 3px;
position: relative;
background-color: #fff;
box-shadow: 0px 0px 4px #333;
}

.input-containers label {
display: block;
position: absolute;
right: 10px;
line-height: 40px;
font-size: 1.3rem;
font-family: Unikurd_Magroon;
color: #333;
transition: all 0.2s ease-in-out;
pointer-events: none;
z-index: 1;
}

.input-containers label.kurdi {
  left: 10px;
  }

.input-containers input {
width: 100%;
height: 70%;
margin-top: 5px;
padding: 4px 8px;
position: absolute;
top: 25%;
border: 0;
border-radius: 3px;
display: block;
outline: none;
font-family: Unikurd_Midya;
font-size: 1rem;
z-index: 0;
}

input:focus {
outline: none;
}

.submit-btn {
width: 120px;
height: 50px;
border: none;
border-radius: 3px;
position: relative;
margin-top: 30px;
background-color: #0d6b10;
box-shadow: 0px 0px 4px #111;
font-family: Unikurd_Magroon;
font-size: 1.3rem;
letter-spacing: 1px;
text-align: center;
color: #eee;
cursor: pointer;
transition: background-color 0.8s, letter-spacing 0.5s;
}
.submit-btn::before {
content: "";
width: 110px;
height: 40px;
position: absolute;
top: 5px;
left: 5px;
border-top: 1px solid #eee;
border-bottom: 1px solid #eee;
transform-origin: right;
transform: scale(0, 1);
transition: transform 0.4s;
}
.submit-btn::after {
content: "";
width: 110px;
height: 40px;
position: absolute;
top: 5px;
left: 5px;
border-left: 1px solid #eee;
border-right: 1px solid #eee;
transform-origin: bottom;
transform: scale(1, 0);
transition: transform 0.4s 0.4s;
}
.submit-btn:hover::before,
.submit-btn:hover::after {
transform: scale(1, 1);
}
.submit-btn:hover {
background-color: #108b20;
letter-spacing: 0px;
}

.case-error {
    width: 250px;
    height: 100px;
    position: absolute;
    /* right: 50%; */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #8008;
  }
  .case-error p {
    width: 90%;
    border-radius: 5px;
    background-color: #0008;
    font-family: Unikurd_Midya;
    font-size: 1.2rem;
    text-align: center;
    color: #eee;
  }

  .errors {
    width: 280px;
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #0007;
    border-radius: 5px;
    box-shadow: -2px 0 7px #222;
  }
  
  .errors button {
    width: 51px;
    height: 51px;
    margin-top: 20px;
    border: none;
    border-radius: 5px;
    background-color: #0005;
    font-size: 42px;
    text-align: center;
    color: #eee;
    cursor: pointer;
    transition: background 50ms ease-in-out;
  }
  .errors button:hover {
    background-color: #9005;
  }
  
  .errors ul {
    width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .errors ul li {
    width: 240px;
    margin-bottom: 20px;
    list-style: none;
    background-color: #5007;
    border-radius: 5px;
    box-shadow: -2px 0 7px #222;
    font-family: Unikurd_Midya;
    font-size: 1.2rem;
    font-weight: bolder;
    text-align: center;
    color: #eee;
  }
  .errors ul li:nth-child(1) {
    margin-top: 20px;
  }

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 270px;
  }
  
  header p {
    font-size: 4.5rem;
    color: #fff;
    text-shadow: 0px 0px 10px #000;
    background-color: #10687950;
  }

  .main p.discurce {
    width: 80%;
  }
  .main .text {
    width: 80%;
  }
  .main p.title {
      width: 90%;
  }
  
  
  .form-container .warrning {
      width: 80%;
  }
  .warrning p {
      width: 80%;
      font-size: 1.5rem;
  }
  .warrning button {
      margin-top: 50px;
      width: 70px;
      height: 70px;
      font-size: 50px;
  }
  form {
  min-height: 450px;
  }
  .input-containers {
  width: 65%;
  }
  .copy-rights {
    font-size: 1.8rem;
  }
}

@media only screen and (min-width: 1000px) {
  
  body {
    grid-template-columns: 1fr;
    grid-template-rows: 400px 1fr 270px;
    grid-template-areas:
      "header"
      "main"
      "footer";
  }
  .form-container .warrning {
    width: 70%;
  }
  form {
    width: 65%;
  }
  
}
