/* GLOBAL */

html, body {
  height: 100%;
  margin: 0;
}

body {
  background-image: url("/media/graybgscroll.gif");
  background-color: gray;
  color: black;
  font-family: sans-serif;
  font-size: 18px;
  overflow: hidden;
}

.everything { /* giant box */
  position: absolute;
  top: 30px;
  left: 40px;
  right: 30px;
  bottom: 40px;
  border: 10px solid black;
  box-sizing: border-box;
  background-color: white;
  box-shadow: -10px 10px 0 0 rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.tondronbar {
  font-size: 200%;
  border-bottom: 5px solid black;
  background-color: lightgray;
  padding: 20px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

#tondron {
  user-select: none;
  text-align: left;
}

#subtondron {
  user-select: none;
  color: gray;
  text-align: right;
}

.flexbottom {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  flex-grow: 1;
  height: 0;
}

.linkbox {
  background-color: gray;
  overflow-y: auto;
  overflow-x: hidden;
  width: 20%;
  display: flex;
  flex-direction: column;
}

.linkchild {
  padding: 10px;
  background-color: lightgray;
  border-bottom: 5px solid gray;
  animation: 0.5s fadeInUp;
  animation-fill-mode: backwards;
}

.linkchild:hover {
  background-color: lightgray;
  transform: translateX(5px);
}

.linkchild:active {
  background-color: white;
}

#lastborn {
  border-bottom: 0;
}

#descbox {
  border-left: 5px solid gray;
  overflow-y: auto;
  overflow-x: hidden;
  width: 80%;
  padding: 10px;
}

.tondronfactcontainer {
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: stretch;
}

.tondronfactmachine {
  width: 100%;
  border: 5px solid gray;
  padding: 10px;
  background-color: lightgray;
  margin-right: 5px;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
}

.tondronfactmachine:hover {
  box-shadow: -5px 5px 0 0 rgba(0, 0, 0, 0.2);
  margin: -5px 0 5px 5px;
  background-color: lightgray;
}

.tondronfactmachine:active {
  background-color: white;
  margin: 0 5px 0 0;
  box-shadow: none;
}

.border {
  border: 5px solid gray;
  box-sizing: border-box;
  max-width: 100%;
}

#bordervid {
  border: 5px solid gray;
  box-sizing: border-box;
  max-width: 100%;
  width: 95%;
}

.boxbutton {
  border: 5px solid gray;
  padding: 10px;
  background-color: lightgray;
  margin: 0 5px 10px 0;
  display: inline-block;
}

.boxbutton:hover {
  box-shadow: -5px 5px 0 0 rgba(0, 0, 0, 0.2);
  margin: -5px 0 15px 5px;
  background-color: lightgray;
}

.boxbutton:active {
  background-color: white;
  margin: 0 5px 10px 0;
  box-shadow: none;
}

.flexcenter {
  display: flex;
  justify-content: center;
  flex-flow: row wrap;
}

/* PROJECTS */

#projectregistry {
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: stretch;
}

.projectentry {
  width: 100%;
  border: 5px solid gray;
  padding: 10px;
  background-color: lightgray;
  margin: 0 5px 10px 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.projectentry:hover {
  box-shadow: -5px 5px 0 0 rgba(0, 0, 0, 0.2);
  margin: -5px 0 15px 5px;
  background-color: lightgray;
}

.projectentry:active {
  background-color: white;
  margin: 0 5px 10px 0;
  box-shadow: none;
}

.projectdesc {
  width: 50%;
}

.projectimage {
  margin-left: 10px;
  width: auto;
  height: 100px;
}

/* BLOG */

#blogregistry {
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: stretch;
}

.blogentry {
  width: 100%;
  border: 5px solid gray;
  padding: 10px;
  background-color: lightgray;
  margin: 0 5px 10px 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.blogentry:hover {
  box-shadow: -5px 5px 0 0 rgba(0, 0, 0, 0.2);
  margin: -5px 0 15px 5px;
  background-color: lightgray;
}

.blogentry:active {
  background-color: white;
  margin: 0 5px 10px 0;
  box-shadow: none;
}

#blogcontainer {
  display: none;
  animation: 0.5s fadeIn;
}

#ind {
  text-indent: 30px;
  margin-bottom: 10px;
}

.site {
  background-color: #36b31d;
  padding: 4px;
  line-height: 1;
  display: inline-block;
  color: white;
}

.new {
  background-color: #2e4ad8;
  padding: 4px;
  line-height: 1;
  display: inline-block;
  color: white;
}

.cool {
  background-color: #ffe42f;
  padding: 4px;
  line-height: 1;
  display: inline-block;
  color: white;
}

/* ARTWORK */

#artregistry {
  display: flex;
  justify-content: center;
  flex-flow: row wrap;
}

.artentry {
  width: 180px;
  border: 5px solid gray;
  padding: 10px;
  text-align: center;
  background-color: lightgray;
  margin: 0 5px 10px 5px;
}

.artentry:hover {
  box-shadow: -5px 5px 0 0 rgba(0, 0, 0, 0.2);
  margin: -5px 0 15px 10px;
  background-color: lightgray;
}

.artentry:active {
  background-color: white;
  margin: 0 5px 10px 5px;
  box-shadow: none;
}

#artcontainer {
  display: none;
  animation: 0.5s fadeIn;
}

/* MUSIC */

.musicplayer {
  border: 5px solid black;
  display: flex;
  flex-direction: column;
}

#albumcover {
  border-right: 5px solid black;
  height: 25vw;
  user-select: none;
}

.musicinterface {
  display: flex;
  flex-direction: row;
  flex: 1;
}

.songbox {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: gray;
  height: 25vw;
}

.songchild {
  padding: 10px;
  border-bottom: 5px solid gray;
  background-color: lightgray;
  animation: 0.5s fadeInUp;
  animation-fill-mode: backwards;
}

.songchild:hover {
  background-color: lightgray;
  transform: translateX(5px);
}

.songchild:active {
  background-color: white;
}

.musiccontrols {
  background-color: gray;
  border-top: 5px solid black;
  text-align: center;
}

.flexname {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

#currentname, #currentalbum {
  padding: 10px;
  font-size: 125%;
  user-select: none;
}

#audioaudio {
  width: 100%;
  height: 30px;
}

.albumregistry {
  display: flex;
  justify-content: center;
  flex-flow: row wrap;
}

.albumentry {
  width: 180px;
  border: 5px solid gray;
  padding: 10px;
  text-align: center;
  background-color: lightgray;
  margin: 0 5px 10px 5px;
}

.albumentry:hover {
  box-shadow: -5px 5px 0 0 rgba(0, 0, 0, 0.2);
  margin: -5px 0 15px 10px;
  background-color: lightgray;
}

.albumentry:active {
  background-color: white;
  margin: 0 5px 10px 5px;
  box-shadow: none;
}

/* LINKS */

a {
  color: blue;
  background-color: transparent;
  text-decoration: none;
  user-select: none;
  cursor: pointer;
}

a:visited {
  color: blue;
  background-color: transparent;
  text-decoration: none;
}

a:hover {
  color: purple;
  background-color: transparent;
  text-decoration: none;
}

a:active {
  color: pink;
  background-color: transparent;
  text-decoration: none;
}

/* ANIMATIONS */

@keyframes fadeInUp {
  0% {
    transform: translateY(2vw);
    opacity: 0;
  }
  100% {
    transform: translateY(0%);
    opacity: 1;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}


.everything {
  animation: 0.5s fadeInUp;
}

#subtondron {
  animation: 0.5s fadeInUp;
  animation-delay: 0.2s;
  animation-fill-mode: backwards;
}

@keyframes moveLeft {
  0% {
    transform: translateX(60vw);
    opacity: 0;
  }
  100% {
    transform: translateX(0%);
    opacity: 1;
  }
}

@keyframes zoomIn {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}

#tondron {
  animation: 0.7s moveLeft;
}

.linkchild:nth-child(1) { animation-delay: 0.1s; }
.linkchild:nth-child(2) { animation-delay: 0.2s; }
.linkchild:nth-child(3) { animation-delay: 0.3s; }
.linkchild:nth-child(4) { animation-delay: 0.4s; }
.linkchild:nth-child(5) { animation-delay: 0.5s; }
.linkchild:nth-child(6) { animation-delay: 0.6s; }
.linkchild:nth-child(7) { animation-delay: 0.7s; }
.linkchild:nth-child(8) { animation-delay: 0.8s; }
.linkchild:nth-child(9) { animation-delay: 0.9s; }
.linkchild:nth-child(10) { animation-delay: 1.0s; }

.songchild:nth-child(1) { animation-delay: 0s; }
.songchild:nth-child(2) { animation-delay: 0.05s; }
.songchild:nth-child(3) { animation-delay: 0.1s; }
.songchild:nth-child(4) { animation-delay: 0.15s; }
.songchild:nth-child(5) { animation-delay: 0.2s; }
.songchild:nth-child(6) { animation-delay: 0.25s; }
.songchild:nth-child(7) { animation-delay: 0.3s; }
.songchild:nth-child(8) { animation-delay: 0.35s; }
.songchild:nth-child(9) { animation-delay: 0.4s; }
.songchild:nth-child(10) { animation-delay: 0.45s; }
.songchild:nth-child(11) { animation-delay: 0.5s; }
.songchild:nth-child(12) { animation-delay: 0.55s; }
.songchild:nth-child(13) { animation-delay: 0.6s; }
.songchild:nth-child(14) { animation-delay: 0.65s; }
.songchild:nth-child(15) { animation-delay: 0.7s; }
.songchild:nth-child(16) { animation-delay: 0.75s; }
.songchild:nth-child(17) { animation-delay: 0.8s; }
.songchild:nth-child(18) { animation-delay: 0.85s; }
.songchild:nth-child(19) { animation-delay: 0.9s; }
.songchild:nth-child(20) { animation-delay: 0.95s; }

/* ETC */



/* MOBILE ZONE !!!!! */

@media only screen and (max-width: 768px) {
  
  /* GLOBAL */
  
  body {
    background-image: url("/media/graystripebgscroll.gif");
  }
  
  .everything { /* giant box */
    top: 10px;
    left: 20px;
    right: 10px;
    bottom: 20px;
  }
  
  .tondronbar {
    font-size: 9vw;
    text-align: center;
    flex-direction: column;
  }
  
  #tondron {
    animation: 0.5s zoomIn;
  }
  
  #subtondron {
    font-size: 4.5vw;
  }
  
  .flexbottom {
    flex-direction: column;
    height: auto;
    overflow: auto;
  }
  
  .linkbox {
    width: auto;
    flex-direction: row;
    overflow-y: hidden;
    overflow-x: auto;
    min-height: 44px; /* replace with something better */
    align-items: flex-start;
  }
  
  .linkchild {
    padding: 10px;
    background-color: lightgray;
    border-bottom: 0;
    border-right: 5px solid gray;
  }
  
  .linkchild:hover {
    transform: translateX(0);
  }
  
  #lastborn {
    border-right: 0;
  }
  
  #descbox {
    border-left: 0;
    border-right: 0;
    border-top: 5px solid gray;
    width: auto;
    overflow: visible;
  }
  
  /* PROJECTS */
  
  .projectentry {
    flex-direction: column-reverse;
  }
  
  .projectdesc {
    width: 100%;
  }
  
  .projectimage {
    margin-left: 0;
    margin-bottom: 10px;
    width: 100%;
    height: auto;
  }
  
  /* BLOG */
  
  .blogentry {
    flex-direction: column;
  }
  
  #blogtitle {
    padding-bottom: 5px;
  }
  
  #bloginfo {
    font-size: 75%;
  }
  
  /* MUSIC */
  
  .flexname {
    flex-direction: column;
  }
  
  #albumcover {
    display: none;
  }
  
  .songbox {
    height: 30vh;
  }
  
  #currentalbum {
    padding-bottom: 0;
    font-size: 100%;
  }
  
  #currentname {
    padding-top: 0;
  }
  
  /* .roomcruncher {
    width: 100%;
    max-width: none;
    padding: 0;
    border: 0;
  } */
  
}