@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@200;300;400;600;800&display=swap');

html, body{
    margin: 0;
    border: 0;
    font-family: 'Barlow', sans-serif;
    color: #2f2f2f;
}

.greentext{
    color:#1f8c1f;
}

.redtext{
    color:#9c1616;
}

#navbar{
    position:absolute;
    top:0;
    left:0;
    right:0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-items: center;
    padding-left:20px;
    background-color: #d37a2c;
    border-bottom: 2px solid #ab6d34;
    height:50px;
    line-height: 50px;
    font-weight: 600;
    font-size: 15pt;
    color:WHITE;
}

#nav_title{
    flex-grow: 4
}

#nav_title_mobile {
    display: none;
    flex-grow: 4;
}

#nav_menu{
    font-size: 32px;
    
}

#nav_menu a{
    text-decoration: none;
    color:WHITE;
    padding-right:20px;
}

#nav_menu a:active, #nav_menu a:hover, #nav_menu a:visited{
    text-decoration: none;
    color:WHITE;
}

#container{
    padding-top:50px;
    height:100vh;
    width:100vw;
}

#formContainer{
    display: flex;
    align-items: center;
    justify-items: center;
    width: 100%;
    height:100%;
}

#userLoginForm{
    width:300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#userLoginForm .form-control{
    height:40px;
    line-height: 40px;
    font-size: 14pt;
    margin:8px;
    padding-left: 8px;
}

#userLoginForm .form-check{
    height:30px;
    line-height: 30px;
    font-size: 11pt;
    margin:8px;
}

#userLoginForm .form-btn{
    padding:8px;
    line-height: 30px;
    font-size: 15pt;
    margin:16px;
}

#userAlarmsForm .form-btn{
    padding:8px;
    line-height: 30px;
    font-size: 15pt;
    margin:16px;
}

.plant_status, .machine_status {
    display: flex;
    flex-direction: row;
}

.plant_weather{
    display: flex;
    flex-direction: row;
    align-items: center;
    /*justify-content: center;
    padding:10px;
    margin-top:15px;
    margin-bottom:15px;
    background-color: rgb(20,20,20,0.3);
    */
}

.status_text{
    padding-right: 12px;
}

.led-on {
	width: 16px;
	height: 16px;
	background-color: #1f8c1f;
	border-radius: 50%;
    margin-top: 2px;
}

.led-off {
	width: 16px;
	height: 16px;
	background-color: #9c1616;
	border-radius: 50%;
    margin-top: 2px;
}

/* SETTINGS */

#mainContainerSettings {
    display: flex;
    align-items: center;
    justify-items: center;
    width: 100%;
    height: 100%;
    margin-top: 250px;
}

#formContainerSettings {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
}

#formContainerAlarms {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    justify-content: center;
}

li {
    margin-top: 10px;
}

.switch-site, .switch-cabin, .switch-sensor {
	position: relative;
	display: inline-block;
	width: 60px;
    height: 34px;
    zoom: 0.8;
	-ms-zoom: 0.6;
	-webkit-zoom: 0.6;
	transform: scale(0.8);
	-moz-transform: scale(0.6);
	-webkit-transform: scale(0.6);
	transform-origin: left;
	-moz-transform-origin: left;
	-webkit-transform-origin: left;
}

.switch-site input, .switch-cabin input, .switch-sensor input {
	width: 0;
    height: 20px;
}

.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0; 
	background-color: #bfbfc0;
	-webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
	position: absolute;
	content: "";
	height: 26px;
	width: 26px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	-webkit-transition: .4s;
	transition: .4s;
}

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

input:focus+.slider {
	box-shadow: 0 0 1px #ea8118;
}

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

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
	border-radius: 50%;
}

ul, .tree-list {
	list-style-type: none;
}

.sensor-index {
    list-style-type: square;
}

.caret {
	cursor: pointer;
	user-select: none;
}

.caret::before {
	content: "\25B6";
	color: black;
	display: inline-block;
	margin-right: 6px;
}

.caret-down::before {
	transform: rotate(90deg);
}

.nested {
	display: none;
}

.active {
	display: block;
}

@media screen and (max-width: 800px) {
    
    #mainContainerSettings {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }
  
    #formContainerSettings {
      order: 1;
    }
  
    #formContainerAlarms {
      order: 2;
    }

    .tree-list {
        text-align: center;
    }

    .sensor-index {
        list-style-type: none;
    }

    #alarms-btn {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #nav_title {
        display: none;
    }

    #nav_title_mobile {
        display: block;
    }
}
