:root {
  --bg: linear-gradient(90deg, rgba(251,254,246,1) 0%, rgba(250,236,255,1) 48%, rgba(240,253,255,1) 100%);
  --bgDarker: rgba( 232, 218, 239, 1.0);
  --headerBg: linear-gradient(90deg, rgba(251,254,246,0.75) 0%, rgba(250,236,255,0.75) 48%, rgba(240,253,255,0.75) 100%);
  --textColor: rgba(0,0,0,0.86);
  --linkColor: MediumVioletRed; /* DeepPink; */
  --basePadding: 2em;
}

*, *:after, *:before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
.unselectable {
  -moz-user-select: -moz-none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  -o-user-select: none;
  user-select: none;
}

::-webkit-scrollbar {
  width: 0.65em;
  background-color: transparent;
}
::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.35);
  border: none;
}
::-webkit-scrollbar-track {
  box-shadow: none;
  background-color: transparent;
}


body {
  margin: 0px;
  padding: 0px;
  background: var(--bg);
  color: var(--textColor);
  font-family: 'VG5000';
  line-height: 1.35em;
}

.pageWrapper {
  display: block;
  position: relative;
}

header {
  width: 100%;
  margin-bottom: 2em;
  position: fixed;
  top: 0px;
  left: 0px;
  z-index: 999;
  padding: 0px;
  background: var(--headerBg);
}


/* ******************************************************************************** */
/* text */

h1, h2, h3, h4, h5, h6 {
  font-family: 'karrikregular';
  font-weight: 400;
  margin: 0px 0px 1em 0px;
  line-height: 1.05em;
}

h2 {
  font-size: 2.5em;
}

p {
  margin: 0px 0px 1.5em 0px;
}
p.noMargin {
  margin: 0px;
}
.center {
  text-align: center;
}

a {
  color: var(--linkColor);
}


/* more page wrappers */

div.linkWrapper {
  display: flex;
  flex-direction: row;
  gap: 1em;
}

div.linkWrapper a {
  background-color: lightblue;
  padding: 1em 1em;
  border: 1px solid rgba(0,0,0,0.5);
  border-radius: 5px;
  font-family: "Karrik", sans-serif;
  font-weight: 300;
  text-decoration: none;
  color: var(--textColor);
}
div.linkWrapper a:hover {
  background-color: pink;
  text-decoration: none;
}



/* ******************************************************************************** */
/* menu */

header nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  /* height: 5em; */ /* now in media queries */
  backdrop-filter: blur(10px);
  justify-content: center; /* space-around; */
  align-items: center;
  
}
header nav a {
  text-decoration: none;
  padding: 0px;
  margin: 0px;
  line-height: 1em;
  display: inline-block;
  font-size: 0.8725em;
  letter-spacing: 0.1em; /* 0.125em; /* 0.01em; */
  font-family: 'karrikregular';
  /* border: 1px solid pink; */
}
header nav a:hover {
  text-decoration: none; /* underline; */
  color: var(--textColor);
}



/* ******************************************************************************** */
/* main */

main {
  padding: 0px; /* var(--basePadding); */
}

.inside {
  max-width: 1024px;
  margin: 0px auto;  
  padding: var(--basePadding) var(--basePadding) calc(var(--basePadding) / 4) var(--basePadding);
}
.insideWide {
  max-width: none;
  margin: 0px auto;  
  padding: var(--basePadding) var(--basePadding) calc(var(--basePadding) / 4) var(--basePadding);
}

p.divider {
  margin-top: 0px; /* 1.5em; */
  margin-bottom: 1em;
  height: 4em;
  background-image: url(../images/mGlasses2.png); /* url(../images/vignet4.png); */
  background-position: -200px center;
  background-repeat: repeat-x;
  background-size: auto 40px; /* 75%; /* auto 3em; */
  opacity: 0.75; /* 1; /* 0.35; */
}

ul {
  padding: 0px 0px 0px 1em;
  margin: 0px 0px 1.5em 0px;
}

.date {
  color: rgba(0,0,0,0.65);
  margin-right: 0.5em;
}

/* ******************************************************************************** */
/* hero img wrapper */

.heroImgWrapper {
  display: block;
  width: 100%;
  height: auto; /* 30em; */
  overflow: hidden;
  background-color: var(--bgDarker); /* #0f0043; */
  max-width: 1024px;
  margin: 0px auto 1em auto;
}
.heroImgWrapper img {
  display: block;
  float: left;
  width: 100%;
  height: auto;
}

img.fullWidth {
  display: block;
  width: 100%;
  height: auto;
}
img.centered {
  display: block;
  margin: 0px auto;
}

.caption {
  text-align: center;
  opacity: 0.65;
}
.bigImgShadow {
  box-shadow: 0px 6px 32px rgba(167, 130, 130, 0.2);
}

.cs51Logos {
  padding: 0.5em 0px 1.5em 0px; /* 1.5em 0px; */
  max-width: 100%;
  width: 380px; /* 340px; */
  opacity: 0.75;
}

.videoWrapper {
  display: flex;
  flex-direction: column;
  flex: 0 0 100%;
  margin-bottom: 2em;
}
/*
.videoWrapper > * {
  border: 1px solid red;
}
*/
.videoWrapper video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.25em;
  overflow: hidden;
  box-shadow: 0px 6px 32px rgba(167, 130, 130, 0.2);
}
.videoWrapper div.videoCaption {
  padding: 1em 0px 0px 0px;
  text-align: center;
  font-size: 0.9em;
  opacity: 0.65;
  font-style: italic;
}


/* ******************************************************************************* */
/* MENU */

.menuWrapper {
  background-color: transparent; /* rgba(0,0,0,0.15); /* black; */
  padding: 0px;
  display: flex;
  flex-direction: row;
  justify-content: space-between; /* center; /* space-between; */
  font-family: sans-serif; /* 'JetBrains Mono', monospace; */
  font-size: 13px;
  font-weight: 300;
  margin-bottom: 0px; /* 1em; */
  border-bottom: 1px solid rgba(0,0,0,0.15);
}
.menuWrapper nav ul li a {
  text-decoration: none;
  word-spacing: -0.35ch;
  padding: 0.75em 1em; /* 0.75em 1em; */
  display: block;
  border-right: 1px solid rgba(0,0,0,0.15);
  position: relative;
  color: var(--textColor);
}
.menuWrapper nav ul li:first-of-type a {
  /* border-left: 1px solid rgba(0,0,0,0.15); */
}
.menuWrapper nav ul li a:hover {
  text-decoration: underline;
}

.menuWrapper nav ul li.active a {
  background-color: rgba(255,255,255,0.2);
}
/*
.menuWrapper nav ul li.active a::after {
  content: " ";
  position: absolute;
  left: calc(50% - 0.3em);
  top: -0.4em;
  width: 0.6em;
  height: 0.6em;
  background-color: var(--textColor);
  border-radius: 50%;
  opacity: .9;
}
*/
/* navigation menu */
.menuWrapper nav#menu {
  color: white;
  list-style-type: none;
  overflow: hidden;
}
.menuWrapper nav#menu ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0px; /* 1.125em; */
  margin: 0px;
  padding: 0px;
}
.menuWrapper nav#menu ul li {
  display: inline;
  position: relative;
}

/* user menu */
/*
.menuWrapper nav#userMenu {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1em;
  margin: 0px;
  padding: 0px;
  color: white;
  padding: 0.75em 1em;
}
.menuWrapper nav#userMenu form {
  margin: 0px;
}
*/


/* ******************************************************************************** */
/* FORM and TABLE css */


form.login {
  display: flex;
  flex-direction: column;
  max-width: 40ch;
  gap: 0.35em;
  margin-bottom: 1.5em;
}
p.form-error {
  margin: 0px;
  text-align: left;
  color: red;
}
p.form-success {
  margin: 0px;
  text-align: left;
  color: green;
}



form#searchForm {
  display: flex;
}
form#searchForm > div:first-of-type {
  margin-right: 1em;
}
form input, 
form button,
form#searchForm div {
  font-family: sans-serif; /* inherit; */
  font-size: 14px; /* inherit; /* inherit; */
}
form input::placeholder {
  font-style: italic;
}
form#searchForm .resultsAmount {
  font-size: 14px; /* inherit; /* inherit; */
  font-style: italic;
}


table {
  border: 1px solid black;
  width: 100%;
  border-collapse: collapse;
  border: 0px; /* 1px solid grey; */
  font-family: sans-serif;
}
th {
  padding: 0.25em 0.5em;
  text-align: left;
  background-color: #04AA6D;
  color: white;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
}
th.first {
  background-color: lightseagreen; /* blue; */
}
th.second {
  background-color: orange;
}

td {
  padding: 0.35em 0.5em;
  text-align: left;
  border-bottom: 0px; /* 1px solid #ddd; */
  font-size: 14px;
  line-height: 1.125em;
}

tr:nth-child(even) td {
  background-color: #e2e2e2;
}
tr:nth-child(even) td.first {
  background-color: rgba(0,0,255,0.125);
}
tr:nth-child(even) td.second {
  background-color: rgba(255,127,0,0.15); /* rgba(255,0,255,0.065); */
}
tr:hover td,
tr:hover td.first,
tr:hover td.second {
  background-color: rgba(0,0,0,0.15);
}


td.td_userId,
td.td_viewer {
  text-align: center;
}
/*
tr:hover td {
  background-color: rgba(0,0,0,0.35);
}
*/



/* ******************************************************************************** */
/* gallery */

.galleryWrapper {
  display: block;
  width: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 0.75em; /* 0.8em; /* 1em; */
}

.galleryWrapper a img {
  width: 100%;
  height: auto;
  display: block;
  float: left;
}





/* ******************************************************************************** */
/* ******************************************************************************** */
/* MEDIA queries */

@media screen {

  :root {
    --basePadding: 1em;  
  }

  body {
    font-size: 14px;
  }

  header nav {
    min-height: 5em;
    padding: 1em;
    column-gap: 0.75em; /* 1.5em; */
    row-gap: 0.5em;
  }


  .topSpacer {
    height: 5em;
  }

  .galleryWrapper {
    grid-template-columns: repeat(1, 1fr);
  }  

}


/* ******************************************************************************** */
@media screen and (min-width: 400px) {

  .galleryWrapper {
    grid-template-columns: repeat(2, 1fr);
  }    

}


/* ******************************************************************************** */
@media screen and (min-width: 600px) {

  :root {
    --basePadding: 2em;  
  }

  body {
    font-size: 16px;
  }

  header nav {
    column-gap: 1.5em;
    row-gap: 0.5em;
  }  

  .topSpacer {
    height: 5em;
  }

  .galleryWrapper {
    grid-template-columns: repeat(3, 1fr);
  }    

}


/* ******************************************************************************** */
@media screen and (min-width: 1024px) {

  :root {
    --basePadding: 2.5em;  
  }

  body {
    font-size: 17px;
  }

  header nav {
    min-height: 6em;
  }

  .topSpacer {
    height: 6em;
  }

  .galleryWrapper {
    grid-template-columns: repeat(4, 1fr);
  }    

}



/* ******************************************************************************** */
/* ******************************************************************************** */
/* ******************************************************************************** */
/* ******************************************************************************** */


@font-face {
  font-family: 'VG5000';
  src:    url('../fonts/VG5000-Regular_web.eot');
  src:    url('../fonts/VG5000-Regular_web.eot?#iefix') format('embedded-opentype'),
          url('../fonts/VG5000-Regular_web.woff') format('woff'),
          url('../fonts/VG5000-Regular_web.woff2') format('woff2'),
          url('../fonts/VG5000-Regular_web.ttf') format('truetype'),
          url('../fonts/VG5000-Regular_web.svg#svgFontName') format('svg');
  font-weight: normal;
  font-style: normal;
}

/* KARRIK */
@font-face {
  font-family: 'karrikregular';
  src: url('../fonts/Karrik-Regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/Karrik-Regular.woff') format('woff'), /* Modern Browsers */
       url('../fonts/Karrik-Regular.ttf') format('truetype'); /* Safari, Android, iOS */
  font-style: normal;
  font-weight: normal;       
}
@font-face {
  font-family: 'karrikitalic';
  src: url('../fonts/karrik-italic-webfont.woff2') format('woff2'),
       url('../fonts/karrik-italic-webfont.woff') format('woff'),
       url('../fonts/karrik-italic-webfont.ttf') format('woff');
  font-weight: normal;
  font-style: normal;
}