* {
    margin: 0;
    padding: 0;
}

body {
    transition: background-color 0.5s ease, color 0.5s ease;
    background: linear-gradient(to bottom right, #1c1c1c, #3c3c3c);
    animation: fadeInBody 1.5s ease-in-out;
}

.main-div {
    height: 90vh;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.form-div {
    border-radius: 10px;
    background-color: #2c2f33;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 50%;
    margin: 30px 0px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: fadeInForm 1.2s ease-out;
    position: absolute;
    top:-0%;
}

.pdf-div {
    display: none;
    position: absolute;
    left: 10;
    top: 100%;
    width: 100%;
}

iframe {
    background: #d3d3d3;
    width: 100%;
    height: 100vh;
    border: none;
}

.footer {
    text-align: center;
    position: absolute;
    top: 94%;
    width: 100%;
    color: #d3d3d3;
}

form {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2.5rem;
}

.in {
    border: solid #d3d3d3 1px;
    /* border: none; */
    width: 20rem;
    height: 2.5rem;
    border-radius: 10px;
    margin: 1rem 0;
    padding: 0 20px;
    font-size: 1.12rem;
    animation: slideIn 0.25s ease-in-out;
    opacity: 0;
    animation-fill-mode: forwards;
    background-color: #3c3f41;
    color: #d3d3d3;
}

.in:hover {
    box-shadow: 0 0 15px rgba(211, 211, 211, 0.5);
    transform: scale(1.05);
    transition: transform 0.2s, box-shadow 0.2s;
}
.in:focus{
    outline:none;
}

#btnSub {
    cursor: pointer;
    color: #ffffff;
    background-color: #356bcf;
    height: 2.8rem;
    width: 15rem;
    border-radius: 10px;
    font-size: 1.25rem;
    font-weight: 550;
    margin-top: 15px;
    border: solid #404eed 2px;
    transition: background-color 0.3s, transform 0.2s;
}

#btnSub:hover {
    background-color: #194fb5;
    transform: scale(1.1);
}

a {
    margin: 0;
    padding: 0;
    text-decoration: none;
    font-size: 16px;
    color: #7289da;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

h1 {
    letter-spacing: 3px;
    font-size: 45px;
    font-weight: 500;
    margin: 15px 0;
    margin-bottom: 0;
    animation: fadeInHeader 1.2s ease-out;
    color: #ffffff;
}

p {
    letter-spacing: 0.8px;
    font-size: 15px;
    margin-bottom: 5px;
    animation: fadeInHeader 1.5s ease-out;
    color: #d3d3d3;
}

@media (max-width: 431px) {
    .form-div {
        width: 95%;
    }

    .in {
        width: 90%;
    }

    h1 {
        letter-spacing: 0px;
        font-size: 30px;
    }

    p , a{
        letter-spacing: 0px;
        font-size: 12px;
    }

    #love {
        font-size: 12.5px !important; 
    }
    #style-chg{
        position: absolute;
        top: 3%;
        width: 35px !important;
        height: 35px !important;
        font-size: 5px !important; 
    }
    #theme{
        width:25px;
    }
   
}

@media (min-width: 432px) and (max-width: 825px) {
    .form-div {
        width: 90%;
    }

    .in {
        width: 90%;
    }
    #style-chg{
        position: absolute;
        top: 3%;
        width: 35px !important;
        height: 35px !important;
        font-size: 5px !important; 
        box-shadow: none;
    }
    #theme{
        width:25px;
    }
}
@media (min-width: 825px) and (max-width: 1025px) {
    .form-div {
        width: 65%;
    }

    .in {
        width:100%;
    }
   
}

/* Animations */
@keyframes fadeInBody {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInForm {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInHeader {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

#style-chg{
    cursor: pointer;
    margin-top: 15px;
    padding: 5px;
    width: 40px;
    height: 40px;
    font-size: 25px;
    border-radius: 50%;
    position: fixed;
    left: 85%;
    background: none;
    z-index: 100;
    box-shadow: 0 0 6px rgba(211, 211, 211, 0.5);
}

#theme{
    width:25px;
}