/* CSS Variables */
:root {
  --primary: white;
  --dark: black;
  --light: #fff;
  --lighter: #f1f1f1;
  --shadow: 0 1px 5px rgba (104, 104, 104, 0.8);
  --radius: 0.4rem;
  --font-family: 'Poppins', sans-serif;

}
/* end of Variables */

h1, h2, h3, p{
  font-weight: 200;
}
h1, h2, h3{
  font-family: 'Tajawal', sans-serif;
  letter-spacing: -0.05rem;
  line-height: 1.95rem;
  margin: 0.5rem;
}
h1{
  font-size: 2rem;
}
h2{
  font-size: 1.75rem;
}
h3{
  font-size: 1.5rem;
}
p{
  font-size: 1rem;
  margin: 0.75rem;
}
span{
  font-family: 'Tajawal', sans-serif;    
  font-weight: 200;
}

html {
  font-size: 22px;
  box-sizing: border-box; /* padding - does not affect the width of the element */
}

body {
  border: auto 0;
  background: var(--dark);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 100;
  width: 100%;
  line-height: 1.5rem;
  overflow-x: hidden;
  color: var(--primary);
}

.btn {
  background: var(--dark);
  color: var(--light);
  padding: 0.6rem 1.3rem;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius);
}

img {
  max-width: 100%;
}

/* Burger code */
.nav-container {
  width: 100%; /*this sets the navigation bar to stretch the full width of the browser */
  background: var(--dark);
  top: 0;
  z-index: 2;
  box-shadow: var(--shadow);
}

nav {
  max-width: 90%; /*This sets the maximum width of the navigation elements */
  margin: 0 auto; /*this margin ensures the menu is always centered*/
  display: grid;
  grid-template-columns: 50% auto 25%;
}

.left-menu {
  grid-column: 1;
  align-self: center;
}
.logo {
  grid-template-columns: 2;
  padding: 1rem;
  font-weight: 300;
}
#nav-toggle,
.MenuIcon {
  display: none;
  font-size: 1rem;
}

.MenuIcon {
  width: 40px;
  grid-column: 1;
  align-self: center;
  margin-left: 20px;
}

@media only screen and (max-width: 780px) {
  .MenuIcon {
    display: inline-block;
  }
  .left-menu {
    display: none;
  }
  #nav-toggle:checked ~ .left-menu {
    display: grid;
    grid-row: 2;
  }
}
nav a {
  color: var(--primary);
  text-decoration: none;
  text-transform: uppercase;
  font-family: 'Poppins', sans-serif;
  transition: 0.3s all ease-in-out;
}
nav a:hover {
  opacity: 0.7;
}

.left-menu a {
  padding: 10px 0;
  margin-left: 10px;
  font-size: 0.85rem;
  font-weight: 300;
}
/* End of Burger code */

.FullscreenVideo {
  width: 100%;
}

.cardPhoto {
  width: 100%;
}

.cardWhite {
  padding: 1rem 1.5rem;
}

.cardMiddle {
  max-width: 1000px;
  margin: 0 auto;
  Padding: 1rem;
}

.JbVideo {
  display: flex;
  justify-content: center;
  align-items: center;
  display: grid;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  grid-template-columns: repeat(1, minmax(400px, 1fr));
}

.OneColumn {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  display: grid;
  grid-gap: 1rem;
  grid-template-columns: repeat(1, minmax(400px, 1fr));
  width: 100%;
}

.TwoColumns {
  display: flex;
  justify-content: center;
  align-items: center;
  display: grid;
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  grid-template-columns: repeat(1, minmax(400px, 1fr));
}

.FourColumns {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-gap: 0.25rem;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.JbArtsFooter {
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 100%;
  max-width: 1000px;
  text-align: justify;
}

.JbFooter {
  background-color: black;
  color: white;
  padding: 1rem;
  height: 1rem;
  font-size: 0.75rem;
}

/*Links:*/

a:link {
  color: var(--light);
  text-decoration: none;
  text-shadow: 0 0 4px #fff, 0 0 12px #ff00de; 
}

a:hover {
  color: var(--primary);
  text-shadow: 0 0 8px #A200FF, 0 0 12px #A200FF;
}

a:visited {
  color: var(--lighter);
  text-shadow: 0 0 8px #A200FF, 0 0 12px #A200FF;
}

/* This CSS refers to the text showing over the portfolio photos */
a.hovertext {
  position: relative;
  width: 15%;
  text-decoration: none;
  text-align: center;
}
a.hovertext:after {
  content: attr(title);
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 0.5em 20px;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--lighter);
  opacity: 0;
  -webkit-transition: 0.5s;
  -moz-transition: 0.5s;
  -o-transition: 0.5s;
  -ms-transition: 0.5s;
}
a.hovertext:hover:after,
a.hovertext:focus:after {
  opacity: 1;
}
/* End of photo text CSS */

@media (min-width: 768px) /*iPad mini in portrait orientation*/ {
  .JbArtsHeader {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
  }
  .JbArtsFooter {
    display: grid;
    grid-template-columns: repeat(auto-fit, 1fr);
    text-align: justify;
  }
  .TwoColumns {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    text-align: justify;
  }
}