.parade-tracker {
    max-width: 1200px;
    margin: 0 auto;
}

html {
    font-size: 13px;
}

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

p {
    text-align: left;
}

h1, h2, h3 {
    text-align: left;
}


.end {
    --next-section-color: #808080;
    --section-color: #808080;
}

.finished {
    --next-section-color: #808080;
    --section-color: #e42b2d;
}

.second-section {
    --next-section-color: #e42b2d;
    --section-color: #ff9d00;
}

.first-section {
    --next-section-color: #ff9d00;
    --section-color: #65db2b;
}

.missing {
    --next-section-color: #65db2b;
    --section-color: #808080;
}

.section .loading {
    text-align: center;
    line-height: 1em;
    color: #808080;
}

.section .wrapper {
    border-left: 3px solid var(--section-color);
    margin: -1rem 0 -1rem 0.57rem;
    box-sizing: border-box;
    padding: 1rem 0 1rem 1.3rem;
}

.section h2 {
    display: flex;
    gap: 1.25rem;
    font-size: 1.2rem;
    font-weight: normal;
    line-height: 1.2rem;
    align-items: center;
    color: #5d5d5d;
    width: 100%;
    text-align: left;
}

.section h2 .spacer {
    flex-grow: 1;
    border-bottom: 1px solid #d9d9d9;
}

.section h2::before {
    content: ' ';
    width: 1.3rem;
    height: 1.3rem;
    background: var(--section-color);
    display: block;
    border-radius: 50%;
    flex-shrink: 0;
}

.section .participants {
    background: #f2f2f2;
    padding: 1rem;
    border-radius: 1rem;
    position: relative;
    min-height: 4rem;
    overflow: hidden;
}

.section .wrapper {
    display: grid;
    transition: grid-template-rows 0.125s ease-in-out;
    overflow: hidden;
    grid-template-rows: 1fr;
    border-image: linear-gradient(to bottom, var(--section-color) 0%, var(--next-section-color) 100%) 1;
}

.section.collapsed .wrapper {
    grid-template-rows: 0fr;
}

.section .participants .participant {
    margin-bottom: .5rem;
    /*border-left: 2px solid var(--section-color);*/
    font-size: 1.2rem;
    color: #313131;
    display: flex;
    text-align: left;
    align-items: center;
}

.section .participants .participant:last-child {
    margin-bottom: 0;
}

.section .participants .participant .order-number {
    background: #d9d9d9;
    color: #777777;
    --size: 2rem;
    width: var(--size);
    height: var(--size);
    display: inline-block;
    text-align: center;
    line-height: var(--size);
    font-size: 1.2rem;
    font-weight: bold;
    /*margin-left: .6rem;*/
    border-radius: .5rem;
    margin-right: .6rem;
    flex-shrink: 0;
}

.chevron {
    background: url(/sigue-el-gran-desfile/chevron.svg) var(--section-color);
    height: var(--size);
    width: var(--size);
    display: block;
    --size: 1.5rem;
    color: white;
    border-radius: 50%;
    background-size: 1.3rem;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform .2s;
}

.section.collapsed .chevron {
    transform: rotate(-90deg);
}

.collapsed:not(.empty) .participants::before {
    content: '';
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, #fff 100%);
    position: absolute;
}

.section.empty .participants{
    min-height: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section.collapsed .participants .participant {
    display: none;
}

.section.collapsed .participants .participant:last-child {
    display: block;
}

header.parade-tracker-header {
    padding: 1rem 1rem 0;
    display: flex;
    justify-content: center;
    align-items: center;    
    background-color: transparent;
    background-image: linear-gradient(180deg, #FAFCFD 33%, #FBF3DC 100%);
    border-bottom: 1px solid #f6e6b6;
}

header.parade-tracker-header img {
    max-height: 80px;
}

.introduction {
    padding: 1rem 1rem 0 1rem;
    text-align: justify;
}

.introduction p {
    margin-bottom: 0;
}

.introduction h1 {
    font-size: 1.2rem;
}

.introduction {
    font-size: .9rem;
    max-width: 1500px;
    margin: 0 auto;
}

.over-header {
    background: #000;
    color: white;
    text-transform: uppercase;
    font-size: 8px;
    text-align: center;
    padding: 2px;
}

.section:not(.collapsed) .participants {
    overflow-x: hidden;
    max-height: 50vh;
    overflow-y: scroll;
    scrollbar-color: var(--section-color) #ebebeb;
    scrollbar-width: thin;
}

@keyframes newParticipant {
    0% {opacity: 1}
    50% {opacity: 0}
    100% {opacity: 1}
}

.participants .highlight-participant {
    animation: newParticipant;
    animation-duration: 1s;
    animation-iteration-count: 10;    
    animation-timing-function: ease-in-out;
}

.section.end {
    padding-top: .4rem;
}