@font-face{
  font-family: pixel;
  src: url('./fonts/Early GameBoy.ttf');
}
body{
  background-color: #C2C5CC;
  display: flex;
  justify-content: space-evenly;
}
a:link,a:visited{
  color: #8bac0f;
  border: 1px solid #8bac0f;
  padding: 1px 1px 1px 4px;
  text-decoration: none;
}
a:hover {
  opacity: .75;
  background-color: #8bac0f;
  color: #0f380f;
  border: 1px solid #8bac0f;
}
ul{
  list-style-type: none;
  margin: 0;
  padding: 0;
}
#content img{
  max-width: 100%;
  max-height: 100%;
}

#filters{
  display: none;
}

#main{
  width: 750px;
  border: 5px solid;
  border-image: linear-gradient(to right,#C2C5CC,#9ea1a8,#9ea1a8,#C2C5CC) 100;
  position: relative;
  display: flex;
  flex-direction: column;
}

#header {
  height: 20px;
}

#screen-container{
  border-right: 1px solid #555;
  border-bottom: 1px solid #555;
  background-color: #9ea1a8;
  margin: 5px 15px 5px 15px;
  padding: 20px 20px 20px 10px;
  border-radius: 2% 2% 10% 2%;
  display: flex;
  flex-grow:1;
  flex-shrink:0;
}

#battery-light{
  background-color: red;
  width: 10px;
  height: 10px;
  margin: auto;
  flex-grow:0;
  flex-shrink:0;
  margin-right: 10px;
  border-radius: 100%;
  box-shadow: 0px 0px 5px red;
}

#screen{
  padding: 5px;
  margin-right: 5px;
  margin-bottom: 5px;
  background-color: #8bac0f;
  border-radius: 1% 1% 1% 1%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

#menu {
  display: flex;
  flex-grow:1;
  flex-shrink:2;
  justify-content: space-around;
  margin-bottom: 5px;
}
.menu-item{
  margin: 2px;
  justify-content: center;
  display: flex;
  flex-wrap: nowrap;
  flex-grow:0;
  flex-shrink:1;
  background-color: #306230;
  color: #9bbc0f;
  padding: 0 3px 0 3px;
  cursor: pointer;
  font-family: pixel;
  align-items: center;
  text-align: center;
  font-size: 14px;
}
.menu-item:hover{
  box-shadow: 2px 5px #0f380f;
}
.menu-item-hover{
  box-shadow: 2px 5px #0f380f;
}

#content {
  color: #8bac0f;
  display: flex;
  flex-grow:5;
  justify-content: space-evenly;
  align-items: center;
  font-family: pixel;
}
#content aside{
  position:absolute;
  width: 75%;
  padding: 5px;
  display: flex;
  align-items: center;
}
#content aside img{
  width: 150px;
  height: auto;
}
#content img:not(#default-img){
  filter: url(#old-school);
}
#content img:not(#default-img,#my-face):hover{
  filter: none;
}
#project-info {
  background-color: #306230;
  font-family: pixel;
  color: #8bac0f;
  padding-top: 4px;
  padding-bottom: 4px;
  visibility: hidden;
  font-size: 14px;
  text-align: center;
}

@keyframes face-tilt {
  from {transform: rotate(-10deg);}
  to {transform: rotate(15deg);}
}
#my-face{
  animation: face-tilt 1s infinite steps(3);
  animation-direction: alternate;
}

#bottom-half{
  display: flex;
  justify-content: space-evenly;
  flex-direction: column;
  flex-grow:1;
  flex-shrink:1;
}
#button-container{
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-grow:2;
}

#dpad{
  width: 75px;
  height: 75px;
}
#dpad-top,#dpad-mid,#dpad-bot{
  display: flex;
}
.dpad-out{
  background-color: transparent;
  width: 25px;
  height: 25px;
}
.dpad-in{
  background-color: #444444;
  width: 25px;
  height: 25px;
  box-shadow: 1.5px 1.5px #000000;
}
.dpad-in:not(#dpad-center){
  cursor: pointer;
}
#dpad-top .dpad-in{
  border-radius: 10% 10% 0 0;
}
#dpad-mid .dpad-in:first-child{
  border-radius: 10% 0 0 10%;
}
#dpad-mid .dpad-in:last-child{
  border-radius: 0 10% 10% 0;
}
#dpad-bot .dpad-in{
  border-radius: 0 0 10% 10%;
}
#dpad-center{
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  border-radius: 0;
}
#dpad-circle{
  background: radial-gradient(#222222,#444444);
  border-radius: 100%;
  width: 18px;
  height: 18px;
  background-color: black;
}
#dpad-up:active{
  box-shadow: 1.5px 1.5px #444444;
}
#dpad-left:active{
  box-shadow: 1.5px 1.5px #444444;
}
#dpad-right:active{
  box-shadow: 1.5px 1.5px #444444;
}
#dpad-down:active{
  box-shadow: 1.5px 1.5px #444444;
}

#ab-buttons-container{
  display: flex;
  justify-content: space-evenly;
}
.ab-button{
  width: 45px;
  height: 45px;
  background-color: #9a2257;
  border-radius: 100%;
  box-shadow: 1px 2px #69173b;
  cursor: pointer;
  color: #39499f;
  font-family: pixel;
  font-size: 14px;
}
.ab-button:active{
  box-shadow: 1px 2px #9a2257;
}
.ab-button aside{
  transform: rotate(-35deg);
  margin-top: 46px;
  margin-left: 36px;
}
.ss-button:first-child aside{
  transform: rotate(-90deg);
  margin-top: 46px;
  margin-left: 20px;
}
.ss-button:last-child aside{
  transform: rotate(-90deg);
  margin-top: 42px;
  margin-left: 20px;
}
#b-button{
  margin-top:25px;
}

#ss-container{
  display: flex;
  flex-grow:1;
  justify-content: center;
  align-items: center;
}
#ss-container .ss-button:first-child{
  margin-right: 55px;
}
.ss-button{
  border-right: 1px solid #777;
  border-top: 1px solid #777;
  border-radius: 35%;
  background-color: #9ea1a8;
  width: 10px;
  height: 50px;
  transform: rotate(70deg);
  font-family: pixel;
  font-size: 10px;
  cursor: pointer;
  color: #39499f;
}
.ss-button:active{
  border-right: 1px solid #9ea1a8;
  border-top: 1px solid #9ea1a8;
}
.ss-button aside{
  transform: rotate(-90deg);
}
.ss-button:first-child aside{
  transform: rotate(-90deg);
  margin-top: 46px;
  margin-left: 20px;
}
.ss-button:last-child aside{
  transform: rotate(-90deg);
  margin-top: 42px;
  margin-left: 20px;
}

#speaker-container{
  display: flex;
  flex-grow:0;
  max-width: 750px;
  justify-content: flex-end;
  padding-right: 30px;
}
.speaker{
  background-color: #9ea1a8;
  width: 10px;
  height: 95px;
  border-right: 2px solid #555;
  border-radius: 25%;
  transform: rotate(-45deg);
  box-shadow: inset 2px 0px 5px #C2C5CC;
  margin-right: 12px;
}
@media screen and (max-width: 600px) {
  .menu-item,#project-info {
    font-size: 7px;
  }
  .home-links{
    font-size: 9px;
  }
  #content aside{
    font-size:9px;
  }
  #content aside img{
    width: 80px;
    height: auto;
  }
  #bottom-half {
    flex-grow:2;
  }
}
