@font-face {
    font-family: SweetSans;
    src: url("https://s3.amazonaws.com/bogolan/fonts/SweetSansPro-Light.otf") format("opentype");
}

@font-face {
    font-family: SweetSans;
    font-weight: bold;
    src: url("https://s3.amazonaws.com/bogolan/fonts/SweetSansPro-Medium.otf") format("opentype");
}

body {
  font-family: 'Roboto', sans-serif;
  /* font-family: 'SweetSans', sans-serif; */
  --color-brown: #231e1e;
  --color-toolbar: #7C453F;
  --color-gray: #767676;
  /* background-color: #231e1e; */
  /* color: #dedede; */
  color: #111;
  background-color: #fff;
  text-align:justify;
}

u {
  font-weight: bold;
  /* color: var(--color-gray); */
  text-decoration: none;
}

a {
  text-decoration-color: var(--color-gray);
  text-decoration-style: dotted;
  color: inherit;
}
a:hover {
  color: var(--color-brown);
}

.xy-video {
  width: 700px;
  height: 441px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.xy-show-m {
  display: none;
}
.xy-hide-m {
  display: initial;
}

.w3-dark,
.w3-hover-dark:hover {
  color: #fff !important;
  background-color: #111 !important
}

.w3-light,
.w3-hover-light:hover {
  color: #fff !important;
  background-color: var(--color-toolbar) !important
}

.w3-button {
  margin-left: 4px;
  transition: background-color 0.5s;
}

.w3-button:hover {
  color: #fff !important;
  background-color: #111 !important
}

.w3-wide {
  letter-spacing: 2px;
  font-size: 1rem;
}

.xy-image {
  width: auto;
  max-height: 100%;
}

/* h1, h2, h3, h4, */
h5, h6 {
  font-weight: normal;
  font-family: 'Lato', sans-serif;
}

.bgimg-1 {
  background-image: url('/img/bogo1.jpg');
  height: 900px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0px -4px 14px black inset;
}

#toolbar-title {
  text-transform: uppercase;
  overflow: hidden;
  height: 6rem;
  --toolbar-transition: height .3s ease;
  -webkit-transition: var(--toolbar-transition);
  -moz-transition: var(--toolbar-transition);
  -o-transition: var(--toolbar-transition);
  transition: var(--toolbar-transition);
}
#toolbar-title h1 {
  padding: 8px 16px;
}

#toolbar-m {
  position: relative;
}

#toggle-button {
	position: absolute;
	right: 8px;
	top: 8px;
	padding: 6px 8px 2px 8px;
}

#image-container {
  /* margin: 14rem auto 4px auto; */
  opacity: 1;
  height: 40em;
  /* overflow: hidden; */
  text-align: center;
  z-index: 1;
  margin-bottom: 7em;
}
#image-container::before {
  content: "";
  z-index: -10;
  position: absolute;
  top:0;
  left:0;
  width: 100%;
  background-color: var(--color-brown);
  height: 60em;
  display: block;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
}

.w3-button:hover {
  background-color: #633732 !important;
}

/* Grid classes */

.xy-grid-main--container {
  display: grid;
  /* Main content width is 800px. Leave space for margins */
  width: 100%;
  grid-template-columns: 1fr;
  /* Minimal row size */
  grid-row-gap: 46px;
  grid-auto-flow: row;
  max-width: 1200px;
  padding-top: 14rem;
  padding-bottom: 1rem;
  margin: 0px auto 0px auto;
}

.xy-grid-main--content {
  width: 100%;
}

.xy-card {
  border-radius: 4px;
  padding: 4px 16px;
  transition: all .4s ease;
}
.xy-card:hover,
.xy-card:focus {
  /* box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12); */
}

.xy-grid-card--container {
  display: grid;
  width: 100%;
  grid-column-gap: 22px;
  grid-row-gap: 22px;
  grid-template-rows: 3rem, auto;
  grid-template-columns: 320px auto;
  grid-template-areas: "title body"
                       ".     body";
}
.xy-grid-card--title {
  grid-area: title;
  color: var(--color-gray);
  text-align: right;
  margin-left: 16px;
}
.xy-grid-card--body {
  grid-area: body;
  margin: 4px 16px 0 16px;
}
.xy-grid-card--more {
  grid-column: 2 / 2;
  margin: 4px 16px 8px 12px;
}

#googleMap {
  margin-top: 12px;
  border-collapse: collapse;
}

#programa table {
  table-layout: auto;
  border: none;
}
#programa tr {
  padding-top: 10px;

}
#programa tr:nth-child(even) {background: #dedede}
#programa tr:nth-child(odd) {background: #fff}

#programa td, th {
  padding: 4px;
  font-size: .9rem;
  text-align:left;
  vertical-align: top;
}
#programa .fecha {
  min-width: 15%; }
#programa .lugar {
  width: 23%; }

footer {
  width: 100%;
  margin: 0;
  padding: 4px 16px;
  background-color: #111111;
  color: #dedede;
  vertical-align: center;
  /* line-height: 1; */
  margin-top: 22px;
  height: 2rem;
  height: 100%;
}

@media (max-width: 1300px) {
  .xy-grid-card--container {
    grid-template-rows: auto;
    grid-template-columns: auto;
    grid-template-areas: "title"
                         "body"
  }
  .xy-grid-card--title {
    text-align: left;
  }
  .xy-grid-card--more {
    grid-column: 1 / 1;
  }
}

@media (max-width: 980px) {
  .xy-hide-under-980px {
    display: none !important;
  }
  #image-container {
    height: 20rem;
    margin-bottom: 5em;
  }
  #image-container::before {
    height: 40em;
  }
}

@media (max-width: 700px) {
  .xy-grid-card--container {
    grid-row-gap: 10px;
  }
  .xy-grid-main--container {
    padding-top: 3em;
    grid-row-gap: 10px;
  }
  #image-container::before {
    height: 29em;
  }
  #image-container {
    /* margin: 20px 8px 4px 8px; */
    margin-top: 5.5rem;
    height: 15rem;
  }
  .xy-video {
    width: 100%;
    height: 315px;
  }
  .xy-show-m {
    display: initial;
  }
  .xy-hide-m {
    display: none;
  }
  .xy-grid-card--body,
  .xy-grid-card--more {
    margin-top: 0px;
  }
  #toolbar {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 260px;
    display: initial;
  }
  #toolbar-title {
    display: none;
  }
}

@media (max-width: 390px) {
  #image-container {
    margin-top: 3em; }
  #image-container::before {
    height: 25em; }
  .xy-grid-main--container {
    display: block;
    padding-bottom: 0; }
  .xy-grid-card--container {
    display: block; }
  #programa table {
    max-width: 100%;
    overflow: scroll; }
  #programa .fecha {
    min-width: 0; }
  #programa .lugar {
    width: auto; }
  .xy-grid-card--title {
    margin-top: 8px; }
  .xy-grid-card--body,
  .xy-grid-card--more {
    margin-top: -8px;
    margin-bottom: 0px; }
  footer {
    margin-top: 0; }
}
