body {
    margin: 0;
    padding: 2rem;
    min-height: 100vh;
    background-image: url('../images/VertGlass2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.4);
    background-blend-mode: darken;
}

h1 {
    color: #0066ff;
    font-size: 4.5rem;
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 800;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    text-shadow: 
        2px 2px 0 white,
        -2px -2px 0 white,
        2px -2px 0 white,
        -2px 2px 0 white,
        0 0 8px rgba(0, 0, 0, 0.3);
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1rem;
    width: 80%;
    max-width: 400px;
    padding: 2rem;
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.button {
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.button:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.button img {
    width: 100%;
    height: auto;
    display: block;
}

.button-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 80%;
    max-width: 400px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-in;
}

.input-field {
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    box-shadow: 0 0 0 2px #0066ff;
}

.submit-button {
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background: #0066ff;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Update room-container for active room */
.room-container {
    width: 90%;
    max-width: 800px;
    margin: 1rem auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 300px);
    position: relative;
}

.users-container {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding-right: 1rem; /* Add padding for scrollbar */
}

.user-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-list li {
    background: rgba(255, 255, 255, 0.2);
    margin: 0.5rem 0;
    padding: 1rem;
    border-radius: 8px;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.user-list li:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

.user-list li.host {
    background: rgba(0, 102, 255, 0.3);
    font-weight: bold;
}

.button-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    position: sticky;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    margin: 0 -2rem -2rem -2rem;
    padding: 1rem 2rem;
    border-radius: 0 0 15px 15px;
}

.action-button {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background: #0066ff;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-button:hover {
    background: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

h2 {
    color: white;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Update join-container for join room */
.join-container {
    width: 90%;
    max-width: 800px;
    margin: 1rem auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 400px);
    position: relative;
}

.rooms-list {
    flex: 1;
    overflow-y: auto;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.join-container .submit-button {
    position: sticky;
    bottom: 0;
    margin: 0 -2rem -2rem -2rem;
    padding: 1rem;
    border-radius: 0 0 15px 15px;
}

/* Add custom scrollbar styling */
.rooms-list::-webkit-scrollbar,
.users-container::-webkit-scrollbar {
    width: 8px;
}

.rooms-list::-webkit-scrollbar-track,
.users-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.rooms-list::-webkit-scrollbar-thumb,
.users-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.rooms-list::-webkit-scrollbar-thumb:hover,
.users-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.room-button {
    padding: 1.2rem;
    margin: 0.2rem 0;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.room-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

.room-button.selected {
    background: rgba(0, 102, 255, 0.3);
    font-weight: bold;
}

.room-info {
    font-size: 0.9rem;
    opacity: 0.8;
} 