* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}
.title-home h1 {
    display: contents;
    color: #fff;
    font-size: 48px;
}
@media (max-width: 768px) {
    .title-home h1 {
        font-weight: 600;
        font-size: 24px;
    }
}
:root {
    --digit-keys: #505050;
    --operator-keys: #FF9500;
    /*--background-color: #1C1C1C;*/
    --background-color: #1c1c1c00;
    --function-keys: #a2a2a2;
    --del-keys: #a14a4a;
}

.wrapper {
  background-color: var(--background-color);
  color: #ffffff;
  /*height: 100vh;*/
  width: 100%;
  justify-content: center;
  align-items: center;
  display: flex;
}

.calc {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  font-size: 1.3rem;
  /*border: 2px solid #505050d9;*/
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 4px 42px 0 rgb(21 21 24 / 13%);
  transition: all 0.2s;
}

.theme-2-active {
	box-shadow: 5px 35px 191px -43px rgba(255, 0, 255, 0.5);
}

.top {
  max-width: 400px;
  width: 100%;
  background: #FFF9F9;
  color: #444;
  border-radius: 10px 10px 0 0;
}

.result {
  box-sizing: border-box;
  width: 100%;
  height: 30px;
  font-size: 16px;
  margin: 0;
  padding: 7px 10px 0px 10px;
  text-align: left;
  opacity: 0.6;
  overflow: hidden;
}

.screen {
  width: 100%;
  height: 50px;
  border: 0;
  font-size: 30px;
  padding: 0px 20px 5px 5px;
  text-align: right;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  overflow: hidden;
}

.hints {
  opacity: 0.3;
}

.keyboard {
  display: grid;
  max-width: 400px;
  width: 100%;
  /*box-shadow: inset 10px -88px 160px 23px rgba(0, 0, 0, 0.8), 5px 35px 191px -43px rgba(255, 0, 255, 0.5);*/
  margin-bottom: 10px;
}

.crow {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-around;
  width: 100%;
  min-height: 50px;
  margin: auto;
}

.crow:last-child {
  border-radius: 0px 0px 10px 10px;
}

.cb {
  box-sizing: border-box;
  width: 100%;
  text-align: center;
  background: rgba(255, 228, 240, 1);
  color: #444;
  cursor: pointer;
  outline: 1px solid rgba(136, 14, 79, 0.1);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition: all 0.2s;
  -moz-user-select: none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  -o-user-select: none;
}

.cb:hover {
  box-shadow: 0px 0px 16px 0px rgba(233, 30, 99, 0.5);
  z-index: 1000;
}

.cb:active {
  box-shadow: inset 0px 0px 18px 6px rgba(233, 30, 99, 0.5);
}

.screentext {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.animated {
  position: relative;
  top: 0;
  animation: movetext1 .2s 1;
}

@keyframes movetext1 {
  0% {
    top: 100px;
  }
  100% {
    top: 0px;
  }
}

sup {
  vertical-align: text-top;
  font-size: 0.5em;
}

.inv {
  display: none;
}

.lighter {
  background-color: rgba(255, 235, 238, 1);
  font-size: 1.2em;
}

.operands {
  background-color: rgba(255, 155, 160, 1);
  color: #eee;
  font-size: 1.6em;
}

.enter {
  background-color: rgba(254, 111, 118, 1);
  color: #eee;
  font-size: 2em;
}

/* Themes */

.themes {
  display: grid;
  grid-gap: 4px;
  grid-auto-flow: column;
}

.theme-1, .theme-2 {
   width: 40px;
   height: 40px;
   border-radius: 4px;
   cursor: pointer;
}

.themes > .selected {
   width: 40px;
   height: 40px;
}

.themes > .selected .check {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  opacity: 1;
}

.theme-1 {
  background: #505050;
}

.theme-2 {
  background: rgba(254, 111, 118, 1);
}

.check {
  display: none;
  opacity: 0;
  color: #40f740;
  transition: all .8s ease-out;
}

.theme-1-active .keyboard .crow .cb.cbnum.lighter,
.theme-1-active .keyboard .crow .cb.cbpar,
.theme-1-active .keyboard .crow .cb.cbans
 {
  background-color: var(--digit-keys);
  color: #ffffff;
}

.theme-1-active .keyboard .crow .cb.cbop.operands,
.theme-1-active .keyboard .crow .cb.enter
 {
  background-color: var(--operator-keys);
  color: #ffffff;
}

.theme-1-active .keyboard .crow .cb.cbac,
.theme-1-active .keyboard .crow .cb.cbce
 {
  background-color: var(--del-keys);
  color: #1c1c1c;
}

.theme-1-active .keyboard .crow .cb.cbop,
.theme-1-active .keyboard .crow .cb.cbfun,
.theme-1-active .keyboard .crow .cb.cbinv,
.theme-1-active .keyboard .crow .cb.cbnum
{
  background-color: var(--function-keys);
  /*color: var(--background-color);*/
}

.theme-1-active .keyboard .crow .cb {
  border-radius: 12px;
  margin: 4px 0px 4px 0px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.theme-1-active .keyboard .crow .cb:hover {
  opacity: 0.8;
  box-shadow: none;
}

.theme-1-active .keyboard .crow .cb:active {
  opacity: 0.8;
  box-shadow: none;
}

.theme-1-active .keyboard .crow .cb:focus {
  opacity: 0.8;
  box-shadow: none;
}

.theme-1-active .keyboard .crow {
  justify-content: space-between;
  height: 20%;
  grid-gap: 6px;
}

.theme-1-active .keyboard {
  box-shadow: none;
}

.theme-1-active > .top {
  background: transparent;
  color: #444;
  border: 1px solid #e1e1e1;
}

.theme-1-active > .top > .result {
  color: var(--digit-keys);
  opacity: 1;
}

.theme-1-active > .top > .screen {
  /*color: white;*/
  color: #444;
}

@media (min-width: 900px) {
  .desktop {
    display: none;
  }
  
  .mobile {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: 2fr 2fr 1fr;
  } 
  
  .top, .keyboard {
    max-width: 50%;
    min-width: 700px;
  }

  .spec {
    display: grid;
  }

  .cbans {
    width: 100%;
  }

  .enter {
    width: 100%;
  }

  .theme-1-active .keyboard.mobile {
    grid-gap: 18px;
  }
  
  .theme-1-active .center, .theme-1-active .right {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .center .crow, .right .crow {
    height: -webkit-fill-available;
  } 
  
  .center, .right {
    display: grid;
  }
}

@media (max-width: 900px) {
  .desktop {
    display: grid;
  }
  
  .mobile {
    display: none;
  }

  .cbans {
    width: 50%;
  }

  .enter {
    width: 50%;
  }
  .home-calc .calc {
    width: 100%;
    font-size: 16px;
  }
  .home-calc .theme-1-active .keyboard .crow .cb {
    margin: 2px 0px 2px 0px;
  }
  .home-calc .theme-1-active .keyboard .crow .cb {
    padding-top: 1px;
    padding-bottom: 1px;
  }
  .home-calc .crow {
    min-height: 40px;
  }
  .home-calc .theme-1-active .keyboard {
    margin-top: 20px;
  }
  .calc {
	max-width: 550px;
  }
}



.category-block-home:last-child {  
    margin-bottom: 0px;
}
.keyboard mobile {
    border: 1px solid #e1e1e1;
    padding: 10px;
}
.theme-1-active .keyboard.mobile {
    border: 1px solid #e1e1e1;
    padding: 10px;
}