@import url("https://fonts.googleapis.com/css?family=Montserrat:thin,extra-light,light,100,200,300,400,500,600,700,800");

* {
  font-family: "Montserrat", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
}

.container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-bottom: 60px;
}
.container .content {
  text-align: center;
}
.container .content h2 {
  font-size: 30px;
  color: #333;
}
.container .content h2 span {
  background: crimson;
  color: #fff;
  border-radius: 5px;
  padding: 0px 10px;
}
.container .content h1 {
  font-size: 50px;
  color: #333;
}
.container .content h1 span {
  color: crimson;
}
.container .content p {
  font-size: 25px;
  margin-bottom: 20px;
}
.container .content .btn {
  display: inline-block;
  padding: 10px 30px;
  font-size: 20px;
  background: #333;
  color: #fff;
  margin: 0px 5px;
  text-transform: capitalize;
}

.container .content .btn:hover {
  background: crimson;
}

.form-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-bottom: 60px;
  background: #eee;
}

.form-container form {
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
  background: #fff;
  text-align: center;
  width: 500px;
}

.form-container form h2 {
  font-size: 30px;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: #333;
}
.form-container form input,
select {
  width: 100%;
  padding: 10px 15px;
  margin: 10px 0px;
  font-size: 17px;
  background: #eee;
}
.form-container form select option {
  background: #fff;
}
.form-container form .form-btn {
  background: #b6decd;
  color: white;
  text-transform: capitalize;
  font-size: 20px;
  cursor: pointer;
}

.form-container form .form-btn:hover {
  background: #62d7a7;
  color: #fff;
}
.form-container form p {
  margin-top: 10px;
  font-size: 20px;
  color: #333;
}
.form-container form p a {
  color: #b6decd;
}
.form-container form span .error-msg{
  margin:10px 0;
  display: block;
  background: crimson;
  color: #fff;
  border-radius: 5px;
  font-size: 20px; 
  padding: 10px;
}

.navbar {
  display: flex;
  position: relative;
  justify-content: space-between;
  align-items: center;
  color: #eee;
  background-color: rgba(255, 255, 255, 0);
  
}

.logo {
  color: white;
  font-size: 1.5rem;
  margin: .5rem;
  padding-left: 45px;
  border-right: solid;
  padding-right: 40px;
  border-width: 1px;
}

.navbar-links {
  height: 100%;
  font-size: large;
  width: 100%;
  
}

.nav-middle {
  margin-left: auto;
  margin-right: auto;
  display: flex;
}

.nav-middle li {
  background-color: rgba(255, 255, 255, 0);
}

.nav-middle li a {
  color: white;
}

.nav-logout li {
  background-color: #b6decd00;
}

.navbar-links .nav-logout li a {
  color: white;
}

.navbar-links .nav-logout li a:hover {
  color: rgb(21, 8, 76);
}

.navbar-links ul {
  display: flex;
  margin: 0;
  padding: 0;
  padding-right: 20px;
  
}

.navbar-links li {
  list-style: none;
  border: solid;
  margin: 10px;
  border-width: thin;
  border-color: #b6decd;
  border-radius: 10px;
  height: 50px;
}

.navbar-links li a {
  display: block;
  text-decoration: none;
  color: white;
  padding: 13px;
}

.navbar-links li:hover {
  background-color: #b6decd;

}

.navbar-links a:hover {
  color: rgb(21, 8, 76);
  
}

.toggle-button {
  position: absolute;
  top: .75rem;
  right: 1rem;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px; 
}



.toggle-button .bar {
  height: 3px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 10px;
}

@media (max-width: 800px) {
  .navbar {
      flex-direction: column;
      align-items: flex-start;
      
  }
  .navbar h1 span{
    background: crimson;
    color: #fff;
    border-radius: 5px;
    padding: 0px 10px;
  }
  .navbar-links .nav-middle {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .navbar-links .nav-middle li a {
    display: flex;
    flex-direction: column;
    color: white;
  }

  .navbar-links .nav-middle li a:hover {
    color: #333;
  }

  .toggle-button {
      display: flex;
      
  }

  .toggle-ul{
    background-color: rgb(21, 8, 76);
  }
  .navbar-links {
      display: none;
      width: 100%;
      background-color: #333;
  }

  .navbar-links ul {
      width: 100%;
      flex-direction: column;
  }

  .navbar-links ul li {
      text-align: center;
  }

  .navbar-links ul li a {
      padding: .5rem 1rem;
  }

  .navbar-links.active {
      display: flex;
  }

  
}

.background-image {
  background-image: url('../images/main.png');
  background-size: cover;
  background-repeat: no-repeat;
  height: 100vh;
}

.services {
  background-color: #eee;
  text-align: center;
}



.services .box-container {
  max-width: 750px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 20px;
  margin: auto; 
  padding: 40px;
}

@media (max-width: 768px) {
  .services .box-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .services .box-container {
    grid-gap: 10px;
  }
}
.services .box-container .box {
  background-color: white;
  padding: 2rem;
  margin: 10px;
  text-align: center;
  border-radius: 5px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
}

.services .box-container .box h2 p{
  font-size: 1.5rem;
}

.services .box-container .box p{
  font-size: 1rem;
}


#heading {
  text-align: center;
  padding-top: 2.5rem;
  padding-bottom: 1rem;
  font-size: 3rem;
}
.footer {
  background-color:  rgb(21, 8, 76);
  color: white;
  display: flex;

  justify-content: space-around;
}

.footer .box {
  display: flex;
  flex-direction: column;
  padding-top: 2rem;
  padding-bottom: 2rem;
  
}


.room-container {
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  margin: auto; 
  padding: 40px;
  margin-top: -10px;
 
}

.room-container .to-devices {
  color: #333;
}

.room-container .card {

  display: flex;
  flex-direction: row;
  justify-content: space-between;
  background-color: white;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  padding: 20px;
  border-radius: 5px;
  width: 90%;
  border: solid;
  border-width: thin;
  border-color: #dfe3eb;
  margin: 5px;
  box-sizing: border-box;
  padding: 20px;
  border-radius: 5px;
  border: solid;
  border-width: 1px;
  border-color: #dfe3eb;
}

.room-container .card:hover {
  background-color: #eee;
}

.room-info {
  padding-top: 30px;
}

.room-icon{
  padding-top: 45px;
}

.device-container {
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  grid-gap: 40px;
  margin: auto; 
  padding: 40px;
  margin-top: -15px;
}

.device-container .device {
  background-color: white;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  padding: 20px;
  border-radius: 5px;
  width: 100%;
  border: solid;
  border-width: thin;
  border-color: #dfe3eb;
}

.device-container .device .device-status {
  display: flex;
  justify-content: space-between;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  background-color: white;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -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: #cbf7e4;
}

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

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%;
}

.attribute {
  margin-top: 1rem;
  background: white;
  border: solid;
  border-width: thin;
  border-color: #b6decd;
  border-radius: 3px;
  padding: 1rem;
}

#swatch{
  display: flex;
  flex-direction: row;
  margin-left: auto;
  margin-right: auto;
  max-width: 150px;
}

#swatch .info{
  background-color: white;
  width:min-content;
  padding-left: 5px;

}

#swatch h1{
  margin: 0;
  text-transform: uppercase;
  font-size: smaller;
}

#swatch h2{
  font-weight: normal;
  font-size: smaller;
  margin: 0;
}

input[type="color"] {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  height: 30px;
}

*:focus{
  border-radius: 0;
  outline: none;
}

::-webkit-color-swatch-wrapper {
  padding: 0;
}

::-webkit-color-swatch{
  border: 0;
  border-radius: 0;
}

::-moz-color-swatch,
::-moz-focus-inner{
  border: 0;
}

::-moz-focus-inner{
  padding: 0;
}

.vacuum-cleaner-modes {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
}

.vacuum-cleaner-modes span{
  font-size:larger;
}

input[type=radio] {
  display: none;
}

label {
  display: inline-block;
  padding: 5px 10px;
  background-color: #eee;
  border-radius: 5px;
  cursor: pointer;
}

.vacuum-cleaner-modes input[type=radio] + label {
  background-color: #eee;
  border-style: solid;
  border-color: white;
  border-width: thin;
}

.vacuum-cleaner-modes input[type=radio]:checked + label {
  background-color: #cbf7e4;
  color: black;
}

.vacuum-cleaner-modes input[type=radio]:checked + label:hover {
  background-color: #b6decd; 
}

.air-conditioner-modes {
  display: flex;
  justify-content: space-around;
  margin-top: 10px;
}

.air-conditioner-modes input[type="radio"] + label{
  background-color: white;
  transition: color 0.3s;
}


.air-conditioner-temperature {
  display: flex;
  justify-content: space-around;
  margin-top: 10px;
  
}

@media (max-width: 768px) {
  .device-container {
    grid-template-columns: 1fr;
  }

  .room-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .device-container {
    grid-gap: 10px;
  }

  .room-container {
    grid-template-columns: 1fr;
  }

  
}

.temp-humid-show {
  padding-top: 10px;
}

.temp-show {
  color: rgb(179, 0, 0);
}

.humid-show {
  color: rgb(15, 18, 188);
}

.containerew {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
}

.centered-text {
  text-align: center;
}

#hidden-text {
  color: white;
  visibility: hidden;
}
@media (max-width: 680px) {
  #hidden-text{
    visibility: visible;
    padding-bottom: 200px;
  }
}

#footer-element{
  padding-top: 1rem;
}



