@font-face{
    font-family: ScienceFair;
    src: url(./science_fair/Science\ Fair.otf);
}
*{
    margin: 0;
    padding: 0;
    font-family: ScienceFair;
}
/* .hamburger{
    width: 35px;
    height: 5px;
    background-color: black;
    margin: 6px 0;
} */
#elemTable{
    max-width: 90vw;
    margin: auto;
}
h1{
    text-align: center;
}
p{
    font-size: small;
}
#primaryTable{
    display: flex;
    justify-content: row;
    justify-content: center;
}
#alkali{
    display: flex;
    flex-direction: row;
    align-items: flex-end;
}
#alkali .tile{
    background: lightcoral;
}
.tile{
    display: flex;
    flex-direction: column;
    border: 1px solid black;
    width: 75px;
    height: 75px;
    text-align: center;
}
.tile b {
    font-size: 1.5em;
    margin: 5px 0;
}
#transition{
    display: flex;
    align-items: flex-end;
}
#transition .tile{
    background: lightskyblue
}
#metalloids{
    display: flex;
    align-items: flex-end;
}
#metalloids .tile{
    background: lightgreen;
}
#noble .tile{
    background: royalblue;
}
#nides{
    margin-top: 25px;
}
#nides .tile{
    background: cyan
}
.row{
    display: flex;
    justify-content: row;
    justify-content: center;
}
.tile{
    display: flex;
    padding: 5px;
    justify-content: center;
    align-items: center;
    transition: transform .2s;
}
.tile:hover{
  transform: scale(1.75);
}
footer{
    margin-top: 15px;
    text-align: center;
}
footer a{
    font-size: x-large;
}
footer i{
    transition: transform .2s;
    margin-top: 10px;
}
footer i:hover{
    transform: scale(1.9);
  }
@media only screen and (max-width: 1500px) {
    #primaryTable {
      flex-direction: column;
    }
    #alkali{
        flex-direction: column;
        align-items: center;
    }
    #metalloids{
        flex-direction: column;
        align-items: center;
    }
    #transition{
        flex-direction: column;
        align-items: center;
    }
    #noble{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    /* make columns into rows */
    .column{
        display: flex;
        flex-direction: row;
    }
    #nides{
        display: flex;
        flex-wrap: nowrap;
        flex-direction: column;
    }
    #nides .row{
        flex-wrap: wrap;
    }
    .tile{
        margin: 10px;
        width: 100px;
        height: 100px;
    }

  }

  @media only screen and (max-width: 800px) {
    .column{
        display: flex;
        flex-direction: column;
    }
      #alkali{
          flex-direction: row;
          justify-content: center;
          align-items: center;
      }
      #metalloids{
          flex-direction: row;
          align-items: center;
          justify-content: center;
          flex-wrap: wrap;
      }
      #transition{
          flex-direction: row;
          align-items: center;
          flex-wrap: wrap;
          max-width: 100vw;
          justify-content: center;

      }
      #noble .column{
          display: flex;
          flex-direction: row;
          align-items: center;
          flex-wrap: wrap;
          justify-content: center;
      }

  }

  /* @media only screen and (max-width: 640px) {
      #elemTable{
            display: block;
            overflow-y: auto;
            overflow-x: hidden;
            transform: rotate(-90deg);
            transform-origin: right top;
            min-height: 100vh;
            transform:rotate(-90deg) translateY(-100px);
            transform-origin:right top;
      }
      #elemTable >div {
          
        transform: rotate(90deg);
        transform-origin: right top;
      }
  } */