/* --- CrowdConnect Event List Custom Styles --- */
.your-events-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 320px;
    max-height: 420px;
    overflow: hidden;
    box-sizing: border-box;
}

.your-events-header {
    font-size: 2.6rem;
    font-weight: 800;
    margin: 0.5rem 0 0.7rem 1.2rem; /* Move title further up */
    text-align: left;
    width: auto;
}

#events-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 3.5rem auto 1rem auto; /* Increase top margin to move list further down */
    max-height: 260px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #3b82f6 #18181b;
}

#events-list ul {
    width: 100%;
    padding: 0;
    margin: 0;
}

#events-list li {
    width: 98%;
    margin: 0.5rem auto;
    box-sizing: border-box;
}

/* Custom scrollbar for Webkit browsers */
#events-list::-webkit-scrollbar {
    width: 8px;
}
#events-list::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 6px;
}
#events-list::-webkit-scrollbar-track {
    background: #18181b;
    border-radius: 6px;
}
body 
{
    background: linear-gradient(135deg, #ff00cc 0%, #333399 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.disco-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 0;
    background: repeating-radial-gradient(circle at 20% 20%, #fff700 0px, #ff00cc 20px, #333399 40px);
    opacity: 0.15;
    pointer-events: none;
}

#title 
{
    font-size: 48px;
    text-shadow: 0 0 20px #ff00cc, 0 0 10px #fff700;
    color: #fff700;
    font-family: 'Ubuntu', sans-serif;
    margin-top: 5vh;
    margin-bottom: 2vh;
    text-align: center;
    z-index: 1;
}

#loginDiv
{
    font-size: 30px;
    width: 70%;
    margin-left: 15%;
    padding: 25px;
    background-color: #b2b2b2;
    background: rgba(255, 0, 204, 0.2);
    border-radius: 30px;
    box-shadow: 0 0 30px #33339999;
    width: 350px;
    margin: 0 auto;
    padding: 40px 30px;
    position: relative;
    z-index: 1;
    text-align: center;
}

#loggedInDiv
{
    font-size: 30px;
    width: 70%;
    margin-left: 15%;
    padding: 25px;
    background-color: #b2b2b2;
}

#accessUIDiv
{
    font-size: 30px;
    width: 70%;
    margin-left: 15%;
    padding: 25px;
    background-color: #b2b2b2;
}

.buttons, .disco-btn {
    font-size: 1.1em;
    border-radius: 25px;
    width: 70%;
    margin: 15px auto;
    font-family: 'Ubuntu', sans-serif;
    background: linear-gradient(90deg, #fff700 0%, #ff00cc 100%);
    color: #333399;
    font-weight: bold;
    border: none;
    box-shadow: 0 0 10px #ff00cc99;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.buttons:hover, .disco-btn:hover {
    background: linear-gradient(90deg, #ff00cc 0%, #fff700 100%);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 0 20px #fff70099;
}

#loginName
{
	font-size: 30px;
}
#loginPassword
{
	font-size: 30px;
}
#searchText
{
	font-size: 30px;
}
#colorText
{
	font-size: 30px;
}

input[type="text"], input[type="password"], input[type="email"] {
    border-radius: 25px;
    text-align: center;
    width: 80%;
    margin: 10px auto;
    font-size: 1.1em;
    padding: 10px;
    border: 2px solid #ff00cc;
    background: #fff;
    box-shadow: 0 0 10px #ff00cc44;
    font-family: 'Ubuntu', sans-serif;
}

#inner-title{
    display: inline-block;
    font-size: 0.8em;
    width: 90%;
    text-align: center;
    margin-left: 5%;
    margin-bottom: 2%;
    font-family: 'Ubuntu', sans-serif;
    color: #95060a;
}

#loginResult{
    display: inline-block;
    font-size: 0.8em;
    width: 90%;
    text-align: center;
    margin-left: 5%;
    margin-bottom: 2%;
    font-family: 'Ubuntu', sans-serif;
    color: #95060a;
}

#userName{
    display: inline-block;
    width: 80%;
    margin-left: 10%;
    text-align: center;
}

#logoutButton{
    width: 20%;
    margin-left: 40%;
}

select{
    width: 30%;
    margin-left: 35%;
    margin-top: 2%;
    font-size: 0.75em;
    font-family: 'Ubuntu', sans-serif;
}

#colorSearchResult{
    display: none;
}

#colorAddResult{
    display: inline-block;
    font-size: 0.8em;
    width: 90%;
    text-align: center;
    margin-left: 5%;
    margin-top: 2%;
    margin-bottom: 1%;
    font-family: 'Ubuntu', sans-serif;
    color: #95060a;
}

.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0; top: 0;
    width: 100vw; height: 100vh;
    background: rgba(51, 51, 153, 0.8);
    backdrop-filter: blur(3px);
}

.modal-content {
    background: #fff;
    margin: 10vh auto;
    padding: 30px 40px;
    border-radius: 30px;
    width: 350px;
    box-shadow: 0 0 30px #ff00cc99;
    text-align: center;
    position: relative;
}

.close {
    position: absolute;
    top: 10px; right: 20px;
    font-size: 2em;
    color: #ff00cc;
    cursor: pointer;
    font-weight: bold;
}