@import url('https://fonts.googleapis.com/css2?family=Ysabeau+SC:wght@1..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sarpanch:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=SUSE:wght@100..800&display=swap');

body {
    font-family: "Ysabeau SC", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 17px;
    background: rgb(19,16,16);
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Full height of the viewport */
    background-image: url(banovici.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: inset 0 0 13px 13px rgba(19,16,16,0.9),
                inset 0 0 21px 21px rgba(22,36,71,0.8),
                inset 0 0 23px 23px rgba(118,171,174,0.7),
                inset 0 0 24px 24px #3C3D37; /* Gradual increase in shadow intensity */
}

.form-container {
    background-color: #FAF7F0;
    background-image: url(map_b_.png);
    background-position: center;
    background-size: 100% auto;
    background-repeat: no-repeat;
    padding: 15px 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 445px;
    text-align: center;
    margin-top: 0;
    position: relative;
}

h1 {
    margin-bottom: 20px;
    font-family: "Sarpanch", serif;
    font-weight: 400;
    font-style: normal;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 5px;
    text-align: left;
}

input[type="text"], input[type="email"], textarea {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    font-family: "SUSE", serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}

input[type="number"] {
    font-size:16px;
    padding: 4px;
    font-family: "Sarpanch", serif;
    font-weight: 400;
    font-style: normal;
}

textarea {
    max-width: 96%; /* Set maximum width */
    resize: both; /* Allow both horizontal and vertical resizing, but within limits */
}

input[type="submit"] {
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    font-size: 16px;
    font-family: "Sarpanch", serif;
    font-weight: 400;
    font-style: normal;
}

input[type="submit"]:hover {
    background-color: #45a049;
}

.scale-up-ver-bottom {
  -webkit-animation: scale-up-ver-bottom .4s cubic-bezier(0.680, -0.550, 0.265, 1.550) both;
  animation: scale-up-ver-bottom .4s cubic-bezier(0.680, -0.550, 0.265, 1.550) both
}

@-webkit-keyframes scale-up-ver-bottom {
  0% {
    -webkit-transform: scaleY(0.4);
    transform: scaleY(0.4);
    -webkit-transform-origin: 0 100%;
    transform-origin: 0 100%
  }

  100% {
    -webkit-transform: scaleY(1);
    transform: scaleY(1);
    -webkit-transform-origin: 0 100%;
    transform-origin: 0 100%
  }
}

@keyframes scale-up-ver-bottom {
  0% {
    -webkit-transform: scaleY(0.4);
    transform: scaleY(0.4);
    -webkit-transform-origin: 0 100%;
    transform-origin: 0 100%
  }

  100% {
    -webkit-transform: scaleY(1);
    transform: scaleY(1);
    -webkit-transform-origin: 0 100%;
    transform-origin: 0 100%
  }
}

.slit-in-horizontal {
    -webkit-animation: slit-in-horizontal 0.45s cubic-bezier(0.785, 0.135, 0.150, 0.860) .2s both;
            animation: slit-in-horizontal 0.45s cubic-bezier(0.785, 0.135, 0.150, 0.860) .2s both;
}

@-webkit-keyframes slit-in-horizontal {
  0% {
    -webkit-transform: translateZ(-800px) rotateX(90deg);
            transform: translateZ(-800px) rotateX(90deg);
    opacity: 0;
  }
  54% {
    -webkit-transform: translateZ(-160px) rotateX(87deg);
            transform: translateZ(-160px) rotateX(87deg);
    opacity: 1;
  }
  100% {
    -webkit-transform: translateZ(0) rotateX(0);
            transform: translateZ(0) rotateX(0);
  }
}
@keyframes slit-in-horizontal {
  0% {
    -webkit-transform: translateZ(-800px) rotateX(90deg);
            transform: translateZ(-800px) rotateX(90deg);
    opacity: 0;
  }
  54% {
    -webkit-transform: translateZ(-160px) rotateX(87deg);
            transform: translateZ(-160px) rotateX(87deg);
    opacity: 1;
  }
  100% {
    -webkit-transform: translateZ(0) rotateX(0);
            transform: translateZ(0) rotateX(0);
  }
}

.fade-in-fwd {
    -webkit-animation: fade-in-fwd 0.6s cubic-bezier(0.390, 0.575, 0.565, 1.000) 1s both;
            animation: fade-in-fwd 0.6s cubic-bezier(0.390, 0.575, 0.565, 1.000) 1s both;
}

@-webkit-keyframes fade-in-fwd {
  0% {
    -webkit-transform: translateZ(-80px);
            transform: translateZ(-80px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateZ(0);
            transform: translateZ(0);
    opacity: 1;
  }
}
@keyframes fade-in-fwd {
  0% {
    -webkit-transform: translateZ(-80px);
            transform: translateZ(-80px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateZ(0);
            transform: translateZ(0);
    opacity: 1;
  }
}

.fade-out-fwd {
    -webkit-animation: fade-out-fwd 0.7s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
            animation: fade-out-fwd 0.7s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

@-webkit-keyframes fade-out-fwd {
  0% {
    -webkit-transform: translateZ(0);
            transform: translateZ(0);
    opacity: 1;
  }
  100% {
    -webkit-transform: translateZ(80px);
            transform: translateZ(80px);
    opacity: 0;
    display: none;
  }
}
@keyframes fade-out-fwd {
  0% {
    -webkit-transform: translateZ(0);
            transform: translateZ(0);
    opacity: 1;
  }
  100% {
    -webkit-transform: translateZ(80px);
            transform: translateZ(80px);
    opacity: 0;
    display: none;
  }
}

.overlay {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 15px;
    text-align: center;
    border-radius: 10px;
}

/* For devices with a maximum width of 600px (like most mobile phones) */
@media only screen and (max-width:600px) {
    .form-container {
        width: 350px;
    }
}