#settingsModal * {
  box-sizing: border-box;
}

.settingsModal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
}

.modal-content {
    background: rgb(34, 34, 34);
    padding: 20px;
    width: 340px;
    margin: 10% auto;
    border-radius: 10px;
    position: relative;
    color: white;
    box-shadow: 2px 2px 12px 5px black;
    outline: 2px solid rgb(104, 104, 104);

    max-height: 80vh;
    overflow-y: auto;
    overscroll-behavior: contain;    
}



.modal-content .heading{
    margin-bottom: 20px;
    text-decoration: underline;
}

.modal-content .close {
    position: absolute;
    right: 10px;
    top: 20px;
    cursor: pointer;
    background: red;
    padding: 5px 15px;
    color:white;
    font-weight: 1000;
    border-radius: 5px;
}

.setting {
    margin-bottom: 25px;
}

.modal-content label {
    display: block;
    margin-bottom: 6px;
    user-select: none;
}

.modal-content input[type="text"] {
    width: 100%;
    padding: 6px;
    border: 1px solid rgba(0, 0, 0, 0.555);
}


.teamName-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 3px;
}

.teamName-wrapper input {
    width: 100%;
    padding-right: 60px; /* space for counter */
    box-sizing: border-box;
}

.char-count {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #666;
    pointer-events: none; /* so it doesn't block typing */
}
/* 
.char-count {
    font-size: 12px;
    text-align: right;

    
} */

.settingDescription{
    font-size: 12px;
    text-align: left;
    color: #b8b8b8;
    user-select: none;
}

/* Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-top: 5px;
}

.switch input { display: none; }

.slider {
    position: absolute;
    cursor: pointer;
    background-color: #ccc;
    border-radius: 24px;
    inset: 0;
   
}

.slider:before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: transform .2s linear;
    
}

input:checked + .slider {
    background-color: #4CAF50;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Volume */
.volume-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.speaker {
    cursor: pointer;
    height: 25px;
    user-select: none;
}

.speaker:active{
    transform: scale(0.95); /* slight shrink */
}

#volumeSlider {
    flex: 1;
    cursor: pointer;
}

.muted {
    opacity: 0.5;
}

/* Buttons */
.settingsModalActionButtons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 50px;
}

.settingsModalActionButtons button {
    cursor: pointer;
    padding: 6px 18px;
    border-radius: 5px;
    transition: transform .15s; 
  
}

.settingsModalActionButtons button:active {    
  transform: translateY(2px);
}

#saveBtn{
    background-color: #4CAF50;
    color: white;
    text-shadow: 1px 1px 1px black;
    font-size: 1rem;
    font-weight: 500;
    padding-left: 20px;
    padding-right: 20px;
}

