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

/* Global Scrollbar Styling - Consistent with Edit Question Modal Design */
*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
    background: rgba(52, 152, 219, 0.5);
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(52, 152, 219, 0.7);
}

/* Firefox scrollbar styling */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(52, 152, 219, 0.5) transparent;
}

body{
    background-color: rgb(11, 8, 16);
    animation: visibility .5s 1 linear;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

@keyframes visibility {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Mobile Optimization Styles */
@media (max-width: 768px) {
    /* Reset and base mobile styles */
    html {
        font-size: 16px;
    }
    
    body {
        font-size: 16px;
        line-height: 1.4;
    }
    
    /* Header mobile optimization */
    .header {
        min-height: auto;
        padding: 8px;
        margin-top: 1%;
        flex-direction: column;
        gap: 15px;
    }
    
    .header-cont {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0;
        margin: 0;
    }
    
    .header .header-cont .title {
        padding-top: 8px;
        padding-left: 0;
        width: 100%;
    }
    
    .header .header-cont .title p {
        font-size: 2.5em;
        padding: 15px 0px;
        margin: 0;
        text-shadow: 0px 0px 3px rgb(255, 255, 255), 0px 0px 10px rgb(255, 255, 255);
        text-align: center;
    }
    
    .login-buttons {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-right: 0;
        margin-top: 10px;
        width: 100%;
        justify-content: center;
        align-items: center;
    }
    
    .header .header-cont .login,
    .header .header-cont .admin-login {
        background-color: transparent;
        font-family: "Cinzel", "sans-serif";
        border: 2px white solid;
        border-radius: 8px;
        color: white;
        padding: 12px 20px;
        height: fit-content;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 1.1em;
        min-width: 150px;
        text-align: center;
        touch-action: manipulation;
    }
    
    .header .header-cont .login:hover,
    .header .header-cont .admin-login:hover {
        background-color: rgba(255, 255, 255, 0.1);
        transform: translateY(-1px);
    }
    
    /* Body mobile optimization */
    .body {
        display: flex;
        justify-content: center;
        align-items: center;
        height: auto;
        min-height: 40vh;
        padding: 20px 0;
    }
    
    .body-cont-anim {
        border-radius: 20px;
        margin: 10px;
        height: fit-content;
        padding: 8vw;
        width: 85vw;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: rgb(11, 8, 16);
        position: relative;
        box-sizing: border-box;
    }
    
    .body-cont-anim::after,
    .body-cont-anim::before {
        content: "";
        position: absolute;
        height: 100%;
        width: 100%;
        z-index: -1;
        background-image: conic-gradient(from var(--angle), transparent, rgb(255, 255, 255));
        padding: 1px;
        border-radius: 20px;
        animation: rotate 3s linear infinite;
    }
    
    .body-cont-anim::before {
        filter: blur(15px);
    }
    
    .body-cont-anim button {
        height: fit-content;
        padding: 15px 25px;
        border: rgb(255, 255, 255) 2px solid;
        color: rgb(255, 255, 255);
        border-radius: 8px;
        font-family: "Cinzel", "sans-serif";
        background-color: transparent;
        cursor: pointer;
        font-size: 1.2em;
        min-width: 200px;
        touch-action: manipulation;
        transition: all 0.3s ease;
    }
    
    .body-cont-anim button:hover {
        background-color: rgba(255, 255, 255, 0.1);
        transform: translateY(-2px);
    }
    
    /* Footer mobile optimization */
    .footer {
        height: auto;
        min-height: 10vh;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px 0;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    body {
        font-size: 14px;
    }
    
    .header .header-cont .title p {
        font-size: 2em;
        padding: 10px 0px;
    }
    
    .header .header-cont .login,
    .header .header-cont .admin-login {
        padding: 10px 16px;
        font-size: 1em;
        min-width: 120px;
        border-radius: 6px;
    }
    
    .body {
        min-height: 35vh;
        padding: 15px 0;
    }
    
    .body-cont-anim {
        width: 90vw;
        padding: 10vw;
        border-radius: 16px;
        margin: 8px;
    }
    
    .body-cont-anim button {
        padding: 12px 20px;
        font-size: 1.1em;
        min-width: 180px;
        border-radius: 6px;
    }
}

/* Prevent zoom on focus for mobile */
input, button, select, textarea {
    font-size: 16px;
    -webkit-appearance: none;
    max-width: 100%;
}

/* Touch-friendly improvements */
button, a, .clickable {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Improve scrolling performance */
@media (max-width: 768px) {
    * {
        -webkit-overflow-scrolling: touch;
    }
}

.header{
    background-color: transparent;
    display: flex;
    min-width: 100%;
    min-height: 20vh;
    margin-top: 2%;
}

.header-cont {
    display: flex;
    justify-content: space-between;
    min-width: 100%;
    padding: 0;
    margin: 0;
}

.header .header-cont .title{
    padding-top: 10px;
    padding-left: 8%;
}

.header-cont .title p{
    color: white;
    font-size: 4em;
    font-family: "Cinzel", "sans-serif";
    padding: 25px 0px;
    margin: 0px;
    text-shadow: 0px 0px 5px rgb(255, 255, 255), 0px 0px 15px rgb(255, 255, 255);
}

.login-buttons {
    display: flex;
    gap: 10px;
    margin-right: 2.5%;
    margin-top: 1%;
}

.header .header-cont .login,
.header .header-cont .admin-login {
    background-color: transparent;
    font-family: "Cinzel", "sans-serif";
    border: 2px white solid;
    border-radius: 5px;
    color: white;
    padding: 10px 10px;
    height: fit-content;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header .header-cont .login:hover,
.header .header-cont .admin-login:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}


.body {

    display: flex;
    justify-content: center;
    align-items: end;
    height: 50vh;
}

.body-cont-anim {
    border-radius: 24px;
    margin: 4px;
    height: fit-content;
    padding: 5vw;
    width: 40vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(11, 8, 16);
    position: relative;
}

.body-cont-anim::after ,.body-cont-anim::before{
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    z-index: -1;
    background-image: conic-gradient( from var(--angle), transparent, rgb(255, 255, 255));
    padding: 1px;
    border-radius: 24px;
    animation: rotate 3s linear infinite;
}

.body-cont-anim::before {
    filter: blur(15px);
}

/* ANGLE PROPERTY */
@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes rotate {
    0% {
        --angle: 0deg;
    }

    100% {
        --angle: 360deg;
    }
}

.body-cont-anim button {
    height: fit-content;
    padding: 10px;
    border: rgb(255, 255, 255) 1px solid;
    color: rgb(255,255,255);
    border-radius: 4px;
    font-family: "Cinzel", "sans-serif";
    background-color: transparent;
    cursor: pointer;
}

.footer {

    height: 20vh;
    display: flex;

}