@import url('https://fonts.googleapis.com/css?family=Roboto:100,400,500&display=swap');

* {
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
  font-weight: 100;
}

body {
  margin: 0;
  padding: 0;
  background: url(images/background.jpg);
  background-size: cover;
  background-repeat: no-repeat;
}

div#home-screen {
  height: 100vh;
  width: 100%;
}

div#top-part {
  height: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
}

div#top-part div#time {
  color: white;
  text-align: center;
  font-size: 40pt;
}

div#top-part div#date {
  text-align: center;
  color: white;
  font-size: 22px;
}

div#home-screen-overlay, div#app-drawer-overlay {
  height: 100vh;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.075);
  z-index: 100;
}

div#app-drawer-overlay {
  display: none;
}

div#middle-part {
  height: 70%;
  width: 100%;
  padding: 26px;
}

#home-screen .app-icon, #home-screen .empty-space {
  height: 25%;
  width: 24%;
  display: inline-block;
  position: relative;
}

.app-icon .icon {
  color: white;
  text-align: center;
  font-size: 24px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  margin: 0 auto;
  border-radius: 50%;
}

.app-icon .text {
  color: white;
  text-align: center;
  font-size: 16px;
  margin-top: 10px;
}

.app-icon {
  height: 20%;
  width: 32%;
  display: inline-block;
  z-index: 101;
  position: relative;
}

.app-icon-inner, .empty-space-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

div#bottom-part {
  height: 10%;
}

div#bottom-part {
  height: 10%;
  display: flex;
  flex-wrap: wrap;
}

.bottom-app-icon {
  flex: 1 1 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
}

.bottom-app-icon:nth-child(5) {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-app-icon:nth-child(1) i, .bottom-app-icon:nth-child(2) i, .bottom-app-icon:nth-child(3) i, .bottom-app-icon:nth-child(4) i, .bottom-app-icon:nth-child(5) i {
  background-size: contain;
  width: 33px;
  height: 33px;
  background-position: center;
  background-repeat: no-repeat;
  display: block;
}

.bottom-app-icon:nth-child(1) i {
  background-image: url(images/icons/phone.png);
}

.bottom-app-icon:nth-child(2) i {
  background-image: url(images/icons/message.png);
}

.bottom-app-icon:nth-child(4) i {
  background-image: url(images/icons/camera.png);
}

.bottom-app-icon:nth-child(5) i {
  background-image: url(images/icons/chrome.png);
}

.bottom-app-icon:nth-child(4) {
  color: #9E9E9E;
}

.bottom-app-icon:nth-child(3) {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 101;
  position: relative;
}

.bottom-app-icon:nth-child(3) i {
  background-image: url(images/icons/Drawer-icon.png);
  transition: all .5s ease-in-out;
}

.bottom-app-icon:nth-child(2) {
  color: #4CAF50;
}

.bottom-app-icon:nth-child(1) {
  color: #039BE5;
}

.menu-dots span {
  display: block;
  line-height: 15px;
  font-size: 60px;
}

/* App Drawer */
div#app-drawer {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  opacity: 0;
  visibility: hidden;
  transition: all .5s ease-in-out;
}

.app-drawer-open div#app-drawer {
  transition-delay: .6s;
  opacity: 1;
  visibility: visible;
}

div#top-part, div#middle-part, .bottom-app-icon:nth-child(1), .bottom-app-icon:nth-child(2), .bottom-app-icon:nth-child(5), .bottom-app-icon:nth-child(4) {
  transition: all .5s ease-in-out;
}

.app-drawer-open #home-screen div#top-part, .app-drawer-open #home-screen div#middle-part, .app-drawer-open #home-screen .bottom-app-icon:nth-child(1), .app-drawer-open #home-screen .bottom-app-icon:nth-child(2), .app-drawer-open #home-screen .bottom-app-icon:nth-child(5), .app-drawer-open #home-screen .bottom-app-icon:nth-child(4) {
  opacity: 0;
  visibility: hidden;
}

.app-drawer-open .bottom-app-icon:nth-child(3) i {
  background-image: url(images/icons/home.png);
  width: 50px;
  height: 50px;
}

#app-drawer .app-icon .text {
  font-size: 14px;
}

.app-drawer-open div#home-screen-overlay {
  display: none;
}

.app-drawer-open div#app-drawer-overlay {
  display: block;
}

div#app-drawer .top-text::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 5%;
  width: 90%;
  background: #03A9F4;
  height: 1px;
}

div#app-drawer .top-text {
  height: 90px;
  text-align: center;
  color: #03A9F4;
  line-height: 90px;
  font-size: 38px;
  position: relative;
  font-weight: 100;
}

div#app-drawer div#middle-part {
  height: calc(90% - 90px);
  padding: 25px 15px;
}

div#app-drawer-background {
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.8);
  position: fixed;
  bottom: 0;
  left: calc(50% - 25px);
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transition: all .6s ease-in-out;
}

.app-drawer-open div#app-drawer-background {
  width: 100%;
  height: 100vh;
  border-radius: 0;
  left: 0;
  bottom: 0;
  opacity: 1;
  visibility: visible;
}

.website-open iframe#website-frame {
  width: 100%;
  height: 90%;
  border-radius: 0;
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

iframe#website-frame {
  position: fixed;
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  z-index: 500;
  border: none;
  transition: all .5s ease-in-out;
  transition-delay: .35;
  visibility: hidden;
  opacity: 0;
  background: white;
}
