/* Navigation Bar */
.nav-link {
  color: green;
}

.nav-item > a:hover {
  color: green;
}

/*code to change background color*/
.navbar-nav > .active > a {
  background-color: #c0c0c0;
  color: purple;
}

/* Page containers */
.center {
  margin: auto;
  width: 100%;
}

.body_center {
  border: 3px solid grey;
  padding: 10px;
}

input[type="text"],
select {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

@media screen and (max-width: 800px) {
  #calendar {
    font-size: 50%;
  }
}

#calendar {
  margin: auto;
  height: 85vh;
}

/* Calculator Results page */
#result {
  display: flex;
  flex-flow: column wrap;
  align-items: center;
  justify-content: center;
}

#cal_result_buttons {
  display: inline-flex;
  flex-direction: row;
}

#cal_result_buttons > button {
  margin: 30px;
}

/* from here taken from https://www.w3schools.com/css/css_form.asp */
input[type="submit"] {
  width: 100%;
  background-color: #4caf50;
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

input[type="submit"]:hover {
  background-color: #45a049;
}

/* IPPT Calculator Form */
div > form {
  border-radius: 5px;
  background-color: #f2f2f2;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
/* until here taken from https://www.w3schools.com/css/css_form.asp */

/* IPPT Calculator Results Table & Profile Page IPPT High Score Table */

.tg  {
  border-collapse:collapse;
  border-spacing:0;
  border-width: 2px;
}
.tg td{
  border-color:black;
  border-style:solid;
  border-width:2px;
  font-family:Arial, sans-serif;
  font-size:14px;
  overflow:hidden;
  padding:10px 5px;
  word-break:normal;
}
.tg th{
  border-color:black;
  border-style:solid;
  border-width:2px;
  font-family:Arial, sans-serif;
  font-size:14px;
  font-weight:normal;
  overflow:hidden;
  padding:10px 5px;
  word-break:normal;
}
/*Header*/
.tg .tg-8wkz{
  background-color:#c0c0c0;
  border-color:#333333;
  font-family:Arial, Helvetica, sans-serif !important;
  font-size:20px;
  font-weight:bold;
  text-align:center;
  vertical-align:middle
}
/*Points*/
.tg .tg-37t9{
  background-color:white;
  border-color:#333333;
  border-width: 2px;
  font-family:Arial, Helvetica, sans-serif !important;
  font-size:20px;
  font-weight:bold;
  text-align:center;
  vertical-align:middle
}
/*Remarks*/
.tg .tg-ik00{
  background-color:white;
  border-color:#333333;
  border-width: 2px;
  font-family:Arial, Helvetica, sans-serif !important;font-size:16px;
  font-size:20px;
  text-align:center;
  vertical-align:middle
}

/* Dropdown for profile & signout button */
/* from here modified from https://blog.hubspot.com/website/html-dropdown */
.dropdown {
  display: inline-block;
  position: relative;
}
#profile_dropdown {
  width: 100px;
}
.dropdown-content {
  display: none;
  position: absolute;
  width: 100%;
}
.dropdown:hover .dropdown-content {
  display: block;
  width: 100%;
}
.dropdown-content button {
  display: block;
  color: #000000;
  padding: 5px;
  text-decoration: none;
  width: 100%;
}
.dropdown-content button:hover {
  color: #ffffff;
  background-color: #00a4bd;
  width: 100%;
}
/* until here modified from https://blog.hubspot.com/website/html-dropdown */

/* For profile page */
.parent {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(4, auto);
  grid-column-gap: 5px;
  grid-row-gap: 20px;
}

.div1 {
  grid-area: 1 / 1 / 2 / 2;
  justify-self: center;
}

.div2 {
  grid-area: 2 / 1 / 3 / 2;
}

progress {
  border: none;
  width: 100%;
}

/**
#currentPointsLabel {
  display: inline;
  margin-left: calc(
    ((60 / 85)) * 88%
  );
}
*/

.end {
  float: right;
  text-align: right;
}

.div3 {
  grid-area: 3 / 1 / 4 / 2;
}

.div4 {
  grid-area: 4 / 1 / 5 / 2;
}

.div5 > div {
  display: flex;
  flex-flow: column wrap;
  align-items: center;
  justify-content: center;
}

/* Exercise Recommendation Tabs */
/* from here modified from https://www.w3schools.com/howto/howto_js_tabs.asp */
/* Style the tab */
.tab {
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

/* Style the buttons inside the tab */
.tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  font-size: 17px;
  flex-grow: 1;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: #ccc;
}

/* Style the tab content */
.tabcontent {
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-top: none;
}
/* until here modified from https://www.w3schools.com/howto/howto_js_tabs.asp */

/* ITpt Rewards Page */
.rewards_game {
  display: flex;
  flex-direction: column;
}