@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

#map {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.regional-section, .national-section {

    margin: 0 clamp(1em, 5vw, 3em);
}

.regional-select {
    display: flex;
    flex-direction: column;
}

.authorities {
    display: flex;
    flex-direction: row;

    list-style: none;
    padding-left: 0;

    flex-wrap: wrap;
}

a {
    text-decoration: none;
    color: white;
}

.authority-item {
    margin-right: 1em;
    margin-top: 0.5em;
    margin-bottom: 0.5em;

    padding: 10px;
    background-color: rgb(68, 68, 68);
    border-radius: 5px;

    flex: 1 1 0px;
}
.authority-item:hover, .authority-button button:hover, .sidebar-button:hover, #journey-submit:hover {
    background-color: rgb(100, 100, 100);
}

/* map page content */
.content {
    display: flex;
    flex-direction: row;
    height: 100vh;
}

/* sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    max-width: 25vw;
    margin: 1em;
    width: clamp(300px, 20vw, 400px);
}


/* map sidebar buttons */
#authority-select {
    /* centres the authority select button */
    align-self: center;
}
.authority-button button, .sidebar-button{
    /* stylises the sidebar buttons */
    font-family: 'Poppins', sans-serif;
    border-radius: 5px;
    border: none;
    padding: 10px;
    background-color: rgb(68, 68, 68);
    color: white;
}

.sidebar-button {
    /* adds a gap to the bottom of the buttons */
    margin-bottom: 0.3em;
}

/* map sidebar journey ID input */
.journey-select {
    margin: 0;
    align-self: center;
    display: flex;
    width: 100%;
}

#journey-value {
    margin: 0;
    padding: 0.8em 1em;
    border-radius: 5px 0 0 5px;
    border: none;

    font-family: 'Poppins', sans-serif;
    flex-grow: 1;
    background-color: rgb(240, 239, 239);
}
#journey-submit {
    font-family: 'Poppins', sans-serif;

    margin: 0;
    padding: 10px;
    background-color: rgb(68, 68, 68);
    border: none;
    border-radius: 0 5px 5px 0;
    color: white;
}