@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
    box-sizing: border-box;
  }
  
  /* 2. Remove default margin */
  * {
    margin: 0;
  }
  
  body {
    /* 3. Add accessible line-height */
    line-height: 1.5;
    /* 4. Improve text rendering */
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    min-height: 100vh;
    margin: 0;
    font-family: "VT323", serif;
    font-weight: 300;
    font-style: normal;
    background-color: hsl(183 100% 25%);
  }
  
  @media only screen and (max-width: 600px) {
    body {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
    }
  }

  h1 {
    margin-bottom: 18px;
  }

  #viewerContent > p {
    margin-bottom: 18px;
  }

  /* 5. Improve media defaults */
  img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
  }
  
  /* 6. Inherit fonts for form controls */
  input, button, textarea, select {
    font: inherit;
  }
  
  /* 7. Avoid text overflows */
  p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
  }
  
  /* 8. Improve line wrapping */
  p {
    text-wrap: pretty;
  }
  h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
  }
  
  /*
    9. Create a root stacking context
  */
  #root, #__next {
    isolation: isolate;
  }

  /* Left Icons Styles*/
  #iconList {
    margin-top: 1%;
    flex: 0.75;
    display: flex;
    flex-direction: column;
    gap: 30px 30px;
  }

  @media only screen and (max-width: 600px) {
    #iconList {
      order: 2;
      flex-direction: row;
      justify-content: space-evenly;
      min-width: 100%;
    }
  }

  .icon {
    max-width: 128px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-evenly;    
    align-items: center;
    color: inherit;
    text-decoration: none;
  }

  /* Window Viewer Styles*/
  @keyframes smooth-appear {
    to{
      bottom: 20px;
      opacity:1;
    }
  }

  #viewerWindow {
    flex: 4;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: .025em;
    -webkit-font-smoothing: none;
    background-color: hsl(300, 5%, 74%);
    border-style: outset;
    height: 100%;
    margin-top: 2%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    bottom: -100%;
    animation: smooth-appear 1s ease forwards;
  }

  @media only screen and (max-width: 600px) {
    #viewerWindow {
      order: 1;
      margin-top: 0;
    }
  }

  #viewerHeader {
    max-height: 25px;
    text-align: left;
    color: #fff;
    padding: .25em .75em;
    line-height: 1.4;
    border-top: 1px solid silver;
    border-left: 1px solid silver;
    border-right: 2px solid silver;
    border-bottom: 1px solid silver;
    background: navy;
    margin-top: 0;
    display: flex;
    align-items: stretch;
    flex-direction: row;
    justify-content: space-between;
    min-width: 100%;
  }

  #viewerButton {
    display: block;
    border-style: outset;
    background: hsl(300, 5%, 74%);
    color:black;
    text-align: center;
    align-content: center;
    min-width: 16px;
    min-height: 16px;
  }

  #viewerContent {
    height: 100%;
    padding: 10px 10px 35px;
    background: #fff;
    font-family: sans-serif;
    text-wrap: wrap;
  }

  @media only screen and (max-width: 600px) {
    #viewerContent {
      padding: 10px 10px 10px;
    }
  }

  /* Bottom Bar Styles */
  footer {
    min-width: 100%;
    background: hsl(300, 5%, 74%);
    display: flex;
    align-items: stretch;
    text-align: center;
    border-style: outset;
    align-self: flex-end;
  }

  @media only screen and (max-width: 600px) {
    footer {
      order: 3;
    }
  }

  footer > div {
    border-style: outset;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .toolbarBox {
    padding-left: 5pc;
    padding-right: 5pc;
  }

  #startBox {
    border-style: outset;
    padding-left: 3pc;
    padding-right: 3pc;
  }
  
  img {
    border-radius: 50%;
    max-width: 50%;
    padding: 3%;
  }

  @media only screen and (max-width: 600px) {
    img {
      max-width: 100%;
    }
  }

  #clockBox {
    border-style: inset;
    margin-left: auto;
  }