html {scroll-behavior: smooth;}

body {
    background-color: #666;
    color: whitesmoke;
    font-family: "Lato", sans-serif;
}

h1 {
  font-size: xxx-large;
  color: #3d0a49;
}

h2 {
  font-size: xx-large;
  color: #9aff00;
}

h3 {
  font-size: x-large;
  color: #111d41;
}

h4 {
  font-size: larger;
  color: #640827;
}

p {
  font-size: medium;
  color: white;
}

iframe {
  height: 300px;
  width: 75%;
  margin: auto;
}

/* Fixed sidenav, full height */
.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: darkred;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 32px;
}

/* Style the sidenav links and the dropdown button */
.sidenav a, .dropdown-btn {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 15px;
    color: #818181;
    display: block;
    transition: 0.3s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    outline: none;
}

/* On mouse-over */
.sidenav a:hover, .dropdown-btn:hover {
  color: #f1f1f1;
}

/* Main content */
.main {
  margin-right: 50px;
  margin-left: 50px;
  text-align: center;
  transition: 0.4s;
}

/* Add an active class to the active dropdown button */
.active {
  color: white;
}

/* Dropdown container (hidden by default). Optional: add a lighter background color and some left padding to change the design of the dropdown content */
.dropdown-container {
  display: none;
  padding-left: 8px;
}

/* Some media queries for responsiveness */
@media screen and (max-height: 450px) {

  .sidenav {
    padding-top: 15px;
  }

  .sidenav a {
    font-size: 10px;
    padding-left: 15px;
  }
}

.openbtn {
    position: fixed;
    top: 15px;
    font-size: 20px;
    cursor: pointer;
    background-color: #111;
    color: white;
    padding: 10px 15px;
    border: none;
}

.openbtn:hover {
    background-color: #313131;
}

.mlg_trains {
  /*display: flex;*/
  align-items: flex-end;
  /*justify-content: center;*/
}

.icon {
  position: relative;
  top: 10px;
  width: 30px;
  height: 30px;
}

.carte {
  width: 50%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.centered_ {
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.button_on_train {
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.centred {
  display: flex;
  align-items: center;
  justify-content: center;
}

table, th, td {
  text-align: center;
  border: 1px solid black;
  border-collapse: collapse;
}

.center {
  margin-left: auto;
  margin-right: auto;
}

.btn {
  background-color: #ddd;
  border: none;
  color: black;
  padding: 16px 32px;
  text-align: center;
  font-size: 16px;
  margin: 4px 2px;
  transition: 0.3s;
}

.btn:hover {
  background-color: #3e8e41;
  color: white;
}

.galery {
  width: 50%;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.overlay {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background-color: #008CBA;
  overflow: hidden;
  width: 100%;
  height:0;
  transition: .5s ease;
}

.container {
  position: relative;
  width: 75%;
  margin-left: auto;
  margin-right: auto;
}

.container:hover .overlay {
  bottom: 0;
  height: 100%;
}

.texte {
  color: white;
  font-size: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;
}

h1 span {
  background: rgba(71, 149, 254, 0.75);
}

.shadowed {
  text-shadow: 
    1px 1px 2px red;
}