/* HTML STYLES */
a {
  opacity: 0.3;
  color: #ACB6C7;
  text-decoration: none;
  letter-spacing: 2px;
  transition: .4s;
}

a:hover {
  color: #788E99;
  opacity: 1;
}

a:active {
  text-decoration: none;
  color: white;
  opacity: 1;
}

body {
  margin: 0 auto;
  background-color: #0F121E;
  text-align: center;
  color: white;
  font-size: 16px;
  /* font-family: 'Merriweather', serif; */
  /*kind of an ugly font tbh*/
  font-family: 'Inconsolata', monospace;
}

h1, h2, h3 {
  /* font-family: 'Oswald', sans-serif; */
  font-family: 'Karla', sans-serif;
  text-transform: uppercase;
  color: #D4DBEC;
  margin: 10px auto;
  letter-spacing: 0.5px;
}

hr {
  margin: 20px 25% 0 25%;
}

/* Table Styling */
table {
  font-size: 15px;
  table-layout: fixed;
  width: 100%;
}

td, th {
  padding: 5px;
}

/* CSS STYLES */
/* Middle container styling */
.body-text {
  background-color: #181B27;
  border-radius: 5px;
  padding: 20px;
  position: relative;
  margin: 1% auto;
  max-width: 650px;
  line-height: 1.5;
  text-align: left;
  text-justify: inter-word;
}
.justify{
  text-align:justify;
}

/* Banner image */
.banner-pic {
  width: 90%;
  margin: 0 5% 0.5% 5%;
  border-radius: 3px;
}

.inline-pic {
  width: 95%;
  margin: 2%;
  border-radius: 3px;
}

.block-words {
  padding: 3%;
}

.column-style {
  padding: 20px 0;
}

.general-table tr:hover {
  background: #222E40;
}

.general-table {
  border-collapse: collapse;
}

.interests-container {
  height: 30px;
  vertical-align: middle;
}

.interests-container:hover {
  background: #c7cedf;
  border-radius: 5px;
}

.interests-title {
  text-align: center;
  display: inline-block;
  margin: 5.75px 0 5.75px 7px;
}

.interests-description {
  text-align: center;
  display: inline-block;
  margin: 5.75px 25%;
}

.interests-badge {
  text-align: center;
  border-radius: 3px;
  float: right;
  vertical-align: middle;
  min-width: 90px;
  margin: 2.75px 7px 2.75px 0;
  padding: 3px 10px;
}

/* Button Labelling */
.label {
  text-align: center;
  padding: 8px;
  border-radius: 3px;
}

/* Quick links to twitter etc. styling */
.quick-links-container p {
  line-height: 2;
}

.links-container {
  position: absolute;
  right: 0;
  width: 20%;
  min-width: 80px;
  display: grid;
  float: right;
  padding: 3%;
}

#links-container1 {
  top: 15%;
}

#links-container2 {
  top: 15.5%;
}

#links-container3 {
  top: 13%;
}

.links-text {
  width: 75%;
  left: 0;
}

.links-inner {
  color: white;
  margin-bottom: 20%;
  min-width: 120px;
}

.projects-table td:nth-child(3) {
  text-align: end;
  width: auto;
  position: absolute;
  right: 25px;
}

projects-table td:nth-child(2) {
  max-width: 20%;
}

.resume{
  opacity: 0.7;
  color: #0e755e;
  text-decoration: none;
  letter-spacing: 2px;
  transition: .4s;
}

/* Style for body columns */
.reading {
  background-color: #ff9800;
}

/* Orange */
.done {
  background-color: #04AA6D;
}

/* Green */
.active {
  background-color: #04AA6D;
}

/* Green */
.to-read {
  background-color: #2196F3;
}

/* Blue */
.read {
  background-color: #f44336;
}

/* Red */
.not-active {
  background-color: #f44336;
}

/* Red */
.reading-table td:hover {
  background: #222E40;
}

.reading-table-row p {
  margin: 5px 0;
  text-align: left;
  text-justify: none;
}

.reading-table-row tr {
  padding-bottom: 20px;
}

.square-button {
  opacity: 1;
  display: block;
  text-decoration: none;
  color: #788E99;
  border: 1px solid #788E99;
  border-radius: 3px;
  transition: .4s;
  text-align: center;
  min-width: 90px;
  margin: 2.75px 7px 2.75px 0;
  padding: 3px 10px;
}

.square-button:hover {
  background: #788E99;
  color: white;
}

.side-bar-container {
  min-width: 14%;
  position: -webkit-sticky;
  /* for Safari users */
  position: sticky;
  top: 40%;
  right: 2%;
  float: right;
}

.side-bar-container ul {
  padding-inline-start: 0;
}

.side-bar {
  position: -webkit-sticky;
  position: sticky;
  text-align: right;
  text-decoration: none;
}

.side-bar li {
  color: #c7cedf;
  list-style-type: none;
  text-transform: uppercase;
  margin: 0 0 5px 0;
  max-width: 150px;
}

/* Top cotainer for landing image */
.top-container {
  position: relative;
}

.table-wrapper {
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
  border-collapse: collapse;
}

#table-interests td:nth-child(2) {
  text-align: end;
}

.table-interersts td:nth-child(3) {
  width: auto;
}

@media(max-width:1000px) {
  .side-bar li {
    display: none;
  }

  .links-inner {
    margin-bottom: 10%;
  }
}

@media screen and (min-width:1001px) {
  /* when the sidebar first dissapears */
  #resume-link {
    display: none;
  }
}

/* Settings to display tables on mobile */
@media screen and (max-width:500px) {

  /* Force table to not be like tables anymore */
  table, thead, tbody, th, tr {
    display: block;
  }

  /* Hide table headers (but not display: none;, for accessibility) */
  thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  tr {
    border: 1px solid #ccc;
  }

  td {
    word-wrap: break-word;
    border-right: 1px solid;
    max-width: 33%;
  }

  .interests-badge {
    min-width: auto;
  }

  .full-hr {
    display: none;
  }
}

@media screen and (max-width:360px) {

  /* for mobile screens */
  .links-text {
    width: 65%;
    left: 0;
  }
}

@media screen and (max-width:360px) {

  /* for mobile screens */
  .inline-pic {
    width: 145%;
  }
}

@media screen and (max-width:360px) {

  /* for mobile screens */
  .links-container {
    padding: 0;
    width: auto;
    font-size: 12px;
  }

  #links-container1 {
    top: 20%;
  }

  #links-container2 {
    top: 26%;
  }

  #links-container3 {
    top: 27%;
  }
}
