@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&display=swap");

:root {
  --dark-gray: #191919;
  --gray: #404040;
  --turquoise: #3cc4bf;
  --light-gray: #f1f1f1;
  --blue: #0057e1;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  list-style: none;
  font-family: "Montserrat", sans-serif;
  border: none;
}

html,
body {
  height: 100%;
  background-color: var(--light-gray);
}

a {
  color: var(--dark-gray);
  text-decoration: none;
}

a:hover {
  color: var(--blue);
}

/* main index page */
main[id="index"] a {
  font-size: 2rem;
}

/* admin page */
main[id="admin"] {
  font-size: 2rem;
}

.list {
  display: flex;
  flex-direction: column;
}

#list_media_files {
  font-size: small;
  border: 1px solid blue;
  background-color: white;
}

.videoFile {
  /* background-color: var(--gray); */
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  width: 50px;
  height: 50px;
}

.videoFile:hover {
  cursor: pointer;
  opacity: 90%;
}

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

  /* layout out the image and text horizontally - pick one of the alignment classes below */
  .video-item {
    display: flex;
    flex-direction: row;
    overflow: hidden;
    margin-top: 0;
  }

  .video-item-align-start {
    align-items: flex-start;
  }

  .video-item-align-center {
    align-items: center;
  }

  .video-item .video-desc {
    flex: 1;
  }

  .video-title {
    font-size: 2rem;
    font-weight: bold;
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 5;
    line-height: 1;
  }

  .video-desc {
    font-size: 1.4rem;
    font-weight: bold;
    overflow: hidden;
    margin-top: 4px;
    margin-bottom: 8px;
    line-height: 1;
  }

}

/* small screen / mobiles */

@media screen and (max-width:749px) {
  header {
    font-size: .8em;
  }

  /* Used when width of browser is small - overridden below */
  .video-title {
    /* font-size: 80%; */
    font-size: 1.5rem;
    font-weight: bold;
    overflow: hidden;
    margin-top: 2px;
    margin-bottom: 0;
    line-height: 1;
  }

  .video-desc {
    /* font-size: 80%; */
    font-size: 1.2rem;
    font-weight: bold;
    overflow: hidden;
    margin-top: 4px;
    margin-bottom: 0;
    line-height: 1;
  }

  /* layout out the image and text vertically */
  .video-item {
    display: flex;
    flex-direction: column;
    margin-left: 5px;
    min-width: 320px;
  }
}

/* Videos
--------------------------*/

/* remove the underline */
.video-title a {
  text-decoration: none;
}

/* container of all videos */
#videos {
  height: "600px";
  overflow-y: "auto";
}

.small-video-title {
  text-decoration: none;
  font-size: 100%;
  font-weight: normal;
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: 5;
  line-height: 1;
}

.small-video-details {
  margin-left: 5px;
}

.video-date {
  font-size: medium;
  color: #a8a8a8;
  margin: 0 0;
}

.grid {
  display: grid;
  grid-template-columns: auto auto;
  /* grid-template-columns: repeat(3, 80px);
  grid-template-rows: 50px repeat(3, 80px) 60px; */
  gap: 5px;
  font-size: small;
  margin: 0 0;
}

.video-label {
  color: #738AAD;
}

.video-detail {
  color: #a8a8a8;
}

.video-image {
  border: none;
  float: left;
  margin-right: 10px;
  width: 300px;
}

.small-video-image {
  border: none;
  float: left;
  margin-right: 10px;
  width: 50px;
}

.small-video-thumbnail {
  width: 50px;
}

/* Give us dotted line below each video */
.divider {
  border-bottom: 1px dashed #343434;
  padding: 25px 0;
}

/* but not for the last one */
.divider:last-of-type {
  border-bottom: none;
}