@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Roboto:wght@400;700&display=swap');

:root {
  --margin: 15px;
}

* {
  box-sizing: border-box;
  margin: 0;
}

body {
  font-family: Helvetica, 'Open Sans', Tahoma, sans-serif;
  font-size: 16px;
  background-color: #eaeaea;
  text-shadow: 3px 3px 7px #444;
  background: #222;
  color: #bbb;
}

body.lights {
  text-shadow: 3px 3px 7px #bbb;
  background: #eaeaea;
  color: black;
}

.container {
  margin: var(--margin);
}

#main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100vh - 2 * var(--margin));
  
}

#main > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#text {
  width: 100%;
  max-width: 760px;
  flex-grow: 3;
}

#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: calc(1.5 * var(--margin));
}

#troll {
  display: none;
  margin-top: 10%;
}

#troll img {
  height: 250px;
  width: 250px;
}

.row {
  margin: 24px 0;
}

#greeting {
  font-size: 16px;
  text-transform: uppercase;
  font-family: Roboto;
  font-weight:  700;
}

#bitcoin-price {
  display: none;
}

#color {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: calc(4 * var(--margin));
}

#circle {
  width: 6vmax;
  height: 6vmax;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0px 0px 4px dodgerblue;
  background-image: url('../assets/images/powerbuttondark.webp');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 32px;
}

body.lights #circle {
  background-image: url('../assets/images/powerbuttonlight.webp');
}

#hex {
  font-size: .6em;
  margin-top: 10px;
  color: #777;
  display: none;
}

/*   SWITCH  */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #444;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 1px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider:before {
  transform: translateX(18px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}
/*  END SWITCH  */

@media screen and (min-width: 320px) {
  #greeting {
    font-size: 20px;
  }
}
@media screen and (min-width: 390px) {
  body {
    font-size: 18px;
  }
  #greeting {
    font-size: 25px;
  }
}
@media screen and (min-width: 760px) {
  body {
    font-size: 28px;
  }
  #greeting {
    font-size: 38px;
  }
}

@media screen and (min-width: 1200px) {
  #text {
    max-width: 960px;
  }
}