@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Lato&family=Special+Elite&display=swap');

:root {
    --main-color: whitesmoke;
    --menu-color: #00181a;
    --menu-select: #203537;
    --menu-font-color: white;
    --font-color: black;
    --table-header: hsl(0, 0%, 80%);
    --table-border: hsl(0, 0%, 70%);
    --main-font: 'Lato',
        sans-serif,
        Arial;
    --header-font: 'Special Elite', cursive;
    --menu-font: 'Bebas Neue', 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--main-color);
    font-family: var(--main-font)
}

footer {
    height: 3em;
    margin-top: 3em;
    background-color: var(--menu-color);
}

ul {
    padding-left: 2em;
}

.content img {
    width: 100%;
}

.img-placeholder {
    display: block;
    width: 100%;
    height: 200px;
    border: 1px solid black;
    background-image: repeating-linear-gradient(45deg,
            orange,
            orange 5%,
            yellow 5%,
            yellow 10%);
    font-weight: bold;
    padding: 92px 30%;
}

/*Logo ja otsikko*/

#logo {
    width: 100%;
    padding: 2em;
    background-color: white;
}

#logo img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}


@media screen and (max-width:800px) {
    #logo {
        display: none;
    }
}

/*Sivujen sisältö*/

.content {
    width: 60%;
    margin: auto;
    padding: 0 1em;
    border-bottom: 1px solid var(--table-border);
    padding-bottom: 2em;
}

div:last-of-type {
    border-bottom: none;
}

h2 {
    padding-top: 2em;
    padding-bottom: 1em;
}

h3,
h4 {
    padding-top: 1em;
    padding-bottom: 1em;
}

p {
    padding-bottom: 1em;
}

.bold {
    font-weight: bold;
}

.visible {
    display: block;
}

.hidden {
    display: none;
}

/*Taulukko*/
table {
    border-collapse: collapse;
    width: 100%;
}

th,
td {
    border: 1px solid var(--table-border);
    padding: 0.3em;
}

th {
    font-weight: bold;
    background-color: var(--table-header);
}

/*Kartta*/
#parking-map {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@media screen and (max-width: 800px) {
    .content {
        width: 85%;
    }

    #parking-map {
        width: 100%;
    }
}


/*Valikko*/

.menu {
    overflow: hidden;
    background-color: var(--menu-color);
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    box-shadow: 0 1px 3px gray;
}

a {
    text-decoration: none;
}

.menu a {
    display: block;
    color: var(--menu-font-color);
    font-family: var(--menu-font);
    font-size: 1.5rem;
    text-align: center;
    padding: 1rem;
}

.menu a:hover {
    background-color: var(--menu-select);
}

.menu .icon {
    display: none;
}

h1 {
    font-family: var(--header-font);
    color: var(--menu-font-color);
    display: none;
}

@media screen and (max-width: 800px) {

    h1 {
        display: block;
        align-self: center;
        margin-left: 1.3rem;
    }

    #title-and-nav {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        padding-top: 7px;
    }

    /*Linkit piiloon pienellä näytöllä*/
    .menu {
        justify-content: flex-end;
    }

    .menu a {
        display: none;
    }

    .menu a.icon {
        display: block;
    }

    /*Menun avaus ja sulkeminen*/
    .menu.opened {
        position: relative;
        flex-direction: column;
    }

    .menu.opened a.icon {
        order: 1;
    }

    .menu.opened a {
        display: block;
        text-align: right;
        order: 2;
    }
}