@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&display=swap');


body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(45deg, #f0f0f0, #f0f0f0);
    height: 100vh;
    overflow: hidden;
}


.center-register {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 75vh;
    background: white;
    border-radius: 20px;
}
.center-register .input-group-text {
    width: 120px;
}
.error-block {
    width: 500px;
}
.center-register h2 {
    text-align: center;
    padding: 0 0 10px 0;
    border-bottom: 1px solid silver;

}

.center-register form {
    padding: 0 40px;
    box-sizing: border-box;
}


.center-auth {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    background: white;
    border-radius: 20px;
}

.center-auth h1 {
    text-align: center;
    padding: 0 0 20px 0;
    border-bottom: 1px solid silver;

}

.center-auth form {
    padding: 0 40px;
    box-sizing: border-box;
}



form .txt_field {
    position: relative;
    height: 8vh;
}

.txt_field input {
    width: 100%;
    padding: 0 5px;
    height: 8vh;
    font-size: 16px;
    border: none;
    background: none;
    outline: none;
}

.txt_field label {
    position: absolute;
    top: 50%;
    left: 5px;
    color: #adadad;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
    transition: .5s;
}

.txt_field span::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    width: 90%;
    height: 2px;
    background: #2691d9;
    transition: .5s;
}

.txt_field input:focus ~ label,
.txt_field input:valid ~ label {
    top: -5px;
    color: #2691d9;
}

.txt_field input:focus ~ span::before,
.txt_field input:valid ~ span::before {
    width: 100%
}

.pass {
    margin: -5px 0 20px 5px;
    color: #a6a6a6;
    cursor: pointer
}

.pass:hover {
    text-decoration: underline;
}

input[type="submit"] {
    width: 100%;
    height: 50px;
    border: 1px solid;
    background: #2691d9;
    border-radius: 25px;
    font-size: 18px;
    color: #e9f4fb;
    font-weight: 100;
    cursor: pointer;
    outline: none;
    margin: -5px 0;

}

input[type="submit"]:hover {
    border-color: #2691d9;
    transition: .5s;
}

.signup_link {
    margin: 10px 0;
    text-align: center;
    font-size: 16px;
    color: #666666;
    height: 6vh;

}

.signup_link a {
    color: #2691d9;
    text-decoration: none;

}

.signup_link a:hover {
    text-decoration: underline;
}


.input_field {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    background-clip: padding-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0.375rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.center-settings {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Изменение justify-content на flex-start */
    width: auto;
    max-width: 530px;
    background: white;
    border-radius: 20px;
    margin-top: 20px;
    margin-left: 35%;
    padding: 20px;
    max-height: 700px;
    box-sizing: border-box;
    overflow: hidden;
}


/* Apply styling to form elements */
.form-group {
    max-height: 500px; /* Set the desired maximum height for form elements */
    overflow-y: auto; /* Add a vertical scrollbar if content exceeds the max height */
}
.form-group label {
    margin-bottom: 10px; /* Set the desired margin bottom for labels */
}

.form-group input {
    margin-bottom: 10px; /* Set the desired margin bottom for input fields */
}

.center-settings h2 {
    text-align: center;
    padding: 0 0 10px 0;
    border-bottom: 1px solid silver;

}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease-in-out;
}

#openModalContainer {
    margin-top: -36px;
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 40%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Fade-in animation keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


.button-3 {
  appearance: none;
  background-color: #2ea44f;
  border: 1px solid rgba(27, 31, 35, .15);
  border-radius: 6px;
  box-shadow: rgba(27, 31, 35, .1) 0 1px 0;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-family: -apple-system,system-ui,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  padding: 6px 16px;
  position: relative;
  text-align: center;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: middle;
  white-space: nowrap;
}

.button-3:focus:not(:focus-visible):not(.focus-visible) {
  box-shadow: none;
  outline: none;
}

.button-3:hover {
  background-color: #2c974b;
}

.button-3:focus {
  box-shadow: rgba(46, 164, 79, .4) 0 0 0 3px;
  outline: none;
}

.button-3:disabled {
  background-color: #94d3a2;
  border-color: rgba(27, 31, 35, .1);
  color: rgba(255, 255, 255, .8);
  cursor: default;
}

.button-3:active {
  background-color: #298e46;
  box-shadow: rgba(20, 70, 32, .2) 0 1px 0 inset;
}

.center-settings form {
    padding: 0 40px;
    box-sizing: border-box;

}

.txt_field_settings input {
    position: relative;
    width: 30%;
    padding: 0 5px;
    height: 8vh;
    font-size: 16px;
    border: none;
    background: none;
    outline: none;
}

.txt_field_settings_font input {
    position: relative;
    width: 35%;
    padding: 0 5px;
    height: 8vh;
    font-size: 16px;
    border: none;
    background: none;
    outline: none;
}

form .txt_field_settings {
    position: relative;
}

.txt_field_settings input:focus ~ label,
.txt_field_settings input:valid ~ label {
    top: -5px;
    color: #2691d9;
}

.txt_field_settings input:focus ~ span::before,
.txt_field_settings input:valid ~ span::before {
    width: 100%
}

.settings-block {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.table-of-settings {
    position: relative;
    left: 15%;
    right: 10%
}

.submit-settings {
    position: relative;
    width: 45%;
}


.center-get-link {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 20vh;
    background: white;
    border-radius: 20px;
}

.center-get-link h2 {
    text-align: center;
    padding: 0 0 10px 0;
    border-bottom: 1px solid silver;

}

.center-get-link a {
    position: absolute;
    top: 65%;
    left: 50%;
    width: 50vh;
    transform: translate(-50%, -50%);
    text-align: center;
    text-decoration: none;
    color: lightslategrey;
    border-bottom: none;
}

.center-get-link input[type="submit"] {
    position: absolute;
    top: 85%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 50px;
    border: 1px solid;
    background: #2691d9;
    border-radius: 25px;
    font-size: 18px;
    color: #e9f4fb;
    font-weight: 100;
    cursor: pointer;
    outline: none;
    margin: -5px 0;

}


.center-send-document {
    margin: 50px auto;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.container-send-document {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f0f0;
}


.container-send-document {
    position: relative;
    width: 100%;
    height: 100vh;
}


.button-wrapper{
    display: flex;
    align-items: center;
    gap: 10px;
}
.center-send-document h2 {
    text-align: center;
    padding: 0 0 10px 0;
    border-bottom: 1px solid silver;

}

.submit-button {
     display: grid;
    margin-left: 65%;
}

.center-send-document input[name="load"] {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 50px;
    border: 1px solid;
    background: #2691d9;
    border-radius: 25px;
    font-size: 18px;
    color: #e9f4fb;
    font-weight: 100;
    cursor: pointer;
    outline: none;
    margin: -5px 0;

}
.center-send-document input[name="fix"] {
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 50px;
    border: 1px solid;
    background: #2691d9;
    border-radius: 25px;
    font-size: 18px;
    color: #e9f4fb;
    font-weight: 100;
    cursor: pointer;
    outline: none;
    margin: -5px 0;

}


.browse-button {
    position: absolute;
    top: 40%;
    left: 60%;
    transform: translate(-50%, -50%);

}


.center-results {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 50vh;
    background: white;
    border-radius: 20px;
}

.center-results h2 {
    text-align: center;
    padding: 0 0 10px 0;
    border-bottom: 1px solid silver;

}

.response {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
}


.center-profile {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 58vh;
    background: white;
    border-radius: 20px;
}

.center-profile h2 {
    text-align: center;
    padding: 0 0 10px 0;
    border-bottom: 1px solid silver;

}

.center-profile input[type="submit"] {
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 50px;
    border: 1px solid;
    background: #2691d9;
    border-radius: 25px;
    font-size: 18px;
    color: #e9f4fb;
    font-weight: 100;
    cursor: pointer;
    outline: none;
    margin: -5px 0;

}




.button-copy {
    width: 20px;
    height: 20px;
    text-align: center;
    padding: 5px;
    background-image: url("copy_icon.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;

}

.button-link {
    position: relative;
    height: 5vh;
    text-align: center;
    overflow: hidden;
    width: 80%;
}

.txt_field_param_name {
    position: relative;
    width: 50%;
    padding: 0 5px;
    height: 8vh;
    font-size: 16px;
    border: none;
    background: none;
    outline: none;
}




.txt_field input {
    border: 1px solid black;
    margin-top: 5px;
}

.modal {
    display: block;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.amazon-button {
background-color: #2691d9;
border: none;
color: #FFFFFF;
padding: 10px 20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin-left: 10px;
margin-top: 30px;
cursor: pointer;
border-radius: 4px;
transition-duration: 0.4s;
}

.amazon-button:hover {
background-color: #2691d9;
}

.amazon-button-text {
display: inline-block;
vertical-align: middle;
}

.oauth-btn {
    width: 80%;
    height: 30px;
    border: 1px solid;
    background: #1e347b;
    border-radius: 25px;
    font-size: 16px;
    color: #e9f4fb;
    font-weight: 100;
    cursor: pointer;
    outline: none;
    margin-top: 10px
}
.center-oauth {
    text-align: center;
}
.error-message {
    color: red;
    font-size: 0.8rem;
    margin-top: 5px;
}
