body {
  margin: 0;
  font-family: Lato, sans-serif;
  font-size: 1em;
  color: #666;
  background-color: #fff;
}
@media screen and (max-width: 800px) {
  body { font-size: 1em; }
}
@media screen and (max-width: 650px) {
  #siteNav ul { display: none; } 
}

header {
  background-color: #639;
  padding: 0.5em 0.5em 3em;
}
aside {
  background-color: #fff;
  color: #333;
  padding: 0.1em 0.5em;
}
header>div, aside>div, .mainHeader {
  max-width: 1200px;
  margin: 0 auto;
}
h1 {
  font-size: 2.5em;
  color: #0090d2;
  font-weight: normal;
  margin: 0.2em 0 0.2em 0;
  display: inline-block;
}
h1 .nom-ludo { font-weight: bold; white-space: nowrap;}
address a, header a { color: #babdf0; }
header a:hover { color: #90fddd; }
address a { display: flex; }
address svg { display: block; margin-right: 0.3em;}
address {margin-bottom: 1em;}
a[href^="tel:"]:before { content: "\2706"; margin-right: 5px; }
header, header h2, aside h2 { color:#0090d2; }
h2 { font-size: 1.8em; color: #0090d2; margin: 0.5em 0 0.2em; }
.section>h3 { margin-top: 0; margin-bottom: 0; color: white; font-size: 1.1em;}
aside h2 { margin-top: 0.2em; }

.section ul {padding-left:1em;}

header .section>h2 {border-top:1px solid #7e619b; margin-top: 0; padding-top: 10px;}

@media screen and (min-width: 700px) {
  .section>* {float:right; width: 65%; margin-left: 0;}
  .section>h2 { float:left; clear:both; width: 33%; padding-right: 2%; margin-left: 0;}
  header .section h2+* {border-top:1px solid #7e619b; margin-top: 0; padding-top: 10px;}
  .section:after {
    content: ''; clear: both; display: block;
  }
  .section>ul {width: 64%; padding-left:1%;}
}

#liste-horaires {
  margin-top: 0.5em;
  margin-bottom: 1.5em;
  padding: 1.2em 0;
  background-color: #522c8a;
}

#liste-horaires dt { font-weight:  bold; margin-bottom: 3px; font-size: 1.2em;}
#liste-horaires dd { margin: 0; }
#liste-horaires ul { margin: 0; padding-left: 0; }
#liste-horaires li { list-style-type: none; }
@media screen and (min-width: 500px) {
  #liste-horaires { display: flex; justify-content: space-evenly; }
  #liste-horaires dt, #liste-horaires dd { text-align: center; }
}
@media screen and (max-width: 500px) {
  #liste-horaires { padding: 0.2em 1.5em; }
  
  #liste-horaires div { margin: 0.5em 0; }
  #liste-horaires dt { margin-right: 1em; width: 5em;}
  #liste-horaires dt::after { content: " :"; }
  #liste-horaires dt, #liste-horaires dd { display: inline-block; vertical-align: middle; }
}

aside .section { padding-top: 15px; }
aside p { margin: 0 0 0.8em 0; font-size: 0.9em; }
.bigButton {
  display: inline-block;
  padding: 0.5em 1em;
  background-color: #006082;
  color: white;
  font-weight: bold;
  border-width: 0; 
  border-radius: 3px;
}
input[type='submit'] {
  cursor: pointer;
}

#pageContent {
  margin: 1em auto;
  padding: 0 1%;
}

h3 {
  font-size: 3em;
  color: #0090d2;
}
a {
  color: #0090d2;
  text-decoration: none;
}
#newGamesLink {
  display: inline-block;
  margin-right: 1em;
  margin-bottom: 0.5em;
  padding: 0.4em 1em;
  border: 1px solid #999;
}
main .sectionContent { margin-top: 1em; margin-bottom: 1em; }
#searchBox span { display: inline-block; margin-right: 1em; margin-bottom: 0.5em; }
ul.categoryList {
  padding: 1em 0 0 0;
  border-top: 1px solid #ddd;
}
.categoryList li {display: inline;}
.categoryLink {
  cursor: pointer;
  color: #aaa;
  padding: 0.2em 0.4em;
  display: inline-block;
}
.categoryLabel {
  color: #0090d2;
}
.active {
  background-color: #006082;
}
.active .categoryLabel {
  color: #fff;
}
.categoryLink.active {
  color: #ccc;
}
input { font-size: 1.05em; color: #333; padding:8px 10px; margin-bottom: 0.2em;}
select { background-color: #006082; color: white;font-size: 1.0em; padding: 0.3em 0.8em; border: none;}
#searchResultList { display:none; }
#cancelSearchButton { display:none;  cursor: pointer; margin-left: -2.5em; margin-right: 1em;}
#newGames .warning {
  margin: 3em auto;
  max-width: 30em;
}
.warning {
  font-weight: bold;
  color: red;
}
.gameList {
  padding-bottom: 1em;
}
.gameList li :hover {
  cursor: pointer;
}
.gameList li img {
  max-width:90%;
  max-height:90%;
  display:inline-block;
  margin: 0 auto;
  vertical-align: middle;
}
.gameList ul {
  max-width:1200px;
  margin: 0 auto;
  padding: 10px 0;
  display: flex;
  flex-wrap: wrap;
}
.gameList li {
  background-color: #fff;
  border: 1px solid #b0c7df;
  text-align: center;
  list-style: none;
  margin: 15px 0.8%;
  width: 22.8%;
  height: 270px;
  overflow: hidden;
  position: relative;
}
.gameList li div {
  text-align: center;
  margin:auto;
  width: 100%;
  height: 230px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.gameList li a {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 212px;
  left:0;
  width: 100%;
  height: 58px;
  background-color: #0090d2;
  
  color: #fff;
  z-index: 1;
}
@media (max-width: 900px) {
  .gameList li img {
    max-width:95%;
    max-height:95%;
    margin-bottom: 3px;
  }
  .gameList li {
    padding: 2px;
    margin: 1%;
    width: 30%;
    height: 200px;
  }
  .gameList li div {
    width: 100%;
    height: 150px;
  }
  .gameList li a {
    top: 154px;
    height: 50px;
    font-size: 0.95em;
  }
}
@media (max-width: 600px) {
  .gameList li img {
    max-width:120px;
    max-height:120px;
    margin-bottom: 3px;
  }
  .gameList li {
    padding: 2px;
    margin: 1%;
    width: 45%;
    height: 160px;
  }
  .gameList li div {
    width: 130px;
    height: 130px;
  }
  .gameList li a {
    top: 120px;
    height: 45px;
    font-size: 0.9em;
  }
}
.gameList li:hover img { opacity: 0.5; }
.gameList li:hover { border-color: #006082; }
.gameList li:hover a { background-color: #006082; }
.unavailableNotice {
  display: inline-block;
  position: absolute;
  top: 15px;
  right: 0px;
  background-color: #ca2020;
  color: white;
  border: 1px solid white;
  border-right: none;
  padding: 0.3em 1.2em 0.3em 0.8em;
  font-variant: small-caps;
  font-size: 0.9em;
  font-weight: bold;
}
.gameList button {
  display: block;
  margin: auto;
  font-size: 1.1em;
  border: 1px solid #999;
  padding: 0.3em 1em;
  background-color: #006082;
  color: white;
}
.gameList button:hover {cursor:pointer;}
#modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4);
}
#modal1 {
  display:flex;
  
}
#modalContent {
  position: relative;
  background-color: #fefefe;
  margin: 3em auto;
  border: 1px solid #888;
  padding: 1em 0;
}
#modal-close {
  position: absolute;
  z-index: 2;
  right: 1px;
  top: 1px;
  font-weight: bold;
  font-size: 1.5em;
  color: white;
  background-color: #006082;
  padding: 0.2em 0.5em;
}
#modal-close:hover {cursor:pointer;}
#modalContent h3 { margin:0 1.5em 0.5em 0.5em; font-size: 2em;}
#detail-imgContainer {
  padding: 0 1em;
  min-width: 30%;
}
#detail-imgContainer img{
  max-width:100%;
  max-height: 60vh;
}
#detail-textContainer {
  vertical-align: top;
  background-color: white;
  min-width: 30%;
  max-width: 40em;
}
@media (min-width: 800px) {
  .narrow#modalContent {
    max-width: 40%;
  }
  #modalContent { padding: 2em; }
  #detail-main {
    display:flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
  }
  #detail-imgContainer {
    margin-left: 2em;
  }
  #detail-imgContainer img{ max-width: 60vh; }
}
#detail-textContainer ul {
  list-style: none;
  padding: 0 1em;
}
#detail-textContainer>ul li {
  margin: 0.2em 0;
}
#detail-textContainer>ul>#detail-dispo { margin-top:1em; }
#detail-textContainer li {
  padding: 0.1em 0;
}
#detail-num {
  font-size: smaller;
  color: #999;
}
#detail-age { font-weight: bold; }
#detail-description {
  max-width: 40em;
  margin: 1em 0;
  padding: 1em;
  background-color: #eee;
  color: #333;
  font-style: italic;
}
#detail-content {margin: 0; padding: 0 1em; max-width: 40em;}
#detail-content h4 { margin-bottom: 0.5em; }
#detail-content ul { margin: 0; padding: 0; }
#detail-content ul ul { margin: 0; padding: 0 1em; }
#detail-content li {
  list-style: inside;
  list-style-type: disc;
}
.unavailable { background-color: #ca2020; color: white; padding: 0.2em 1em; font-variant: small-caps; }
.available { background-color: #00dd00; color: white; padding: 0.2em 1em; font-variant: small-caps; }

footer {
  clear:both;
  background-color: #333;
  color: #eee;
  padding: 1em;
  text-align: center;
}
footer div { 
  max-width: 1200px; 
  margin:auto; 
  display: inline-block;
}
footer h3 { color: white; font-size: 1.5em; margin-bottom: 0;}
footer section { margin: 0 2em; max-width: 20em; }
footer ul { padding-left: 1em; text-align: left;}
footer a { color: #a4c3ff; }
footer a:hover { color: #31cea0; }

@media (min-width: 700px) {
  footer div { display: inline-flex; justify-content: center; }
}
