@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@500;600;700&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'Open Sans', sans-serif;
}

body {
    background-image: url(./Images/back2.png);
    background-repeat: no-repeat;
    background-size: auto 100%;
    height: 100vh;
}

.flex {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mr-7 {
    max-width: 1250px;
    margin: 0 7%;
    width: 100%;
}

.container {
    width: 100%;
    height: 100%;
    flex-direction: column;
}

.main {
    backdrop-filter: blur(3px);
    flex-direction: column;
    align-items: start;
    justify-content: start;
    background: rgba(255, 255, 255, 0.27);
    height: 100%;
    position: absolute;
    right: 0;
    box-shadow: -25px 0 20px -20px rgba(0, 0, 0, 0.45);
    width: 40%;
    padding: 5%;
    border-radius: 1rem 0 0 1rem;
    overflow-y: scroll;
}

.main::-webkit-scrollbar{
    width: 1px;
}

.title-box h1 {
    font-size: 2rem;
}

.title-box a {
    font-size: 1.25rem;
    text-decoration: none;
    color: #000;
    font-weight: 600;
}

.cred-box {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    margin-top: 10%;
    width: 100%;
}

.caret-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: #3498DB;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    user-select: none;
    width: 80%;
    margin-top: 2%;
}

.caret-icon {
    transition: transform 0.3s;
}

.caret-button.clicked .caret-icon {
    transform: rotate(90deg);
}

.caret-button.clicked {
    background-color: #0056b3;
}

.cred-container {
    display: none;
    flex-direction: column;
    align-items: center;
    margin-top: 5px;
    justify-content: center;
    background: #FFF;
    width: 80%;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.4), 0px 7px 13px -3px rgba(0, 0, 0, 0.3), inset 0px -3px 0px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.cred-container.show {
    opacity: 1;
    transform: scale(1);
    display: flex;
}

.cred-container input {
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    outline-offset: 1px;
    outline-color: #3498DB;
    outline-width: 0.25px;
    background: #F2F3F4;
    border-radius: 5px;
    border: 0.5px solid #DDD;
}

.cred-btn {
    width: 40%;
    margin-top: 3%;
    padding: 10px 5px;
    background: #2ECC71;
    border: none;
    border-radius: 7px;
    color: #fff;
    cursor: pointer;
    user-select: none;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
}

.cred-btn:active {
    background: #1e8549;
}




/* =================== RESPONSIVE =========================== */


@media (max-width: 1200px) {
    .main {
        background: rgba(255, 255, 255, 0.57);
        backdrop-filter: blur(15px);
        width: 45%;
    }
}

@media (max-width: 1018px) {
    .caret-button{
        width: 100%;
        margin-bottom: 2.7%;
    }

    .cred-container{ 
        padding-top: 1.51rem;
        width: 100%; 
    }
}

@media (max-width: 730px) {

    body{
        background-position: center;
        background-size: cover;
    }

    .main {
        position: absolute;
        top: 0;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: 0px 25px 20px -20px rgba(0, 0, 0, 0.45);
        border-radius: 0 0 2rem 2rem;
    }

    .title-box{
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .caret-button{
        width: 100%;
        margin-bottom: 0.5%;
    }
    
    .cred-box{
        align-items: center;
        margin-top: 2%;
    }

    .caret-button{ 
        padding: 15px 20px;
        font-size: 1rem;
    }
}