/*
 * This is the CSS file used to define the look and feel for the lap counter
 * application. The first section covers the general HTML elements.
 */
html {
    background-color: #202020;
    font-family: sans-serif;
    line-height: 1.15;
}

body {
    background-color: #000;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    text-align: left;
}

form {
    /* Just to center the form on the page */
    margin: 0 auto;
    width: 400px;
    /* To see the outline of the form */
    padding: 1em;
    border: 1px solid #CCC;
    border-radius: 1em;
}

fieldset {
    border-radius: 0.75em;
}

.navbar {
    align-items: center;
    background-color: #202020 !important;
    color: white;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    position: relative;
}

.navbar-brand {
    color: white;
    display: inline-block;
    font-size: 1.25rem;
    line-height: inherit;
    margin-right: 1rem;
    padding-bottom: 0.3125rem;
    padding-top: 0.3125rem;
    text-decoration: none;
    white-space: nowrap;
}

.icon {
    fill: white;
    height: 2rem;
    width: 2rem;
}

.workspace {
    background-color: #171717;
    padding-left: .5rem;
    padding-right: .5rem;
}

.title {
    color: white;
    font-size: 1.5rem;
    height: 3.5rem;
    padding-top: 1rem;
    text-align: center;
    width: 100%;
}

.lane {
    align-items: stretch;
    background-color: #202020;
    border: #505050 2px solid;
    border-radius: 8px;
    display: flex;
    flex-direction: row;
    height: 3.5rem;
    width: 100%;
}

.touch {
    display: flex;
    flex: 10;
    flex-direction: row;
}

.lane-number {
    background: linear-gradient(to bottom, #72B3E5 0%, #1e5799 10%);
    border-radius: 8px;
    box-shadow:
        inset 0 2px 9px rgba(255, 255, 255, 0.3),
        inset 0 -2px 6px rgba(0, 0, 0, 0.4);
    color: white;
    flex: 2;
    font-size: 2rem;
    text-align: center;
    vertical-align: middle;
}

.meter {
    background: #303030;
    border-radius: 5px;
    box-shadow: inset 0 -1px 1px rgba(255, 255, 255, 0.3);
    flex: 10;
    position: relative;
    padding: 10px;
}

.meter>span {
    display: block;
    height: 100%;
    border-radius: 4px;
    background-color: #c5702f;
    background-image: linear-gradient(top, #f1a165, #f36d0a);
    box-shadow:
        inset 0 2px 9px rgba(255, 255, 255, 0.3),
        inset 0 -2px 6px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.status {
    flex: 3;
    color: white;
    border-radius: 8px;
    box-shadow:
        inset 0 2px 9px rgba(255, 255, 255, 0.3),
        inset 0 -2px 6px rgba(0, 0, 0, 0.4);
}

.distance {
    text-align: center;
    padding-top: .5rem;
    font-size: 1rem;
    line-height: 1.25rem;
    vertical-align: middle;
}

.swim {
    background: linear-gradient(to bottom, #72B3E5 0%, #1e5799 10%);
}

.bell {
    background: linear-gradient(to bottom, #ff8800 0%, #aa6600 10%);
}

.done {
    background: linear-gradient(to bottom, #00aa00 0%, #008800 10%);
}

.finish {
    color: white;
    font-size: 2rem;
    text-align: center;
    vertical-align: middle;
}

.no-swim {
    flex: 1;
    color: white;
    padding-top: .5rem;
    text-align: center;
    vertical-align: middle;
    font-size: 1.5rem;
    border-radius: 8px;
    box-shadow:
        inset 0 2px 9px rgba(255, 255, 255, 0.3),
        inset 0 -2px 6px rgba(0, 0, 0, 0.4);
}

.ns-on {
    background: linear-gradient(to bottom, #408040 0%, #306030 10%);
}

.ns-off {
    background: linear-gradient(to bottom, #804040 0%, #603030 10%);
}

.opacity {
    opacity: 0.5;
}

.reset {
    width: 100%;
    height: 3.25rem;
    padding-top: 1rem;
    color: white;
    font-size: 1.5rem;
    text-align: center;
    background: linear-gradient(to bottom, #aa0000 0%, #880000 10%);
    box-shadow:
        inset 0 2px 9px rgba(255, 255, 255, 0.3),
        inset 0 -2px 6px rgba(0, 0, 0, 0.4);
    border-radius: 8px;
}

.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
    color: white;
    background-color: #444444;
    margin: 10% auto;
    /* 15% from the top and centered */
    padding: 10px;
    border: 1px solid #888;
    width: 90%;
    /* Could be more or less, depending on screen size */
}

.modal-header {
    justify-content: space-between;
    display: flex;
}

/* The Close Button */
.close {
    color: #aaa;
    text-align: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}