@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    padding: 0;
    background: url('../img/background.webp');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: left;
    background-size: cover;
}

.alert {
    border: 2px solid white;
    padding: 10px;
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #fff;
    background: linear-gradient(to bottom left, #c33764 0%, #1d2671 100%);
    border-radius: 10px;
    text-align: justify;
    text-justify: inter-word;
}

.alert span {
    float: right;
    cursor: pointer;
    padding: 0 10px 0 10px;
    margin-left: 10px;
    background-color: #fff;
    color: #000;
    text-transform: uppercase;
    border-radius: 10px;
}

.alert img {
    position: static;
    display: block;
    max-width: 100%;
    margin: 2px 5px 2px 0;
    float: left;
    border: 1px solid white;
    border-radius: 10px;
}

form {
    padding: 30px 30px 10px 30px;
    width: 815px;
    max-width: 100%;
    border: 2px solid white;
    box-shadow: 0 10px 25px rgba(92, 99, 105, .2);
    overflow-y: scroll;
    max-height: 90%;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}


form::-webkit-scrollbar {
    width: 0;
}

form hr {
    border: 2px solid white;
    margin-bottom: 20px;
}

form img {
    max-width: 50px;
    float: right;
    filter: brightness(10000%);
}

form h1,
h2,
h3,
h4 {
    font-size: 2em;
    margin-bottom: 10px;
    color: white;
}

label {
    font-size: 17px;
    font-weight: bold;
    color: white;
}

input[type=range] {
    width: 100%;
    margin-bottom: 10px;
}

input[type="checkbox"]:checked {
    border-color: #1da1f2;
    background-color: #1da1f2;
}

select {
    width: 100%;
    padding: 10px;
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 20px;
    border: 2px solid white;
    border-radius: 10px;
    color: white;
    outline: none;
    background: transparent;
    transition: box-shadow 0.3s ease-in-out;
}

select::-ms-expand {
    display: none;
}

select option {
    color: rgb(0, 0, 0);
}

select:focus {
    box-shadow: 0px 0px 10px 0px rgba(133, 133, 133, 0.7);
}

input[type=text],
input[type=email],
input[type=password],
input[type=number],
input[type=file],
input[type=date],
input[type=month],
input[type=week],
input[type=time],
input[type=tel],
input[type=url],
input[type=search],
input[type=search] {
    width: 100%;
    padding: 10px;
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 20px;
    border: 2px solid white;
    color: white;
    background: transparent;
    border-radius: 10px;
    outline: none;
    transition: box-shadow 0.3s ease-in-out;
}

input[type=text]:focus,
input[type=email]:focus,
input[type=password]:focus,
input[type=number]:focus,
input[type=file]:focus,
input[type=date]:focus,
input[type=month]:focus,
input[type=week]:focus,
input[type=time]:focus,
input[type=tel]:focus,
input[type=url]:focus,
input[type=search]:focus {
    box-shadow: 0px 0px 10px 0px rgba(133, 133, 133, 0.7);
}

input[type=button],
input[type=reset],
input[type=submit],
button {
    font-family: "Poppins", sans-serif;
    background: linear-gradient(to bottom left, #ff9966 0%, #ff5e62 100%);
    border-radius: 10px;
    border: none;
    color: white;
    font-size: 17px;
    padding: 10px 30px 10px 30px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    margin: 0 0 20px 0px;
    cursor: pointer;
    transition: 0.5s;
}

input::placeholder,
textarea::placeholder {
    color: white;
}

input[type=button]:hover,
input[type=reset]:hover,
input[type=submit]:hover,
button:hover {
    background: indigo;
}

textarea {
    width: 100%;
    resize: vertical;
    overflow: auto;
    min-height: 100px;
    height: auto;
    padding: 10px;
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 20px;
    border: 2px solid white;
    color: white;
    border-radius: 10px;
    background: transparent;
    outline: none;
    transition: box-shadow 0.3s ease-in-out;
}

textarea:focus {
    box-shadow: 0px 0px 10px 0px rgba(190, 190, 190, 0.7);
}

@media screen and (max-width: 767px) {

    .main,
    form {
        width: 100%;
        padding: 20px 20px 0px 20px;
        margin: 0 10px 0px 10px;
    }
}

.preloader {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preloader .loader {
    border: 15px solid #f3f3f3;
    border-top: 15px solid #4a18d3;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: pulse-rotate 1.5s infinite;
}

.hidden {
    visibility: hidden;
}

@keyframes pulse-rotate {
    0% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.2) rotate(180deg);
    }

    100% {
        transform: scale(1) rotate(360deg);
    }
}
