body {
    background-image: url('images/backgrounds/index_background.webp');
    background-color: #999999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#title_container {
    height: 40vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25vh;
    animation: dramaticZoom 1.5s cubic-bezier(0.17, 0.67, 0.22, 1.15) forwards;
    transform-origin: center;
}

@keyframes dramaticZoom {
    0% {
        transform: scale(0.2);
        opacity: 0;
    }
    70% {
        transform: scale(1.1);
        opacity: 1;
    }
    85% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

#title {
    height: 100%;
    width: auto;
    object-fit: contain;
    transition: transform 0.5s;
}

#title:hover{
    transform: scale(1.2);
    cursor: pointer;
}

#login_and_griffin_container{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
 
    position: fixed;
    bottom: 0;
    width: 100%;
    margin: 0;
    padding: 0;
}

#logInBtn{  
    opacity: 0;
    font-family: "Almendra", serif;
    color: rgb(211, 211, 211);
    height: 10vh;
    font-size: 3vh;
    animation: fadeIn 1s ease-in-out forwards;
    animation-delay: 0.8s;
    transition: 0.5s;
    z-index: 100;
    position: relative;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 1));
}

#logInBtn:hover{
    transform: scale(1.2);
    cursor: pointer;
}

#logInBtn::after {
    content: '';
    position: absolute;
    top: -25px;
    left: -25px;
    right: -25px;
    bottom: -25px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 30%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    animation: blinkPulse 4s infinite;
}

@keyframes blinkPulse {
    0% { transform: scale(0.9); opacity: 0.3; }
    20% { transform: scale(0.95); opacity: 0.9; }
    30% { transform: scale(1.0); opacity: 0.2; }
    40% { transform: scale(1.05); opacity: 1; }
    50% { transform: scale(1.0); opacity: 0.3; }
    60% { transform: scale(0.95); opacity: 0.8; }
    70% { transform: scale(1.05); opacity: 0.2; }
    80% { transform: scale(1.0); opacity: 0.9; }
    100% { transform: scale(0.9); opacity: 0.3; }
}

#registerBtn{
    opacity: 0;
    font-family: "Almendra", serif;
    color: rgb(211, 211, 211);
    height: 10vh;
    font-size: 3vh;
    animation: fadeIn 1s ease-in-out forwards;
    animation-delay: 0.8s;
    transition: 0.5s;
    z-index: 100;
    position: relative;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 1));
}   

#registerBtn:hover{
    transform: scale(1.2);
    cursor: pointer;
}

#registerBtn::after {
    content: '';
    position: absolute;
    top: -25px;
    left: -25px;
    right: -25px;
    bottom: -25px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 30%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    animation: blinkPulse 4s infinite;
    opacity: 1.5;
    transform: scale(1.2);
}

#griffin {
    opacity: 0;
    height: 40vh;
    cursor: pointer;
    margin-bottom: 0;
    z-index: 1;
    animation: fadeIn 2s ease-in-out forwards;
    animation-delay: 0.6s;
    transition: 1s;
}

#griffin:hover {
    transform: scale(1.5) translateY(-6vh);
   cursor: default;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}






























































































































/* GLOW ON HOVER CODE --------------------------------------------------------------------------------------- */

.glow-on-hover {
    width: 220px;
    height: 50px;
    border: none;
    outline: none;
    color: #fff;
    background: #111;
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 10px;
}

.glow-on-hover:before {
    content: '';
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    position: absolute;
    top: -2px;
    left:-2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: 10px;
}

.glow-on-hover:active {
    color: #000
}

.glow-on-hover:active:after {
    background: transparent;
}

.glow-on-hover:hover:before {
    opacity: 1;
}

.glow-on-hover:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #111;
    left: 0;
    top: 0;
    border-radius: 10px;
}

@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}




#logo{
    margin-top: 20px;
    transition: transform 0.3s;
    opacity: 0; 
    animation: fadeIn 1s ease-in-out forwards; 
    border: #00ffd500;
    border-width: 1px;
    border-style: solid;
    border-radius: 50%;
}

#logo:hover{
    transform: scale(1.2);
    cursor: pointer;
   
   
}

#hello_guy_container {
    margin-right: 100px;
    position: relative;
    width: 35vh;
    height: 35vh;
}

#hello_guy_gif {
    position: absolute;
    top: 40%;
    left: 45%;
    transform: translate(-50%, -50%);
    height: 140%;  /* Adjust this value to make the GIF larger */
    width: auto;
    object-fit: contain;
    cursor: pointer;
    z-index: 1;
    display: none;
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

#hello_guy_gif {
    display: none;
}



@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Global HTML and Body Settings */
html, body {
    margin: 0;
    padding: 0;
    overflow: hidden; /* Prevents scrollbars */
    width: 100vw;
    height: 100vh;
    position: fixed; /* Ensures no scrolling on mobile */
}

/* Completely disable the UserSpice message system */
.usmsgblock, 
body > #errUserSpiceMessages, 
body > #valErrUserSpiceMessages,
body > #msgUserSpiceMessages,
body > #genMsgUserSpiceMessages,
body > #valSucUserSpiceMessages,
body > .alert,
body > .show.d-none {
    display: none !important;
}

/* Hide all close buttons outside containers */
body > .btn-close, 
body > .close,
body > button.close {
    display: none !important;
}

/* Our custom error message in the modal */
#custom-error-message {
    background-color: rgba(180, 0, 0, 0.9);
    border: 2px solid gold;
    color: white;
    font-family: 'Almendra', serif;
    font-size: 16px;
    text-shadow: 1px 1px 2px black;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

/* Style for the close button on our custom error */
#custom-error-message .close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    padding: 0 5px;
    cursor: pointer;
}



/* Simple Modal Styling - Medieval Theme for The Kingdom of English */

/* Modal Wrapper - Full Screen with Flex Centering */
#loginModalWrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Main Modal Container */
#loginModal {
    background-color: #f9f3e0;
    border: 0.3vh solid #b8860b;
    border-radius: 1vh;
    box-shadow: 0 0 3vh rgba(0, 0, 0, 0.7);
    font-family: 'Almendra', serif;
    color: #3a3222;
    width: 60vh;
    min-width: 300px;
    max-width: 600px;
   
    position: relative;
    flex-shrink: 0;
}

/* Modal Header */
#modalHeader {
    background: linear-gradient(to right, #b8860b, #e3c06c, #b8860b);
    border-bottom: 0.3vh solid #8b4513;
    padding: 2vh;
    color: #3a1e08;
    font-weight: bold;
    border-top-left-radius: calc(1vh - 0.3vh);
    border-top-right-radius: calc(1vh - 0.3vh);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#modalHeader b {
    font-size: clamp(10px, 3vh, 30px);
    text-shadow: 0.1vh 0.1vh 0.2vh rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1vh;
    margin: 0;
}



/* Modal Body */
#modalBody {
    padding: 2.5vh;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1IiBoZWlnaHQ9IjUiPgo8cmVjdCB3aWR0aD0iNSIgaGVpZ2h0PSI1IiBmaWxsPSIjZjlmM2UwIj48L3JlY3Q+CjxwYXRoIGQ9Ik0wIDVMNSAwWk02IDRMNCA2Wk0tMSAxTDEgLTFaIiBzdHJva2U9IiNiZWIwOTUiIHN0cm9rZS13aWR0aD0iMSI+PC9wYXRoPgo8L3N2Zz4=');
}

/* Form Elements */
#loginForm {
    width: 100%;
}

#usernameField, #passwordField {
    margin-bottom: 2vh;
}

#usernameLabel, #passwordLabel {
    display: block;
    color: #3a3222;
    font-weight: bold;
    font-size: clamp(10px, 2.5vh, 30px);
    margin-bottom: 0.8vh;
}

#username, #password {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    border: 0.15vh solid #8b4513;
    color: #3a3222;
    font-family: 'Almendra', serif;
    padding: 1.5vh 2vh;
    border-radius: 0.8vh;
    letter-spacing: 0.05vh;
    font-size: clamp(10px, 3vh, 30px);
    line-height: 1.5;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-sizing: border-box;
}

#username:focus, #password:focus {
    background-color: #fff;
    border-color: #b8860b;
    outline: 0;
    box-shadow: 0 0 0 0.3vh rgba(184, 134, 11, 0.25);
}

/* Password Input Group */
#passwordInputGroup {
    display: flex;
    align-items: stretch;
}

#passwordInputGroup #password {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

#togglePassword {
    display: flex;
    align-items: center;
    padding: 1.5vh;
    background-color: #b8860b;
    border: 0.15vh solid #8b4513;
    border-left: 0;
    border-top-right-radius: 0.8vh;
    border-bottom-right-radius: 0.8vh;
    cursor: pointer;
    color: white;
}

#togglePassword i {
    color: #fff;
}

/* Submit Button */
#loginSubmitBtn {
    width: 100%;
    background: linear-gradient(to bottom, #b8860b, #8b4513);
    border: 0.15vh solid #6b3300;
    color: #fff;
    font-family: 'Almendra', serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1vh;
    padding: 1.5vh 2vh;
    border-radius: 0.8vh;
    font-size: clamp(10px, 3vh, 30px);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1vh;
}

#loginSubmitBtn:hover {
    background: linear-gradient(to bottom, #d4a624, #a05c1b);
    border-color: #8b4513;
    transform: scale(1.02);
}

#loginSubmitBtn:focus {
    box-shadow: 0 0 0 0.4vh rgba(184, 134, 11, 0.5);
}

/* Modal Footer */
#modalFooter {
    padding: 1.5vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: clamp(10px, 2vh, 30px);

}

#modalFooter a {
    color: #8b4513;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

#modalFooter a:hover {
    color: #362700;
    text-decoration: underline;
}

/* Decorative Border Elements */
#loginModal::before,
#loginModal::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 1.5vh;
    background: repeating-linear-gradient(
        90deg,
        #b8860b,
        #b8860b 1.5vh,
        transparent 1.5vh,
        transparent 3vh
    );
    left: 0;
}

#loginModal::before {
    top: -0.8vh;
}

#loginModal::after {
    bottom: -0.8vh;
}

/* Google Login Styling */
.separator {
    font-family: 'Almendra', serif !important;
    font-size: clamp(8px, 2.5vh, 20px) !important;
    color: #000000 !important;
    font-weight: bold;
    background: linear-gradient(to right, #e3c06c, #f9f3e0, #e3c06c) !important;
    border: 0.15vh solid #b8860b !important;
    text-shadow: 0.1vh 0.1vh 0.2vh rgba(255, 255, 255, 0.5);
    margin: 1.5vh 0 !important;
}

.userspice-social-logins-item {
    background: linear-gradient(to right, #f5f0e8, #ffffff) !important;
    border: 0.15vh solid #b8860b !important;
    border-radius: 0.8vh !important;
    padding: 1vh 2vh !important;
    margin: 0.5vh 0 !important;
    height: auto !important;
    min-height: 4vh !important;
    transition: all 0.3s ease !important;
}

.userspice-social-logins-item:hover {
    background: linear-gradient(to right, #e3c06c, #f9f3e0) !important;
    transform: scale(1.02) !important;
    box-shadow: 0 0 1vh rgba(184, 134, 11, 0.3) !important;
}

.userspice-social-parent {
    gap: 1vh !important;
}

.userspice-social-logins-icon {
    background-color: transparent !important;
    padding: 0 !important;
}

.userspice-social-logins-icon-sized {
    width: 3vh !important;
    height: 3vh !important;
}



/* If text already exists, style it */
.userspice-social-child {
    font-family: 'Almendra', serif !important;
    font-size: clamp(10px, 2.2vh, 22px) !important;
    color: #3a3222 !important;
    font-weight: bold !important;
    text-shadow: 0.1vh 0.1vh 0.2vh rgba(255, 255, 255, 0.5) !important;
}


