@import url(reset.css);
@import url(button.css);
@import url(loader.css);
@import url(switch.css);

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(Roboto-Regular.ttf) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html,
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
}

h1 {
  font-size: 2.4em;
  margin: 10px 10px;
}

h2 {
  font-size: 2.2em;
}


h3 {
  font-size: 1.9em;
}

h4 {
  font-size: 1.7em;
}

header {
  background-color: #222;
}

.header--text {
  display: flex;
  color: white;
  align-items: center
}

.rainbow {
  height: 5px;
  background-image: linear-gradient(to left, violet, indigo, blue, green, yellow, orange, red);
}

main {
  display: flex;
  flex-flow: column;
  height: 100%;
}

.main--container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  height: 100%;
}

.main--card {
  margin: 20px;
  padding: 0px 20px;
  width: 500px;
  min-height: 425px;
  display: grid;
  grid-template-rows: 20px 50px 1fr 50px;
  border-radius: 10px;
  box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.25);
  transition: all 0.2s;
}

.main--card:hover {
  box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.4);
  transform: scale(1.01);
}

.main--card-header {
  grid-row: 2/3;
  font-size: 30px;
  color: #ffffff;
}

.main--card-content {
  grid-row: 3/4;
  font-weight: 400;
  color: #ffffff;

}

.main--card-controls {
  grid-row: 4/5;
  align-self: center;
  display: flex;
  justify-content: space-between;
}

.main--card-3 {
  background: radial-gradient(#1fe4f5, #3fbafe);
}

.main--card-1 {
  background: radial-gradient(#fbc1cc, #fa99b2);
}

.main--card-4 {
  background: radial-gradient(#76b2fe, #b69efe);
}

.main--card-2 {
  background: radial-gradient(#60efbc, #58d5c9);
}

.main--card-5 {
  background: radial-gradient(#f588d8, #c0a3e5);
}

#rgbCamera {
  display: block;
  width: 400px;
  height: 300px;
  margin: auto;
}

button:disabled,
button[disabled]{
  color: #aaa !important;
  pointer-events: none;
}

.textSwitch{
  display: flex; 
  align-items: center; 
  margin-bottom: 10px;
}

.textSwitch label{
  margin-left: 10px;
  font-size: 1.3em;
}