html {
    font-size: 16px;
    background-color: black;
    position: relative;
    min-height: 100%;
}

/*@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}
*/

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}


body {
    /*    margin-bottom: 60px;
*/ background-color: black;
}

/*Cookie consent*/
.cookie-consent-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background-color: #222; 
    color: #fff; 
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    text-align: center;
    z-index: 1000;
    font-size: 0.95rem;
    line-height: 1.5;
}


.ControlPanelTabView {
    border: 1px solid lightgray;
    padding: 1%;
    border-radius: 3px;
}

    /* List formatting */
    .ControlPanelTabView ul {
        padding-left: 1.5rem;
    }

    .ControlPanelTabView li {
        margin-bottom: 0.5rem;
    }

.ControlPanelButton {
    /*font-weight: lighter;*/
    margin-bottom: 2%;
    width: 100%;
    border-radius: 3px;
    border-color: lightgrey;
}


.ControlPanelButtonFreeWidth {
    /*font-weight: lighter;*/
    margin-bottom: 2%;
    border-radius: 3px;
    border-color: lightgrey;
}


/* General container styling */
.CollapsibleContent {
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 1%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


/* Tab button row */
.ControlPanelTabButtons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5%;
    margin-bottom: 1%;
}

    /* Individual tab buttons */
    .ControlPanelTabButtons button {
        background-color: #e0e0e0;
        border: none;
        padding: 0.5% 1%;
        border-radius: 3px;
        margin: 2px;
        /*font-size: 1.5vw;*/
        font-size: 0.85rem;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

        .ControlPanelTabButtons button:hover {
            background-color: #d0d0d0;
        }

        .ControlPanelTabButtons button:focus {
            outline: none;
            box-shadow: 0 0 0 2px #007acc;
        }


/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.horizontal-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

    .horizontal-group label {
        margin-right: 5px;
        white-space: nowrap;
    }

    .horizontal-group .buttons {
        margin-left: 20px;
        display: flex;
        gap: 10px;
    }


/*Toggle button and patient ID label*/
.ToggleControlPanelButton {
    /*font-weight: lighter;*/
    width: 100%;
    border-radius: 3px;
    border-color: lightgrey;
}

.ShowAudiogramButton {
    /*font-weight: lighter;*/
    width: 100%;
    border-radius: 3px;
    border-color: lightgrey;
    margin-left: 5px;
}


.PatientIdLabel {
    /*font-weight: lighter;*/
    color: white;
    text-align: end;
    margin-right: 2%;
}

/*Audiometer space */
.AudiometerContainer {
    aspect-ratio: 3 / 1; 
    max-width: 98%;
    max-height: 99%;
    width: 98%;
    height: auto;
    margin-left: 1%;
    margin-right: 1%;
    margin-bottom: 1%;
    border-radius: 3px;
    cursor: pointer;
    user-select: none;
    box-sizing: border-box;
    display: block;
    font-size: 1.3vw;
    border: 2px solid #ccc;
    padding: 1%;
    background-color: #f9f9f9;
}

/* Audiometer text labels */
.LevelLabel {
    font-weight: bold;
    color: white;
    text-align: center;
    margin: 0.2em;
}

.LeftAlignedInfoLabel {
    font-weight: lighter;
    color: white;
    text-align: start;
    margin-left: 0.5em
}

.RightAlignedInfoLabel {
    font-weight: lighter;
    color: white;
    text-align: end;
    margin-right: 0.5em;
}

.LeftChannelLabel {
    font-weight: lighter;
    color: #333;
    text-align: start;
    margin: 0.1em;
}

.RightChannelLabel {
    font-weight: lighter;
    color: #333;
    text-align: end;
    margin: 0.1em;
}


/*Audiometer response lights*/

.lampR {
    height: 100%;
    width: 100%;
    border-radius: 10%;
    box-sizing: border-box;
    background: lightgrey;
    border-color: grey;
    display: block;
    color: white;
    border-block: double;
}

    .lampR.on {
        background: red;
        border-color: orange;
    }

.lampL {
    height: 100%;
    width: 100%;
    border-radius: 10%;
    box-sizing: border-box;
    background: lightgrey;
    border-color: grey;
    display: block;
    color: white;
    border-block: double;
}

    .lampL.on {
        background: blue;
        border-color: lightblue;
    }

/*Audiometer buttons*/
.button-without-lamps {
    position: relative;
    margin-top: 5%;
    margin-bottom: 5%;
    margin-left: 5%;
    margin-right: 5%;
    cursor: pointer;
    user-select: none;
    width: 90%;
    height: 90%;
    align-content: center;
    box-sizing: border-box;
    font-size: 3vw;
    border-radius: 10%;
    border-color: lightgrey;
}

.button-with-lamp {
    position: relative;
    margin-top: 5%;
    margin-bottom: 5%;
    margin-left: 5%;
    margin-right: 5%;
    padding-top: 2em; /* reserve space for lamps */
    padding-bottom: 1em;
    padding-left: 0em;
    padding-right: 0em;
    cursor: pointer;
    user-select: none;
    width: 90%;
    height: 90%;
    box-sizing: border-box;
    background-color: wheat;
    border-radius: 10%;
    border-color: lightgrey;
}

.lamp-container {
    position: absolute;
    top: 0.8em;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6em;
    justify-content: center;
    width: auto;
}

.buttonLamp {
    width: 0.9em;
    height: 0.9em;
    border-radius: 50%;
    background: gray;
    display: inline-block;
    text-align: center;
    line-height: 0.9em;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}

    .buttonLamp.on {
        background: yellow;
    }
    .buttonLamp.onbutdisabled {
        background: gray;
    }

    .buttonLamp1 {
        width: 0.9em;
        height: 0.9em;
        border-radius: 50%;
        background: gray;
        display: inline-block;
        text-align: center;
        line-height: 0.9em;
        color: white;
        font-weight: bold;
        flex-shrink: 0;
    }

    .buttonLamp1.on {
        background: red;
    }
    .buttonLamp1.onbutdisabled {
        background: gray;
    }

.buttonLamp2 {
    width: 0.9em;
    height: 0.9em;
    border-radius: 50%;
    background: gray;
    display: inline-block;
    text-align: center;
    line-height: 0.9em;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}

    .buttonLamp2.on {
        background: blue;
    }
    .buttonLamp2.onbutdisabled {
        background: gray;
    }


.StimButton {
    aspect-ratio: 1 / 1;
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: auto;
    margin-top: 5%;
    margin-bottom: 5%;
    margin-left: 5%;
    margin-right: 5%;
    padding: 1em;
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
    box-sizing: border-box;
    color: black;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: ButtonHighlight;
    border: 2px solid darkgray;
    border-color: darkgray;
}

    .StimButton.on {
        background: yellow;
        border-color: lightyellow;
    }


