/* style for medical publications projects: TTOTT, anatomy ebooks */
/* Style the ROOT html and body content, style are inherited by the children of HTML elements aka containers */

html,
body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 1rem;
  background: #ffffff;
  color: #232323;
  /* Nicer fonts */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  /* Enable kerning */
  font-feature-settings: "liga", "kern";
  text-align: justify;
}

/* - - - -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Style common elements of all pages */

h1,
h2,
h3,
h4,
h5 {
  color: #232323;
  margin: 0;
  padding: 0;
  line-height: 1.5em;
}

p {
  line-height: 1.2em;
}
hr {
  margin: 30px 0;
}

img {
  display: block !important;
}

/* - - - -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Header */

#header {
  display: block;
  width: 100%;
  padding: 10px;
  text-align: center;
  position: relative;
}

#header h1 {
  margin: 0 0 5px 0;
  padding: 0;
}

#header h2 {
  margin: 0;
  padding: 0;
}

#header button {
  margin: 0 0 0 33%;
  position: absolute;
  font-size: 1.2rem;
  padding: 5px;
  background: #ffffff;
  border: 1px solid black;
  border-radius: 25px;
}

#header button:hover {
  background-color: yellow;
}

/* - - - -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Top Nav — secondary strip under site header (TTOTT / medical pages) */

.medical-nav {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1.75rem;
  width: 100%;
  max-width: 1024px;
  margin: 1.25rem auto 1.75rem;
  padding: 0.75rem 10px 1rem;
  border-bottom: 1px solid #d8d8d8;
  background: linear-gradient(to bottom, #fafafa 0%, #ffffff 100%);
}

.medical-nav a {
  color: #232323;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  padding: 0.35rem 0.15rem;
  border-bottom: 2px solid transparent;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.medical-nav a:hover,
.medical-nav a:focus-visible {
  color: #000000;
  border-bottom-color: #232323;
  outline: none;
}

.medical-nav a[aria-current="page"] {
  color: #000000;
  border-bottom-color: #232323;
}

@media (max-width: 640px) {
  .medical-nav {
    justify-content: flex-start;
    gap: 0.35rem 1.1rem;
    margin: 1rem auto 1.25rem;
    padding-left: 12px;
    padding-right: 12px;
  }

  .medical-nav a {
    font-size: 0.98rem;
  }
}

#nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

#nav ul li {
  display: inline-block;
}

#nav ul li:not(:last-child) {
  margin-right: 15px;
}

#nav ul li a,
#nav ul li a:visited {
  color: #000000;
  font-size: 1.1rem;
  font-weight: bold;
}

.dropdown button {
  font-size: 1.1rem;
  font-weight: bold;
  background: #ffffff;
  color: #232323;
  border: none;
}

.dropdown a {
  display: block;
  color: #232323;
  text-decoration: none;
  padding: 10px;
  text-align: left;
}

.dropdown .navcontent {
  position: absolute;
  display: none;
  background: #ffffff;
}

.dropdown:hover .navcontent {
  display: block;
}

/* - - - -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Content container - used on all pages to contain all content */
/* NOTE: It's not an ID, as it's used more than once per a page (main content area and footer, could be more) */

.content_container {
  display: flex;
  width: 100%;
  margin: 0 0 10px 0;
}

.content_container .content_container_inner {
  display: flex;
  margin: auto; /* trick to center a div in side another dive that's 100% width */
  max-width: 1024px;
  width: 100%;
  padding: 10px;
}

/* Overview of the pages PBR, TTOTT */

#overview {
  width: 100%;
}

#overview .section_container {
  width: 100%;
  padding: 5px;
  margin: 0 0 40px 0;
  border-bottom: 1px solid #999999;
}

#overview .section_container h2 {
  margin: 0 0 20px 0;
  padding: 0;
}

#overview .grid_container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
}

#overview * {
  transition: all 0.75s ease;
}

#overview .grid_container .grid_item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: 32%;
  height: auto;
  overflow: hidden;
  margin: 0 0 25px 0;
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
}

#overview .grid_container .grid_item:hover {
  text-decoration: none;
}

#overview .grid_item .grid_item_bg {
  order: 1;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 185px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center !important;
  overflow: hidden;
}

#overview .grid_item .grid_item_text {
  order: 2;
  position: relative;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 8px 12px;
  text-align: center;
  color: #232323;
  font-weight: bold;
  font-size: 1.05rem;
  line-height: 1.3;
}

#overview .grid_item:hover .grid_item_bg {
  transform: scale(1.1);
}

/* - - - -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Here is where you set the visiblity of the sections */
/* set display to block to show that section; set display to none to hide that section */

#overview .ttott {
  display: block;
}

/* - - - -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Here is where you set the backgrounds for every box in all the sections */

#overview .ttott_bg_1 {
  background: url("../../assets/images/home/TTOTT_1_Cover.png");
}

#overview .ttott_bg_2 {
  background: url("../../assets/images/home/TTOTT_2_Cover.png");
}

#overview .ttott_bg_3 {
  background: url("../../assets/images/home/TTOTT_3_Cover.png");
}

/* - - - -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Responsive programming - to handle scaling*/

@media (max-width: 780px) {
  #overview .grid_container {
    justify-content: space-around;
    width: 100%;
  }

  #overview .grid_container .grid_item {
    width: 43%;
  }

  #overview .grid_item .grid_item_bg {
    height: 185px;
  }
}

@media (max-width: 640px) {
  #overview .grid_container {
    justify-content: space-around;
    width: 100%;
  }

  #overview .grid_container .grid_item {
    width: 80%;
  }

  #overview .grid_item .grid_item_bg {
    height: 240px;
  }
}

/* - - - -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Footer */

#footer {
  margin: 20px 0 0 0;
  font-size: 0.86rem;
  background: #eeeeee;
}

/* - - - -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
