
body {
    font-size: 120%;
    color: #666;
    background-image: url("./img/bg.jpg");
    background-position: center;
    background-attachment: fixed;
}

.block_header {
    max-width: 800px;
    margin: 25px auto 0px;
    color: white;
    background: #7329c2;
    text-align: center;
    border: 1px solid #8937e0;
    border-bottom: none;
    border-radius: 10px 10px 0px 0px;
    padding: 20px;
}

.filters form {
    display: flex;
    border: 1px solid #666;
    background: white;
    border-radius: 10px;
    padding: 10px;
    align-items: end;
    margin-top: 10px;
}

.filters .input-group {
    margin: 0 10px 0 10px;
    flex-grow: 1;
}

form, .block_content {
    max-width: 800px;
    margin: 0 auto 20px;
    padding: 20px;
    border: 1px solid #8937e0;
    background: white;
    border-radius: 0px 0px 10px 10px;
}

.wide {
    max-width: 1600px;
}

.block_section {
    font-size: larger;
    width: 100%;
    border-bottom: 1px solid #7329c2;
    margin: 20px 0 10px 0;
    padding: 7px;
    color: #8937e0;
}

.block_content.column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input-group {
    margin: 10px 0px 10px 0px;
}

.input-group label {
    display: block;
    text-align: left;
    margin: 3px;
}

.input-group input {
    height: 30px;
    width: 93%;
    padding: 5px 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid gray;
}

.input-group select {
    height: 40px;
    width: 96%;
    padding: 5px 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid gray;
}

.input-group textarea {
    height: 200px;
    width: 93%;
    padding: 5px 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid gray;
}

.input-group .input-row {
    display: flex;
    justify-content: space-between;
    width: 96%;
    font-size: 16px;
}

.input-row input {
    width: 30%;
}

.error {
    width: 92%;
    margin: 0px auto;
    padding: 10px;
    border: 1px solid #a94442;
    color: #a94442;
    background: #f2dede;
    border-radius: 5px;
    text-align: left;
}

.success {
    width: 92%;
    margin: 0px auto;
    padding: 10px;
    border: 1px solid #76dd5f;
    color: #76dd5f;
    background: rgba(118, 221, 95, 0.19);
    border-radius: 5px;
    text-align: left;
}

.header {
    padding: 10px;
    border-bottom: 5px solid black;
    display: inline-flex;
    width: 100%;
    align-items: center;
}

.header img {
    width: 300px;
}

.header .title {
    flex-grow: 1;
}

.header .profile {
    margin-right: 10px;
}

.menu {
    border-bottom: 5px solid black;
}

.event {
    display: flex;
    flex-direction: column;
    margin: 30px auto;
    align-items: stretch;
    position: relative;
}

.event::before {
    content: "";
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
.event.race::before {
    background-image: url(img/race.jpeg);
}

.event.training::before {
    background-image: url(img/training.jpeg);
}
.event.absent::before {
    opacity: 0.15;
}
.event.details {
    flex-direction: column;
}

.fc-event.present {
    border: 1px solid #666;
    border-radius: 5px;
    color: #666;
}
.fc-event.absent {
    color: #AAA;
}

.event.present {
    border: 3px solid #666;
}

.event.absent {
    border: 3px solid #CCC;
}

.event .title {
    color: white;
    z-index: 999;
    padding: 5px;
    font-size: larger;
    display: flex;
    justify-content: space-between;
}

.event.present .title {
    background-color: #666;
}

.event.absent .title {
    background-color: #CCC;
}

.event .content {
    display: flex;
    padding: 10px 10px 13px 10px;
    align-items: stretch;
}
.event .details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin: 0 20px 0 20px;
    padding: 5px;
    z-index: 999;
    background-color: #FFFFFFAA;
}

.event .action {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    z-index: 999;
}

.event .name {
    font-weight: bold;
}

.event .description {
    flex-grow: 1;
    color: #666;
    font-size: smaller;
}


time.icon {
    font-size: 1em; /* change icon size */
    display: block;
    position: relative;
    width: 7em;
    height: 7em;
    background-color: #fff;
    border-radius: 0.6em;
    box-shadow: 0 1px 0 #bdbdbd, 0 2px 0 #fff, 0 3px 0 #bdbdbd, 0 4px 0 #fff, 0 5px 0 #bdbdbd, 0 0 0 1px #bdbdbd;
    overflow: hidden;
}

time.icon * {
    display: block;
    width: 100%;
    font-size: 1em;
    font-weight: bold;
    font-style: normal;
    text-align: center;
}

time.icon strong {
    position: absolute;
    top: 0;
    padding: 0.4em 0;
    color: #fff;
    background-color: #fd9f1b;
    border-bottom: 1px dashed #f37302;
    box-shadow: 0 2px 0 #fd9f1b;
}

time.icon.training strong {
    background-color: #008CBA;
    border-bottom: 1px dashed #005dba;
    box-shadow: 0 2px 0 #008CBA;
}
time.icon.training em {
    color: #008CBA;
}
time.icon.race strong {
    background-color: #8937e0;
    border-bottom: 1px dashed #a05f5f;
    box-shadow: 0 2px 0 #8937e0;
}
time.icon.race em {
    color: #8937e0;
}

time.icon em {
    position: absolute;
    bottom: 0.3em;
    color: #fd9f1b;
}

time.icon span {
    font-size: 2.8em;
    letter-spacing: -0.05em;
    padding-top: 0.8em;
    color: #2f2f2f;
}

.button {
    background-color: #4CAF50; /* Green */
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    margin: 5px;
}

.buttonSmall {
    padding: 7px 16px;
}

.buttonGreen {
    background-color: #4CAF50;
}
.buttonBlue {
    background-color: #008CBA;
}
.buttonRed {
    background-color: #f44336;
}
.buttonOrange {
    background-color: #f47f36;
}
.buttonMenu {
    color: black;
    background-color: #b0ded3;
}

/* (A) FULL SCREEN WRAPPER */
#spinner {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.7);
    transition: opacity 0.2s;
}

/* (B) CENTER LOADING SPINNER */
#spinner img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    transform: translate(-50%, -50%);
}

/* (C) SHOW & HIDE */
#spinner {
    visibility: hidden;
    opacity: 0;
}

#spinner.show {
    visibility: visible;
    opacity: 1;
}

.users li {
    margin: 0;
    padding: 10px 0 10px 40px;
    list-style: none;
    background-image: url("img/li.png");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 40px;
}

.link {
    padding: 10px;
    border: 1px solid gray;
    margin: 10px;
}

.link .title {
    font-size: 20px;
    margin-bottom: 10px;
}

.comment {
    border: 1px solid lightblue;
    border-radius: 5px;
    margin-bottom: 10px;
}

.comment .cheader {
    display: flex;
    background-color: lightblue;
    padding: 5px;
    font-size: smaller;
    justify-content: space-between;
}

.comment .ccontent {
    padding: 5px;
}

.challenge {
    background-color: ghostwhite;
    border: 1px solid lightblue;
    padding: 10px;
    margin: 15px 0;
    border-radius: 5px;
}

.challenge-title {
    font-size: xx-large;
    color: black;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.challenge-note {
    background-color: lightyellow;
    border: 1px solid burlywood;
    padding: 10px;
    border-radius: 5px;
    color: burlywood;
    margin: 10px 0;
    font-size: smaller;
}

.perf-table {
    background-color: lightyellow;
    border: 1px solid burlywood;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    font-size: smaller;
}

.perf-table-title {
    font-size: xx-large;
}

.perf-table-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: beige;
    margin: 5px 0;
}

.phonebook {
    width: 100%;
}

.phonebook tr:nth-child(even){background-color: #f2f2f2;}

.phonebook-title {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: center;
    font-size: x-large;
    background-color: #04AA6D;
    color: white;
}

.phonebook td, .phonebook th {
    border: 1px solid #ddd;
    padding: 8px;
    overflow-wrap: anywhere;
}

.avatar-holder {
    position: relative;
    top: 0;
    left: 0;
}
.avatar-pic {
    width: 128px;
    height: 128px;
    position: relative;
    top: 0;
    left: 0;
    margin-right: 10px;
}