/*
 Theme Name:     Divi Child
 Description:    Swanage Railway Line Guide
 Author:         Paul Skinner
 Author URI:     https://paul-skinner.com
 Template:       Divi
 Version:        1.0.0
*/

h1, h2 {
    line-height: 1.25em;
}

h1 {
  font-size: 30px !important;
}

#station-totem {
  max-width: 500px;
}

.navigation-buttons-container {
    display: flex;
    justify-content: space-between;
}

.navigation-buttons-container a, .navigation-buttons-container > span {
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navigation-button.prev-page-button {
    justify-content: flex-start;
}

.navigation-button.next-page-button {
    justify-content: flex-end;
}

.station-feature {
    font-size: 5rem;
}

#main-content {
    margin-bottom: 150px;
}

/*.opaque-background {*/
.et_pb_row {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px 20px !important;
    /*padding-right: 10px !important;*/
}

h1, h2 {
  color: #666;
}

.station-facilities > div#facilities_container > div {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 10px;
    justify-content: center;
    align-items: center;
    text-align: center !important;
}

.station-facilities p {
  margin-top: 10px;
}

.station-facilities .et_pb_text_inner {
  text-align: center !important;
}

.et_pb_section {
    background-color: transparent;
}

#main-content {
    background-color: transparent;
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 2;
    color: #666666;
}

footer a {
    color: #666666;
}

footer .et_pb_section {
    padding: 0;
}

.et_pb_row_0_tb_footer {
    background-color: #ffffff;
}

.footer-totem {
    max-height: 75px;
}

.navigation-button {
    /* These two alone will align the text next to the image */
    /*display: flex;
    align-items: center;*/
    
    /* These 4 force each element to be in a column but centered */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.navigation-text-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.navigation-text {
  margin-bottom: 5px; /* Adjust as needed */
}

#start-locations > div > div {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

#start-locations a {
    display: block;
}

#start-locations .et_pb_column {
    /*width: auto;*/
}

#start-locations img {
    width: auto;
    max-width: 400px;
    margin: 0 auto;
}

/* Sort for mobiles */
@media (max-width: 600px) {
    #start-locations img {
        max-width: none;
        width: 100%;
    }
}
