@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-padding-top: 2rem;
    scroll-behavior: smooth;
}

/*scroll bar color */
html::-webkit-scrollbar {
    width: 0.5rem;
    background: #f1eaff;
}

html::-webkit-scrollbar-thumb {
    background: #392467;
    border-radius: 5rem;
}

body {
    background: #f1eaff;
    color: #392467;
}

/*navi bar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 5%;
    background: rgba(241,234,255, .9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    position: relative;
    font-size: 20px; 
    color: #392467;
    text-decoration: none;
    font-weight: 600;
}

.logo::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #f1eaff;
    animation: showRight 1s ease forwards;
    animation-delay: 0.4s;
}

.navibar a {
    font-size: 16px; 
    text-decoration: none;
    font-weight: 500;
    margin-left: 20px; 
    transition: 0.3s;
}

/* Add a media query for smaller screens */
@media only screen and (max-width: 768px) {
    .header {
        padding: 20px 5%;
    }

    .logo {
        font-size: 18px;
    }

    .navibar a {
        font-size: 14px;
        margin-left: 15px;
        transition: 0.3s;
    }

    .navibar a:hover,
    .navibar a.active {
        color: #fdbf60;
    }

    .c-button {
        position: relative;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 150px;
        height: 100%;
        margin-right: 5px;
        background: #392467;
        border: 2px solid #392467;
        border-radius: 8px;
        font-size: 19px;
        color: #fdbf60;
        text-decoration: none;
        font-weight: 600;
        letter-spacing: 1px;
        z-index: 1;
        overflow: hidden;
        cursor: pointer;
        transition: 0.3s;
    }

    .c-button:hover {
        color: #392467 !important;
        background: #fdbf60 !important;
    }

    .c-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: 100%;
        background: #fdbf60;
        z-index: -1;
        transition: 0.5s;
    }

    .c-button:hover::before {
        width: 100%;
    }
}

/* Add a media query for larger screens */
@media only screen and (min-width: 768px) {

    .navibar a {
        transition: 0.3s;
    }

    .navibar a:hover,
    .navibar a.active {
        color: #fdbf60;
    }

    .c-button {
        position: relative;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 150px;
        height: 100%;
        margin-right: 5px;
        background: #392467;
        border: 2px solid #392467;
        border-radius: 8px;
        font-size: 19px;
        color: #fdbf60;
        text-decoration: none;
        font-weight: 600;
        letter-spacing: 1px;
        z-index: 1;
        overflow: hidden;
        cursor: pointer;
        transition: 0.3s;
    }

    .c-button:hover {
        color: #392467 !important;
        background: #fdbf60 !important;
    }

    .c-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: 100%;
        background: #fdbf60;
        z-index: -1;
        transition: 0.5s;
    }

    .c-button:hover::before {
        width: 100%;
    }
}

.r-container {
    margin-top: 5%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

form {
    background: white;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    padding: 2vw 4vw;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
}

form h3 {
    text-align: center;
    color: #392467;
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 10px; 
}

form p {
    font-size: 1vw;
}

form textarea {
    resize: none;
}

.chibi1-selector, .chibi2-selector, .regular-selector, 
.stylized-selector, .commu2-selector{
    display: none;
}

form input, form textarea, #c-type, #a1-type, 
#a2-type, #a3-type, #a4-type, #commu-type, #username {
    border: 0;
    margin: 10px 0;
    padding: 1vw; 
    outline: none;
    background: #e3e3e3;
    font-size: 1vw; 
    border-radius: 10px;
}

#c-type, #a1-type, #a2-type, #a3-type, #a4-type, #commu-type, #username {
    width: 100%;
}

/* Checkbox */

.checkbox-container {
    display: flex;
    align-items: center;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 8px;
}

/* Submit Button */

form button {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50%; 
    height: 100%;
    margin: 20px auto;
    background: #392467;
    border: 2px solid #392467;
    border-radius: 8px;
    font-size: 1vw;
    color: #FDBF60;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 1;
    overflow: hidden;
    cursor: pointer;
}

/* Added media query for smaller screens */
@media (max-width: 600px) {
    form {
        margin-top: 20%;
    }
    form button {
        width: 80%;
    }
}
    
form button:hover {
    color: #02265B;
}

form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #FDBF60;
    z-index: -1;
    transition: 0.5s;
}

form button:hover::before {
    width: 100%;
}

/* Footer */

.footer {
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background:#392467
}

.footer-text p {
    font-size: 1rem;
    color: #f1eaff;
    text-align: center;
}
    
@keyframes showRight {
    100% {
        width: 0;
    }
}