
p.title {
  margin: 0.5rem 0;
  font-size: 1rem;
  background: #000;
  color: #fff;
  font-weight: normal;
  text-align: center;
  padding: 5px;
  border-radius: 5px;
} 

.top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  padding: 0 8rem;
} 



.alarm-button,
.menu-button {
position: fixed;
top: 1rem; 
font-size:2rem;
} 

.alarm-button {
left: 1rem;
} 

.menu-button {
  right: 1rem;
} 

.mid {
  flex: 1 0 0;
  display: flex;
  align-items: center;
  flex-direction: column;
} 


.button,
.button-footer {
  pointer-events: initial;
  cursor: pointer;
  -wbekit-appearance: none;
  appearance: none;
  margin: 0;
  border-radius: 30px;
  padding: 0.2px;
  border: 1px solid #000;
  background: #ffff00;
  transition: 0.3s ease;
} 


.button:hover,
.button:focus,
.button-footer:hover,
.button-footer:focus {
  outline: 0;
  border: 1px solid red;
}
.button.active {
  background: red;
}
.alarm,
.menu {
  background: white;
  border: 1px solid black;
  border-radius: 5px;
  margin: 0 auto 0.75rem;
  transition: transform 0.3s ease;
  box-shadow: 0 0 10px 10px rgba(0, 0, 0, 0.5);
  z-index: 2;
  padding: 0.5rem;
  min-width: 8rem;
}

footer {
  background: gray;
  border-style: solid;
  text-align: center;
}

.hide,
[data-hide-all].hide {
  display: none;
}
@media screen and (max-width: 480px) {
  p.title {
    margin-top: 3rem;
  }
  .top {
    padding: 0 0.5rem;
  }
}