/* Basic tweaks to entire site. Gets rid of scroll bar */
html,
body {
    margin: 0;
    height: 100%;
    overflow: hidden;

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    /* Prevents user from selecting the text on screen*/
    user-select: none;
}

/* Set paragraph items to have no margin by default */
p {
    margin: 0;
}

button {
    cursor: pointer;
}

/* Makes map fill screen */
#map {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
}

#logo {
    position: absolute;
    top: 0;
    left: 0;

    width: 150px;
    height: auto;

    margin-left: -10px;
    margin-top: 5px;

    pointer-events: none;
}

/* Customizes control box in the top right */
#controls {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;

    position: absolute;
    bottom: 0;
    right: 0;
    padding: 5px;

    margin: 10px;
    width: 200px;

    border-radius: 5px;

    background-color: white;
}

/* Tweaks button sizes in control box to be uniform */
#controls button {
    width: 180px;
}

/* Blocks arrows on number inputs for all browsers except firefox */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    appearance: none;
    margin: 0;
}

/* Blocks arrows on number inputs in firefox */
input[type=number] {
    appearance: none;
    -moz-appearance: textfield;
}

/* Makes latitude and longitude boxes smaller*/
input[type=number] {
    width: 75px;
}

/* Puts small gap between latitude and longitude boxes */
#latitude {
    margin-right: 5px;
}

/* Centers the text at the bottom of controls that says "Click to Place Pointer" */
#click-to-place {
    display: flex;
    gap: 5px;
    font-size: 14px;
}

#click-to-place label {
    margin-bottom: 2.5px;
}

/* Position all setting-related elements in the top right of page */
#settings-button,
#settings,
#filter-menu {
    position: absolute;
    top: 0;
    right: 0;

    margin: 10px;

    border-radius: 5px;
}

#settings-button {
    z-index: 2;

    width: 35px;
    height: 35px;

    padding: 5px;

    border: none;

    background-color: white;
}

#settings {
    display: none;
    flex-direction: column;
    justify-content: space-evenly;

    height: 150px;
    width: 200px;

    padding: 5px;
    padding-left: 10px;
    padding-bottom: 10px;

    background-color: white;
}

/* Add small gap between "Data Structure:" header and selection box */
#data-structure p {
    margin-bottom: 3px;
}

/* Aligns radius value text next to slider */
#radius-box {
    display: flex;
}

#toggles {
    display: flex;
    gap: 25px;

    /* Centers buttons in settings box */
    padding-left: 5px;
}

#toggles button {
    width: 45px;
    height: 45px;
    border-radius: 5px;
}

/* Highlights button when it is turned on */
.toggled-on {
    background-color: #c9c9c9;
}

#filter-menu {
    display: none;
    flex-direction: column;

    width: 215px;
    height: 110px;

    margin-top: 180px;


    background-color: rgb(255, 255, 255);
}

#filter-tab-buttons {
    display: flex;
}

#crimes-tab-button,
#years-tab-button {
    flex-grow: 1;

    padding-top: 5px;
    padding-bottom: 5px;

    text-align: center;
    font-weight: bold;

    border: none;
}

/* Stylizes div containing the two divs of checkboxes */
#filter-checkboxes {
    display: flex;
    flex-grow: 1;
    justify-content: center;
    align-items: center;
}

/* Placed on the checkbox and label pairs to center text to checkbox */
.checkbox {
    display: flex;
    align-items: center;
}

#crimes-checkboxes {
    /* Sets crimes to be visible when menu is first opened */
    display: flex;
    font-size: 11px;
}

#years-checkboxes {
    /* Hides years checkboxes initially*/
    display: none;
    font-size: 11px;
}

#crimes-checkboxes,
#years-checkboxes {
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    text-align: center;

    margin-right: 4px;
}

/* Ensures that checkboxes get pointing finger when hovered over */
input[type=checkbox] {
    cursor: pointer;
}

#time-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    position: absolute;
    bottom: 0;
    right: 0;

    width: 200px;
    height: 50px;

    padding: 5px;
    margin-bottom: 160px;
    margin-right: 10px;

    border-radius: 5px;

    background-color: rgb(255, 255, 255);
}

#time-elapsed {
    text-align: center;
    font-size: 14px;
    font-weight: bold;
}

#elapsed-time {
    text-align: center;
    font-size: 24px;
}

#credits-menu {
    display: none;
    flex-direction: column;

    position: absolute;
    top: 0;
    right: 0;

    width: 215px;
    height: 110px;

    margin: 10px;
    margin-top: 180px;

    border-radius: 5px;

    background-color: rgb(255, 255, 255);
}

#credits-title {
    text-align: center;
    background-color: #e9e9ed;
}

#credits {
    flex-grow: 1;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding-left: 5px;

    font-size: 14px;
}

/* Makes the links in credits stay blue permanently */
#credits a,
#credits a:visited {
    color: rgb(53, 53, 198);
    text-decoration: underline;
}