/* BUTTONS */

.btn {
  background-color: rgba(255, 255, 255, 0.45);
  position: relative;
  display: inline-block;
  width: 45px;
  height: 45px;
  border: .5px solid rgba(255, 255, 255, 0.3);
  border-radius: 2em;
  align-self: center;
  color: #085078;
  transition: all .3s;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
}

.btn.download {
 
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 2px 2px 10px rgba(255, 255, 255, 0.4), 2px 2px 10px rgba(250, 250, 250, 0.2) inset, 2px 2px 5px rgba(0, 0, 0, 0.4);
}

.btn.upload {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 2px 2px 10px rgba(255, 255, 255, 0.4), 2px 2px 10px rgba(250, 250, 250, 0.2) inset, 2px 2px 5px rgba(0, 0, 0, 0.4);
}

.btn.shoppy {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 2px 2px 10px rgba(255, 255, 255, 0.4), 2px 2px 10px rgba(250, 250, 250, 0.2) inset, 2px 2px 5px rgba(0, 0, 0, 0.4);
}

.btn.home {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 2px 2px 10px rgba(255, 255, 255, 0.4), 2px 2px 10px rgba(250, 250, 250, 0.2) inset, 2px 2px 5px rgba(0, 0, 0, 0.4);
}

.btn:hover {
  background-color: rgba(0, 0, 0, 0.6);  
}

.btn.download:hover {
  box-shadow: 0 2px 40px rgba(5, 131, 202, 0.4), 0 2px 0 rgba(250, 250, 250, 0.2) inset, 5px 0 10px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.4);
}

.btn.upload:hover {
  box-shadow: 0 2px 40px rgba(5, 131, 202, 0.4), 0 2px 0 rgba(250, 250, 250, 0.2) inset, 5px 0 10px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.4); 
}

.btn.shoppy:hover {
  box-shadow: 0 2px 40px rgba(5, 131, 202, 0.4), 0 2px 0 rgba(250, 250, 250, 0.2) inset, 5px 0 10px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.4);
}

.btn.home:hover {
  box-shadow: 0 2px 40px rgba(5, 131, 202, 0.4), 0 2px 0 rgba(250, 250, 250, 0.2) inset, 5px 0 10px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.4);
}


/* BUTTON TEXT & ICON TRANSITION */

em, i {
  transition: all .3s;
}


/* BUTTON TEXT */

em {
  top: 0;
}

.btn.download:hover em {
  top: 100%;
}

.btn.upload:hover em {
  top: -100%;
}


/* DOWNLOAD ICON */

.btn.download i {
margin-top: 25%;
margin-left: 8%;
position: relative;
font-size: 30px;
}

.btn.download svg {
margin-top: 31%;
margin-left: 7%;
background-size: contain;
transform: scale(180%);
}

.btn.upload i {
margin-top: 25%;
margin-left: 7%;
position: relative;
font-size: 22px;
}

.btn.upload svg {
margin-top: 27%;
margin-left: 6.5%;
transform: scale(170%);
}

.btn.shoppy i {
margin-top: 22%;
margin-left: 6.5%;
position: relative;
font-size: 24px;
}

.btn.home i {
margin-top: 25%;
margin-left: 6%;
position: relative;
font-size: 30px;
}

.btn.home svg {
margin-top: 28%;
margin-left: 7%;
background-size: contain;
transform: scale(180%);
}

@media only screen and (orientation: landscape) {
.btn.upload svg {
margin-bottom: 40%;
margin-left: 5.8%;
}
.btn.home svg {
margin-bottom: 45%;
margin-left: 6.9%;
}
.btn.shoppy i {
margin-top: 25%;
margin-left: 6.5%;
vertical-align: top;
}
}

.btn.download:hover i,
.btn.upload:hover i,
.btn.shoppy:hover i,
.btn.home:hover i {
  top: -5%;
}

/* HIDE TOOLTIP GENERAL */

.btn.tooltip::before,
.btn.tooltip::after {
  position: absolute;
  opacity: 0;
  transition: all .3s;
  visibility: hidden;
  box-shadow: 0 2px 40px rgba(5, 131, 202, 0.4), 0 2px 0 rgba(250, 250, 250, 0.2) inset, 5px 0 10px rgba(0, 0, 0, 0.4);
}


/* TOOLTIP */

.btn.tooltip::before {
  content: '';
  position: absolute;
  width: calc(160px + 40px);
  height: 60px;
  line-height: 60px;
  background: #202222;
  border-radius: .25em;
  bottom: 90px;
  left: calc(50% - 90px);  
  z-index:999;
    font-family: "Archivo", system-ui, sans-serif;
  font-weight: 600;color: transparent;
  text-shadow: 2px 2px 0px rgba(255,255,255,0.9);
  -webkit-background-clip: text;
     -moz-background-clip: text;
          background-clip: text;
}

.btn.tooltip:hover::before {
  bottom: 80px;
}


/* FILE SIZE */
/* You can automatically generate a class depending on your uploaded File size which will then be added to the button. In this Pen I used a static solution to showcase the CSS. */

.tt50::before {
  content: 'more about us' !important;
}
.tt51::before {
  content: 'about our products' !important;
}
.tt52::before {
  content: 'shop online' !important;
}
.tt53::before {
  content: 'back to home' !important;
}


/* TRIANGEL */

.btn.tooltip::after {
  content: '';
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-top-color: #202222;
  left: calc(50% - 10px);
  bottom: 70px;
}

.btn.tooltip:hover::after {
  bottom: 60px;
}


/* SHOW TOOLTIP */

.btn.tooltip:hover::before,
.btn.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
}
