* {
    box-sizing: border-box;
}

html, body 
{
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
    background-color: #1a1a1a;
}

body 
{
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed; 
}

section {
    width: 100%;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    user-select: none;
    -webkit-user-select: none;
}


#home-title {
    margin-top: -30px;
}

#rooms-table {
    max-height: 100%;
    overflow-y: auto; 
    overflow-x: hidden; 
    display: flex;
    flex-direction: column;
    -webkit-overflow-scrolling: touch;
}

    #rooms-table::-webkit-scrollbar {
        width: 4px;
    }

.room-item {
    transition: transform 0.1s;
}
.room-item:active {
    transform: scale(0.98);
    background-color: #f0f0f0 !important;
}

@media (max-height: 660px) {
    section { padding: 1rem; }
    h2 { font-size: 1.2rem !important; }
    .form-select-lg { font-size: 0.9rem !important; padding: 0.4rem; }
    label { font-size: 0.8rem; }
}

#result-fake-name {
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

#game-results .card {
    border-radius: 20px;
}

/********************************** select*******************************************/
.custom-select-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    user-select: none;
}

.custom-select-trigger {
    background: #ffffff;
    padding: 10px 20px;
    font-size: 1.25rem;
    font-weight: 500;
    color: #212529;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-options {
    position: absolute;
    display: block;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid #dee2e6;
    background: #fff;
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 100;
    border-radius: 12px;
    margin-top: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.custom-select-wrapper.open .custom-options {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.custom-option {
    display: block;
    padding: 12px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f8f9fa;
    color: #212529 !important;
}

.custom-option:last-child { border: none; }

.custom-option:hover {
    background-color: #f1f3f5;
}

.custom-option.selected {
    background: #0d6efd;
    color: #fff;
}
/********************************** select*******************************************/