﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */
@import url("../fonts/inter/inter.css");
@import url("../fonts/remixicon/remixicon.css");

html {
    font-family: "Inter", sans-serif;
}

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
    color: #0366d6;
}

.log-out-button {
    padding: 0;
    text-align: left;
    width: 100%;
}

    .log-out-button i {
        margin-left: 0;
        vertical-align: middle;
    }

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.tabular-nums {
    font-variant-numeric: tabular-nums;
}

.race-details #race-runners-list .race-runner .tabular-nums {
    padding-right: 0;
}

@media (min-width: 769px) {
    .race-details #race-runners-list .race-runner .tabular-nums {
        padding-right: 15px;
    }
}
/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 16px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.box-shadow {
    background-color: white;
    border: 1px solid rgba(60, 64, 67, 0.15);
    border-radius: 0.33rem;
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
    padding: 1rem;
}

#login-submit {
    background: linear-gradient(to bottom, #24a256 0%,#0c9f7c 100%);
    border: 0;
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

html {
    height: 100%;
    min-height: 100%;
    position: relative;
}
body {
    background-color: #e4e4dc;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 3rem auto 3rem;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    min-height: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}
header {
    grid-area: 1 / 1 / 2 / 2;
}
main {
    display: flex;
    flex-direction: column;
    grid-area: 2 / 1 / 3 / 2;
    padding: 0 !important;
}

@media (min-width: 769px) {
    body {
        padding: 0;
    }
    main {
        flex-direction: row;
    }
}

/*#region Left menu (top on mobile) */
.left-menu {
    background: linear-gradient(to bottom, #24a256 0%,#0c9f7c 100%);
    border-radius: 0.33rem;
    color: #fff;
    margin: 1rem 1rem 0 1rem;
    padding: 1rem;
    position: relative;
    width: calc(100% - 2rem);
}
.left-menu ul {
    list-style-type: none;
    margin-bottom: 0;
    padding-left: 0;
}
.left-menu a {
    color: #fff;
}
.left-menu a.active {
    font-weight: 600;
}
.left-menu a:hover {
    color: #fff;
    text-decoration: underline;
}
.left-menu .log-in-container {
    right: 1rem;
    position: absolute;
    top: 1rem;
}
.left-menu .log-in-container form {
    font-size: 0.75rem;
}

@media (min-width: 769px) {
    .left-menu {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        margin: 0;
        width: 10rem;
    }
    .left-menu ul {
        margin-bottom: 1rem;
    }
    .left-menu .log-in-container {
        bottom: 1rem;
        right: initial;
        top: initial;
    }
}
/*#endregion */

.main-content {
    padding: 1rem;
    width: 100%;
}
.main-content h1 {
    font-size: 2rem;
    line-height: 1;
}
footer {
    color: #000;
    grid-area: 3 / 1 / 4 / 2;
    width: 100%;
}
header p,
footer p {
    color: #000;
    font-size: 1rem;
    font-variant-caps: small-caps;
    font-weight: 100;
    line-height: 1rem;
    padding-top: 1rem;
}

.footer p {
    font-size: 0.75rem;
}

.footer a {
    color: #000;
    text-decoration: none;
}

.container {
    padding-left: 0;
}

.modal-button {
    border: 1px solid rgba(60, 64, 67, 0.15);
    border-radius: 0.33rem;
    padding: 0.25rem 0.5rem;
}

.primary-button {
    background: linear-gradient(to bottom, #24a256 0%,#0c9f7c 100%);
    color: #fff;
}

.cancel-button {
    background-color: #f26d50;
    color: #fff;
}

p.back-link,
p.back-link a {
    color: #222;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
}
p.back-link a {
    vertical-align: top;
}

i.white-on-black {
    background-color: #000;
    border: 1px solid #000;
    border-radius: 1.5rem;
    font-size: 1rem;
    color: #fff;
    padding: 0.25rem;
}

.padding-5px {
    padding-right: 5px;
}

.races-list,
.content {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-justify-content: flex-start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -webkit-align-content: flex-start;
    -ms-flex-line-pack: start;
    align-content: flex-start;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
}

.races-list-race {
    -webkit-flex: 0 0 100%;
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    -webkit-align-self: auto;
    -ms-flex-item-align: auto;
    align-self: auto;
    margin: 0 1rem 1rem 0;
    padding: 0;
}

.races-list-race > h5,
.race-details h4 {
    background: linear-gradient(to bottom, #24a256 0%,#0c9f7c 100%);
    border-top-left-radius: 0.33rem;
    border-top-right-radius: 0.33rem;
    color: #fff;
    margin: 0;
    padding: 1rem;
}
.races-list-race > h5 > a,
.races-list-race > h5 > a:hover {
    color: #fff;
    text-decoration: none;
}
.race-details {
    padding: 0;
}
.race-details h4 i {
    background-color: #fff;
    border: 1px solid #fff;
    border-radius: 1.5rem;
    color: #0c9f7c;
    font-size: 1rem;
    margin-right: 0.5rem;
    padding: 0.25rem;
}
.races-list-race > a:hover {
    color: #222;
    text-decoration: none;
}
.races-list-race a img {
    height: 2rem;
    width: auto;
}

.runners-list,
.runner-details,
.race-information-edit,
.race-runners-edit {
    -webkit-flex: 0 0 100%;
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    -webkit-align-self: auto;
    -ms-flex-item-align: auto;
    align-self: auto;
    margin: 0 1rem 1rem 0;
}

.action-link,
.action-link:hover {
    color: #212529;
    cursor: pointer;
    text-decoration: none;
}

.no-underline,
.no-underline:hover {
    text-decoration: none;
}

/*#region Medals */
.medal {
    align-items: center;
    border-radius: 1rem;
    display: flex;
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    font-weight: bold;
    height: 1.1rem;
    justify-content: center;
    line-height: normal;
    text-align: center;
    width: 1.1rem;
}
.no-medal {
    align-items: center;
    display: flex;
    font-size: 0.85rem;
    font-variant-caps: all-small-caps;
    font-variant-numeric: tabular-nums;
    height: 1.1rem;
    justify-content: center;
    line-height: normal;
    text-align: center;
    width: 1.1rem;
}
.gold {
    background-color: gold;
}
.silver {
    background-color: silver;
}
.bronze {
    background-color: #cd7f32;
}
/*#endregion */

.whole-row-hover > div:hover {
    background-color: #0c9f7c;
    border-radius: 0.25rem;
    color: white;
    cursor: pointer;
}
.whole-row-hover > div:hover .action-link {
    color: white;
}
.races-list-race .race-runners-list > .race-runner > .col-1 {
    align-self: center;
}
#race-runners-list > .race-runner > .pr-2 {
    align-self: center;
    text-align: right;
}

.admin-actions {
    color: #fff;
    margin-top: 1rem;
    padding-right: 5px;
}
.admin-actions i {
    color: #fff !important;
}

@media (min-width: 769px) {
    .runner-details,
    .races-list-race,
    .race-information-edit,
    .race-runners-edit {
        -webkit-flex: 0 0 45%;
        -ms-flex: 0 0 45%;
        flex: 0 0 45%;
    }

    .create-race,
    .race-details {
        width: 50%;
    }
    /*
    #race-runners-list > .race-runner > .col-7 {
        padding-left: 0;
    }
    */
}

/*#region Modifying the log in page */
#account h4,
#account .form-group:last-of-type,
.col-md-6.col-md-offset-2 {
    display: none;
}
/*#endregion */
