/* 
    ==== DrunkCFF ====
    Description : styles de l'application
    Auteur : delabaysb01@studentfr.ch
    Modifié le : 07.06.2021
*/
/* ================= La police des CFF =========================== */
@font-face {
    font-family: 'SBB';
    font-style: normal;
    font-weight: bold;
    src: local('SBB'), url('../fonts/SBBWeb-Bold.woff') format('woff');
}
@font-face {
    font-family: 'SBB';
    font-style: normal;
    font-weight: normal;
    src: local('SBB'), url('../fonts/SBBWeb-Light.woff') format('woff');
}


/* ================ Styles pour la bannières ====================== */
header {
    height: 7rem;
    display: flex;
}
header #logo-bg {
    background-color: #EB0000;
    width: 30%;
    vertical-align: center;
}
header #logo {
    height: 6.5rem;
    margin: auto;
}
header #title-bg{
    width: 70%;
    text-align: right;
}
header #title{
    font-size: 6rem;
    color: black;
    font-weight: bold;
    margin: auto;
    font-family: SBB;
    margin-right: 20%;
}

/* ================= Styles pour les résultats ======================== */
#result p {
    font-family: SBB;
}

#result-title {
    font-size: 1.7rem;
    font-weight: bold;
}

#result-info div {
    display: flex;
    justify-content: space-between;
    align-content: center;
    background-color: #EB0000;
}

#result-info div p {
    color: white;
    font-size: 1.3rem;
    margin: 0.5rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.result-section {
    background-color: #F6F6F6;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: center;
    height: 7rem;
    padding: 1rem;
    margin-bottom: 2rem;
}

.result-section-train {
    display: flex;
    justify-content: center;
    width: 40%;
}

.result-section-train img {
    height: 1.3rem;
}

.result-section-train p {
    margin: 0px;
    font-size: 1.3rem;
    margin-left: 2.5%;
}

.result-section-train .result-section-name {
    font-weight: bold;
    font-style: italic;
}

.result-section-station {
    display: flex;
    align-items: center;
    
}

.result-section .right div{
    text-align: right;
    margin-right: 15px;
}

.result-section .left div{
    text-align: left;
    margin-left: 15px;
}

.result-section-station img {
    height: 5rem;
    width: 5rem;
}

.result-section-station img[src=""] {
    display: none;
}

.result-section-locality {
    margin: 0px;
    font-weight: bold;
    font-size: 1.4rem;
    margin-bottom: 5%;
}

.result-section-time {
    margin: 0px;
    color: #EB0000;
}

.result-walk p {
    color: #EB0000;
    text-align: center;
    font-size: 1.3rem;
    margin: 0px;
    margin-bottom: 2rem;
}

#result-map {
    height: 50rem;
}

/* ================= Styles pour le conteneur principal ================ */
body {
    margin: auto;
    margin: 0 auto -155px;
    min-width: 1046px;
}
#page-container {
    display: flex;
    flex-direction: column;
}
#content {
    margin: 2.5%;
    align-content: center;
}

/* ================= Styles de formulaires ======================= */
.login-form fieldset {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    min-height: 20rem;
    border: none;
    width: 20%;
}

.app-form fieldset {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: center;
    border: none;
    width: 90%;
    padding: 0;
}

.form-title {
    font-family: SBB;
    font-weight: bold;
    font-size: 2rem;
}

.app-form .form-title {
    flex-basis: 100%;
    padding-bottom: 0.5rem;
}

.form-text {
    font-family: SBB;
}

.app-form .form-field {
    width: 20%;
}

.login-form .form-field {
    width: 100%
}

.form-field {
    font-family: SBB;
    border: solid black 2px;
    height: 2rem;
}

.form-buttons {
    display: flex;
    flex-direction: row-reverse;
}

.form-button {
    background: none;
    border: none;
    font-family: SBB;
    color: #EB0000;
    font-size: 1rem;
    text-decoration: underline #EB0000;
    cursor: pointer;
}

.form-button-big{
    background-color: #EB0000;
    border: none;
    font-family: SBB;
    font-size: 1.2rem;
    height: 2.3rem;
    color: white;
    cursor: pointer;
    padding-left: 1rem;
    padding-right: 1rem;
}

.form-button-big:hover {
    border: 3px solid black;
}

.form-pressed-button {
    background-color: #F6F6F6;
    border: none;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Animation de chargement : https://loading.io/css/ */
.lds-ellipsis {
    position: relative;
    width: 80px;
    height: 2.3rem;
}
.lds-ellipsis div {
  position: absolute;
  top: 0.9rem;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #EB0000;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.lds-ellipsis div:nth-child(1) {
  left: 8px;
  animation: lds-ellipsis1 0.6s infinite;
}
.lds-ellipsis div:nth-child(2) {
  left: 8px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(3) {
  left: 32px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(4) {
  left: 56px;
  animation: lds-ellipsis3 0.6s infinite;
}
@keyframes lds-ellipsis1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes lds-ellipsis3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes lds-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(24px, 0);
  }
}

/* ================= Styles pour le fond de page =================== */

footer {
    display: flex;
    justify-content: space-around;
    background-color: black;
}

footer p {
    font-family: SBB;
    color: white;
}
footer #deco {
    text-decoration-line: underline;
    cursor: pointer;
}
footer #top {
    text-decoration-line: underline;
    cursor: pointer;
}