.modal {
    display: none;
    position: absolute;
    width: 100%;
    top: 0;
    margin: auto;
    padding-top: 50px;
    height: 100%;
    z-index: 1000;
    background-color: rgba(29, 53, 87, 0.55);
    overflow: auto;
}

.modal-content {
    background-color: rgba(250, 250, 250, 0.55);
    margin: auto;
    padding: 0px 20px 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 700px;
    max-height: 85%;
    height: 85%;
}

.modal-body {
    background-color: rgba(250, 250, 250, 0.55);
}

.modal-page {
    min-height: 100vh;
}

.modal-page-content {
    padding-left: 30px;
    padding-right: 30px;

}

.modal-page-content h1,
.modal-page-content h2,
.modal-page-content h3,
.modal-page-content h4,
.modal-page-content h5,
.modal-page-content h6 {
    padding-top: 30px;
}

.modaliframe {
    width:100%;
    height:90%;
}

.modal-inner {
    position: relative;
    margin: 30px auto;
    width: 95%;
    max-height: 95%;
    height:95%;
}

.modalheading {
    color: rgba(29,53,87,0.9);
    float: left;
    font-size: 28px;
    font-weight: bold;
}

.close {
    color: #aaaaaa;
    background-color: rgba(29, 53, 87, 0.75);
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: rgba(29,53,87,1.0);
    background-color: #aaaaaa;
    text-decoration: none;
    cursor: pointer;
}

ol {
    text-align: left;
}

:root {
    --primary-color: #0D47A1;
    --secondary-color: #1565C0;
    --background-color: #1D3557;
    --light-background-color: #2c5079;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Arial', sans-serif;
    /*background-color: var(--background-color);*/
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: var(--background-color);
}

.background-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/background.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 50% 0%;
    z-index: 1;
    background-color: var(--background-color);
}

.audio-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.visualization-layer canvas {
    position: absolute;
    top: 65%;
    left: 0;
    z-index: 5;
    background-color: rgba(255, 255, 255, 0.0);
    width: 80%;
    height: 25%;
    margin-left: 10%;
    margin-right: 10%;
}

#play_button {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/playbutton.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 50% 0%;
    position: absolute;
    z-index: 20;
}

#stop_button {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/stopbutton.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 50% 0%;
    position: absolute;
    z-index: 20;
}

.button_overlay {
}

.overlay-layer {
    display:none;
    position: absolute;
    top: 30%;
    left: 50%;
    width: 75%;
    transform: translate(-50%, -50%);
    z-index: 15;
    background-color: rgba(255, 255, 255, 0.0);
}

.state-indicator {
    width: 200px;
    height: 200px;
    background: url('../images/state-indicator.png') no-repeat center center;
    background-size: contain;
    opacity: 0.7;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: var(--secondary-color);
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.airtime_player {
    background-color: #ffffff;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 5px;
    text-align: center;
}

.airtime_button {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.play_button, .stop_button {
    width: 50px;
    height: 50px;
    background-size: cover;
    cursor: pointer;
}

.play_button {
    background-image: url('../images/play-icon.png');
}

.stop_button {
    background-image: url('../images/stop-icon.png');
}

.hide_button {
    display: none !important;
}

.now_playing {
    font-weight: bold;
    color: #333;
}

.now_playing span {
    display: block;
    color: #666;
    font-weight: normal;
}

.navcontainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    max-width: 800px;
    z-index: 200;
}

.navcontent {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 5px;
}

.navbutton {
    height: 30px;
}

.settingsbutton {
    float: right;
}

.menubutton {
    float: left;
}

.button {
    display: block;
    border-radius: 10px; /* Adjust this value to increase or decrease the roundness */
    padding: 10px 20px;
    margin: 10px auto;
    font-size: 2em;
    text-align: center;
    cursor: pointer;
    background-color: var(--background-color);
    color: white;
    border: none;
    text-decoration: none;
}

.button:hover {
    background-color: var(--light-background-color);
}

.standaloneonly {
}

.notstandalone {
}

/* ------- UI ELEMENTS ------------- */


/* --Settings-- */

.setting-container {
    margin-top: 20px;
    display: flex;
    padding: 10px;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    overflow: auto;
}

.setting-description {
    color: rgba(29, 53, 87, 1.0);
    font-size: 2em;
}

/* --TOGGLE SWITCH-- */

/* Base styling for the container */
.toggle-switch {
    max-width: 75px;
}

/* Hide the default checkbox */
.toggle-checkbox {
    display: none;
}

/* Styling the toggle switch appearance */
.toggle-label {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    background-color: #ccc;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}

/* Circle inside the switch */
.toggle-label:after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
    transition: left 0.2s;
}

/* Change background and position of the circle when checked */
.toggle-checkbox:checked + .toggle-label {
    background-color: #4CAF50;
}

.toggle-checkbox:checked + .toggle-label:after {
    left: 26px;
}


