/*
 Theme Name:   Bashar Twenty Twenty One
 description: >-
   Child theme for Bashar Al-Daomi's personal site. Parent theme: twentytwentyone
 Author:       Kyle Roden
 Template:     twentytwentyone
 Version:      1.0.0
*/


/* color palette:  */
/* white / very light yellow */
/* #fffbf4 */
/* very light blue for link bg color  */
/* C1E0D5 */
/* green */
/* 6AA18D */
/* grey */
/* CDD1D0 */
/* brown  maybe use maybe not ? */
/* 7D663C */

/* the first variable (responsive--aligndefault-width) has been changed from 610 to 700 (at the end of the min function) */
:root {
  --bg-color: #fffbf4;
  --light-yellow:  #fffbf4;
  --green: #6AA18D;
  --grey: #CDD1D0;
  --light-blue: #C1E0D5;
  --global--color-primary: #111;
  --global--font-primary: 'Fira Sans', 'Helvetica Neue', sans-serif;
  --global--font-secondary: 'Martel Sans', sans-serif;
  --global-font-sans: var(--global--font-primary);
  --heading--font-family: var(--global--font-primary);
  --primary-nav--font-family: var(--global-font-sans);
  --footer--font-family: var(--global--font-secondary);
  --entry-content--font-family: var(--global--font-secondary);
  --list--font-family: var(--global--font-secondary);
}
@media screen and (min-width: 822px) {
  :root {
    --responsive--aligndefault-width : min(calc(100vw - 8 * var(--global--spacing-horizontal)), 700px);
  }
}
/* var(--heading--font-family) */

body {
  background-color: var(--bg-color);
  font-family: var(--global-font-serif);
}
h1,
h2,
h3 {
  font-weight: 700;
}
.post-thumbnail,
.entry-content .wp-audio-shortcode,
.entry-content> :not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.woocommerce),
[class*="inner-container"]> :not(.entry-content):not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.woocommerce),
.default-max-width {
  /* max-width: var(--responsive--alignwide-width); */
  /* margin-left: auto;
  margin-right: auto; */
}

main#main .entry-content .wp-block-group__inner-container .wp-block-columns {
  /* should be full width of alignwide group, which is set in wp backend on group settings  */
  max-width: var(--responsive--alignwide-width);
}

.site-branding .site-logo img {
  width: 200px;
}

/* link hover styles  */

.entry-content p a,
.entry-content a,
.blog article.type-post h2 > a {
  background-image: linear-gradient(var(--light-blue), var(--light-blue));
  background-position: 0 100%;
  background-size: 100% 35%;
  background-repeat: no-repeat;
  color: inherit;
  display: initial;
  transition: 0.3s ease background;
  text-decoration: none;
}


/* Then the hover style: */
.entry-content a:hover,
.entry-content p a:hover,
.blog article.type-post h2 > a:hover {
  background-position: 100% 200%;
  background-size: 100% 100%;
  text-decoration: none;
}



.primary-navigation > div > .menu-wrapper > li > .sub-menu {
  padding-top: 0;
}

/* timeline for career  */
/* taken from https://www.w3schools.com/howto/howto_css_timeline.asp */

/* The actual timeline (the vertical ruler) */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  background-color: var(--green);
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* The actual timeline (the vertical ruler) */
.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: white;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

/* Container around content */
.container {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

/* The circles on the timeline */
.container::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: white;
  border: 4px solid #FF9F55;
  /* border: 4px solid var(--light-yellow); */
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

/* Place the container to the left */
.left {
  left: 0;
}

/* Place the container to the right */
.right {
  left: 50%;
}

/* Add arrows to the left container (pointing right) */
.left::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  right: 30px;
  border: medium solid white;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent white;
}

/* Add arrows to the right container (pointing left) */
.right::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  left: 30px;
  border: medium solid white;
  border-width: 10px 10px 10px 0;
  border-color: transparent white transparent transparent;
}

/* Fix the circle for containers on the right side */
.right::after {
  /* left: -16px; */
}
.container.left::after {
  right: -13px;
}
.container.right::after {
  left: -12px;
}
/* The actual content */
.content {
  padding: 20px 30px;
  background-color: white;
  position: relative;
  border-radius: 6px;
}

/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 600px) {
/* Place the timelime to the left */
  .timeline::after {
    left: 31px;
  }

/* Full-width containers */
  .container {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

/* Make sure that all arrows are pointing leftwards */
  .container::before {
    left: 60px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
  }

/* Make sure all circles are at the same spot */
  .container.left::after, 
  .container.right::after {
    left: 19px;
  }

/* Make all right containers behave like the left ones */
  .right {
    left: 0%;
  }
}

/* end timeline  */
/* //accordions  */
.c-accordion__item {
  margin-bottom: 40px;
}
.c-accordion__item::after {
  content: '';
  background-color: #d6d6d6;
  height: 1px;
  width: 82%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 20px;
}
.c-accordion__content {
  padding-top: 1rem;
}

.blog .post-thumbnail-inner.alignwide {
  display: block;
  max-width: var(--responsive--aligndefault-width);
}

article.post .post-taxonomies {
  display: none;
}
.wp-block-post-template li.wp-block-post {
  margin-bottom: 30px;
}