* {
    margin: 0;
    padding: 0;
}

body {
    background-color: #e8e8e8;
    overflow: hidden;
}

.container {
    width: 100%;
    height: 100vh;
    display: grid;
    place-items: center;
    overflow: hidden;

}

.form-container {
    display: grid;
    /* grid-template-columns: 250px 300px;
    grid-template-rows: 420px; */
    grid-template-columns: 315px 484px;
    grid-template-rows: 425px;
}

/* side info cantainer here  */
.info {
    display: grid;
    place-items: center;
    background-color: #34568b;
    border-radius: 15px 0px 0px 15px;
}

.info .text {
    color: white;
    margin: 30px 0 0 20px;
    letter-spacing: 2px;
    margin-left: 28px;
}

.info .text span {
    line-height: 1.6;
}

.info .social-button {
    margin-top: 15px;
}

.info .social-button i {
    font-size: 23px;
    margin-left: 31px;
    color: white;
}

.info .social-button i:hover {
    color: red;
    scale: 1.5;
}

/* form info start here  */

form {
    background-color: white;
    border-radius: 0px 15px 15px 0px;
    /* display: flex;
    */

}

.input-control {
    width: 100%;
    /* margin: 4px 0px 0px 10px; */
    margin-left: 5px;
    margin-right: 0px;
    margin-top: 10px;
    margin-bottom: 10px;
    position: relative;


}

.inputct2 {

    width: 100%;
    /* margin: 4px 0px 0px 10px; */
    margin-left: 0px;
    margin-right: 0px;
    margin-top: 10px;
    margin-bottom: 10px;
    position: relative;
}

.book-1 {
    display: flex;
    margin-left: 5px;
    margin-right: 5px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.book-2 {
    display: flex;
    margin-left: 5px;
    margin-right: 5px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.book-3 {
    display: flex;
    margin-left: 5px;
    margin-right: 5px;
    margin-top: 10px;
    margin-bottom: 10px;
}

#mylist {
    outline: none;
    border: none;
    width: 90%;
    font-size: 14px;
    font-weight: 200;
    padding-top: 0px;
    margin-top: 1px;
    margin-left: 7px;
    margin-bottom: 20px;
    border-bottom: 1px solid black;
    background-color: #ffff;
}

form label {
    color: black;
    font-size: 16px;
    position: absolute;
    top: 6px;
    left: 8px;
    padding: 0px 5px;
    pointer-events: none;
    transition: 0.3s;

}

/* click action or focus info start here  */
.book-ctl:not(:placeholder-shown).book-ctl:not(:focus)~.labelclass,
.book-ctl:focus~.labelclass {
    top: -17px;
    background-color: #ffff;
    /* border: 2px solid red; */

}
 #mylist::placeholder{
    background-color: #ffff;
 }
 /* #mylist:focus{
    background-color: red;
 }  */


form input,
form textarea {
    width: 80%;
    border: 0;
    outline: 0;
    border-bottom: 1px solid black;
    padding: 3px 0;
    font-size: 16px;
    background-color: transparent;
    color: black;
    padding-left: 5px;
}

form textarea {
    resize: none;
    width: 87%;
    font-size: 16px;
    padding: 10px;
    margin: 10px;
    height: 90px;
}

form button {
    width: 60%;
    padding: 4px 0;
    background-color: #34568b;
    font-size: 20px;
    border-radius: 10px;
    cursor: pointer;
    color: white;
    border: 2px solid #34568b;
    outline: none;
}

#mybtn {
    display: flex;
    align-items: center;
    justify-content: center;
}

form button:hover {
    background-color: rgb(22, 43, 233);
    border: 2px solid rgb(22, 43, 233);
}

/* Chrome, Safari, Edge, Opera  */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox   */
input[type=number] {
    -moz-appearance: textfield;
}

/* screen media css start here  */
@media only screen and (max-width: 850px) {

    body {
        overflow: visible;
    }

    .container {
        margin-top: 30px;
        overflow: visible;
    }


    .form-container {
        grid-template-columns: 140%;
        grid-template-columns: 52% 75%;
        margin-right: 50px;
    }

    .info {
        border-radius: 15px 0px 0px 15px;

    }

    .info .social-button i {
        padding-bottom: 20px;
    }

    form {
        border-radius: 0px 15px 15px 0px;
    }
}

@media only screen and (max-width: 700px) {

    body {
        overflow: visible;
    }

    .container {
        margin-top: 30px;
        overflow: visible;
    }


    .form-container {
        grid-template-columns: 140%;
        grid-template-rows: 52% 60%;
        margin-right: 100px;
    }

    .info {
        border-radius: 15px 15px 0px 0px;

    }

    .info .social-button i {
        padding-bottom: 20px;
    }

    form {
        border-radius: 0px 0px 15px 15px;
    }
}

@media screen and (max-width: 462px) {

    .form-container {
        grid-template-columns: 140%;
        grid-template-rows: 52% 60%;
    }

}

@media screen and (max-width: 362px) {

    .form-container {
        grid-template-columns: 140%;
        grid-template-rows: 48% 60%;
        margin-left: 10px;
        margin-right: 5px;
    }

    .book-1 {

        flex-direction: column;
    }

    .book-2 {

        flex-direction: column;
    }

    .book-3 {

        flex-direction: column;
    }

}

.successpack {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.successinfo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: white;
    height: 500px;
    width: 600px;
    border-radius: 30px;

}

.successinfo h3 {
    font-size: xx-large;
}

.successinfo P {
    color: black;
    font-size: large;
    margin: 30px 0 0 20px;
    letter-spacing: 2px;

}


/* .success-checkmark codes start here  */




.main-container {
    width: 100%;
    height: 40vh;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
}

.check-container {
    width: 10.25rem;
    height: 11.5rem;
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: space-between;
}

.check-container .check-background {
    width: 100%;
    height: calc(100% - 1.25rem);
    background: linear-gradient(to bottom right, #5de593, #41d67c);
    box-shadow: 0px 0px 0px 65px rgba(255, 255, 255, 0.25) inset, 0px 0px 0px 65px rgba(255, 255, 255, 0.25) inset;
    transform: scale(0.84);
    border-radius: 50%;
    animation: animateContainer 0.75s ease-out forwards 0.75s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.check-container .check-background svg {
    width: 65%;
    transform: translateY(0.25rem);
    stroke-dasharray: 80;
    stroke-dashoffset: 80;
    animation: animateCheck 0.35s forwards 1.25s ease-out;
}

.check-container .check-shadow {
    bottom: calc(-15% - 5px);
    left: 0;
    border-radius: 50%;
    background: radial-gradient(closest-side, #49da83, transparent);
    animation: animateShadow 0.75s ease-out forwards 0.75s;
}

@keyframes animateContainer {
    0% {
        opacity: 0;
        transform: scale(0);
        box-shadow: 0px 0px 0px 65px rgba(255, 255, 255, 0.25) inset, 
        0px 0px 0px 65px rgba(255, 255, 255, 0.25) inset;
    }

    25% {
        opacity: 1;
        transform: scale(0.9);
        box-shadow: 0px 0px 0px 65px rgba(255, 255, 255, 0.25) inset,
         0px 0px 0px 65px rgba(255, 255, 255, 0.25) inset;
    }

    43.75% {
        transform: scale(1.15);
        box-shadow: 0px 0px 0px 43.334px rgba(255, 255, 255, 0.25)
         inset, 0px 0px 0px 65px rgba(255, 255, 255, 0.25) inset;
    }

    62.5% {
        transform: scale(1);
        box-shadow: 0px 0px 0px 0px rgba(255, 255, 255, 0.25) inset,
         0px 0px 0px 21.667px rgba(255, 255, 255, 0.25) inset;
    }

    81.25% {
        box-shadow: 0px 0px 0px 0px rgba(255, 255, 255, 0.25) inset, 
        0px 0px 0px 0px rgba(255, 255, 255, 0.25) inset;
    }

    100% {
        opacity: 1;
        box-shadow: 0px 0px 0px 0px rgba(255, 255, 255, 0.25) inset,
         0px 0px 0px 0px rgba(255, 255, 255, 0.25) inset;
    }
}

@keyframes animateCheck {
    from {
        stroke-dashoffset: 80;
    }

    to {
        stroke-dashoffset: 0;
    }
}

@keyframes animateShadow {
    0% {
        opacity: 0;
        width: 100%;
        height: 15%;
    }

    25% {
        opacity: 0.25;
    }

    43.75% {
        width: 40%;
        height: 7%;
        opacity: 0.35;
    }

    100% {
        width: 85%;
        height: 15%;
        opacity: 0.25;
    }
}