@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');
:root {
    /* General Variables */
    --main-color:#89d1cf;
    --main-color-rgb:54, 82, 81;
    --accent-color:#f8b629;
    --base-color: #685BAB;
    --superlight-color:#E9E7F3;
    --text-color: #666;
    --font-family:'Open Sans', sans-serif;
    --font-size:14px;
    /* background colors */
    --home-bg-color: white;
    --header-bg-color:white;
    --footer-bg-color:lightgrey;
    /* Menu specific variables */
    --nav-bg-color:var(--accent-color);
    --nav-text-color:white;
    /* Buttons */
    --btns-color:var(--nav-text-color);
}
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
}
body,
html {
    scroll-behavior: smooth;
    width: 100%;
    font-size: var(--font-size);
    color: var(--text-color);
    font-weight: normal;
    font-family: var(--font-family);
    background-color: var(--home-bg-color);
}
h1,h2,h3 {
    color:var(--accent-color);
}
h1, h2 {
    text-align:center;
    margin-bottom:15px;
}
h1 {
    font-size:2rem;
}
h2 {
    font-size:1.5rem;
}
img {
    width:100%;
    height:auto;
}
a {
    text-decoration:none;
}
/* Alerts */
.alert {
    text-align:center;
    border-radius:10px;
    max-width:600px;
    padding:25px;
    margin:25px auto;
    border:1px solid var(--accent-color);
    background-color:rgba(var(--main-color-rgb), 0.3)
}
/* Custom Buttons*/
.custom-btn a {
    padding:15px;
    background-color: var(--accent-color);
    border:1px-solid var(--accent-color);
    box-shadow:2px 2px 6px var(--accent-color);
}
.custom-btn a * {
    color:var(--nav-text-color);
    margin:0 !important;
    padding:0 !important;
}
/* Back to top button */
.back-to-top {
    position:fixed;
    bottom:20px;
    left:15px;
}
.back-to-top a {
    border-radius:50%;
    padding:10px;
}
.back-to-top a span {
    vertical-align: bottom;
}
/* Icons */
body .material-symbols-outlined {
    vertical-align:middle;
    font-size:22px;
    margin-right:5px;
}
/* Header */
header {
    text-align:center;
}
.logo {
    padding:15px;
}
.logo img {
    max-height:110px;
    width:auto;
}
.contact-info {
    color:var(--text-color);
    padding:15px;
}
.contact-info > * {
    padding:5px 15px;;
}
/* Navigation menu */
nav {
    background-color:var(--nav-bg-color);
    text-align:center;
}
nav ul{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;

}
nav ul li,
nav ul li a {
    display:inline;
    text-transform:uppercase;
    color:var(--nav-text-color);
    line-height:2rem;
    white-space:nowrap;
    padding:15px;
}
nav ul li {
    flex-basis:160px;
}
nav ul li:hover {
    background-color:var(--main-color);
    transition:background 0.5s;
}
/* END Navigation menu */

/* Articles */
article {
    padding:25px 15px;
    max-width:1200px;
    margin:auto;
}
.title-area {
    margin:25px auto;
    text-align:center;
}
.title-area img {
    max-width:800px;
}
.image-wrapper {
    display:flex;
    flex-wrap:wrap;
    gap:1.5rem;
    justify-content:center;
}
.image-wrapper > * {
    flex-basis: 250px;
}
/* Timetable Table */
#timetables table {
    margin:25px auto;
    width:100%;
    max-width:500px;
    border-collapse:collapse;
    border:1px solid var(--accent-color);
}
#timetables thead tr {
    background-color:var(--accent-color);
    color:var(--nav-text-color);
}
#timetables tbody tr:nth-child(even) {
    background-color: var(--superlight-color);
}
#timetables th,
#timetables td  {
    padding:15px;
}
#timetables tbody td:last-child {
    text-align:center;
}
#address {
    margin: 50px 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
    font-size:1.3rem;
}
#address .material-symbols-outlined {
    font-size:2.5rem !important;
}
#address > :first-child {
    justify-self:end;
}
#address > :last-child {
    justify-self:start;
}
#map {
    text-align:center;
}
#map iframe {
    width:300px;
    height:225px;
}
footer {
    padding:50px 0;
    margin-top:50px;
    text-align:center;
    background-color:var(--superlight-color);
}
footer img {
    vertical-align:bottom;
    height:1.7rem;
    width:auto;
}
/* MEDIA QUERIES */
@media(min-width:576px) {
    header {
        display:grid;
        grid-template-columns:1fr 300px;
        justify-content:space-between;
    }
    header .logo {
        text-align:left;
    }
    header .contact-info {
        text-align:left;
    }
    #map iframe {
        width:500px;
        height:375px;
    }

}
@media(min-width:772px){
    #map iframe {
        width:600px;
        height:450px;
    }
}
