/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 3; /* Sit on top */
    padding-top: 50px; /* Location of the box */
    padding-bottom: 50px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 1px solid #b6b6b6;
    width: 40%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s
}

/* Add Animation */
@-webkit-keyframes animatetop {
    from {top:-300px; opacity:0} 
    to {top:0; opacity:1}
}
@keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}
  
.modal-header {
    padding: 16px 16px;
    background-color: #1a3225;
    color: white;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
    text-align: center;
}

#modal-device-name,
#modal-telid-position {
    font-size: 1.5rem;
    font-weight: bold;
    width: 90%;
    text-align: left;
}

/* The Close Button */
.close {
    color: white;
    float: right;
    font-size: 35px;
    font-weight: normal;
    margin-left: auto;
    width: 10%;
}
.close:hover, .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}
  
.modal-body-device {
    padding: 16px 16px;
    background-color: #c5c5c5;

    table {
        border-collapse: collapse;
        width: 100%;
      }
    td {
        text-align: center;
        width: 50%;
    }

    .dev-info {
        padding-top: 1.5rem;
        font-weight: bold;
        font-size: 2rem;
    }
}

.modal-footer {
    padding: 16px 16px;
    text-align: center;
    background-color: #1a3225;
    color: white;
}

.modal-footer-config-info {
    color: red;
    font-size: 1rem;
}

.model-config-section {
    font-size: 2rem;
    font-weight: bold;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
}







.modal-body-status {
    padding: 16px 16px;
    background-color: #c5c5c5;
    table {
        border-collapse: collapse;
        width: 100%;
      }
    td {
        text-align: left;
        width: 50%;
    }

    .dev-status-label {
        padding-top: 1rem;
        font-weight: bold;
        font-size: 1rem;
    }

    .dev-status-content {
        font-weight: lighter;
        font-size: 1.1rem;
    }

    #pos-lastupdate,
    #pos-status,
    #pos-serial,
    #pos-memory,
    #pos-starttime,
    #pos-stoptime,
    #pos-samplerate,
    #pos-battery,
    #pos-remarks {
        font-weight: normal;
    }

    #pos-serial {
        font-size: 1rem;
    }

    #telid-status-response {
        font-size: 1.0rem;
        color: black;
        width: 100%;
        padding-top: 1.5rem;
        text-align: center;
    }

    .dev-status-button {
        padding-top: 0.5rem;
        width: 50%;
        text-align: center;
    }
}


.modal-body-config {
    padding: 16px 16px;
    background-color: #c5c5c5;

    table {
        border-collapse: collapse;
        width: 100%;
      }
    td {
        text-align: left;
        width: 100%;
    }

    .dev-config-label {
        padding-top: 1rem;
        font-weight: bold;
        font-size: 1rem;
    }

    .dev-config-content {
        font-weight: lighter;
        font-size: 1.1rem;
    }

    #telid-config-start-time,
    #telid-config-stop-time,
    #telid-config-sample-rate,
    #telid-config-remarks {
        font-weight: bold;
        font-size: 1.1rem;
        width: 100%;
    }

    input[type="datetime-local"] {
        padding: 0;          /* Kein Innenabstand */
        margin: 0;           /* Kein Außenabstand */
        box-sizing: border-box; /* Padding/Border inklusive in der Breite */
        width: 100%;         /* Volle Breite nutzen */
        -webkit-appearance: none; /* Browser-Stil zurücksetzen (Chrome/Safari) */
        appearance: none;
    }

    #telid-config-response {
        font-size: 1.0rem;
        color: black;
        width: 100%;
        padding-top: 1rem;
        padding-bottom: 1rem;
        text-align: center;
    }

    .dev-config-label-button {
        width: 50%;
        text-align: center;
    }
}

.modal-button  {
    margin: 5px;
    white-space:nowrap;
	background-color: #0074AC;
	border: none;
	color: white;
	text-align: center;
	text-decoration: none;
	display: inline-block;
	font-size: 20px;
	cursor: pointer;
	min-width: 80%;
	height: 40px;
    width: 80%;
	border-radius: 12px;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}

@media screen and (max-width: 1600px) {
	.modal-content  {
		width: 60%;
	}
}

@media screen and (max-width: 1400px) {
	.modal-content  {
		width: 70%;
	}
}

@media screen and (max-width: 1200px) {
	.modal-content  {
		width: 70%;
	}
}

@media screen and (max-width: 1000px) {
	.modal-content  {
		width: 80%;
	}
}

@media screen and (max-width: 900px) {
	.modal-content  {
		width: 90%;
	}
}

@media screen and (max-width: 800px) {
	.modal-content  {
		width: 95%;
	}
}