@import "/files/customsite/CS_1839/ID_2354/css/extend.css";

.sbs-customsite {
    font-size: 16px;
    background: #da2920;
}

.sbs-customsite section.banded > .inner {
    max-width: 60em;
}

#hero {
    background-image: url(img/sr100_hero.jpg);
    background-position: 50% 100%;
}

@media screen and (max-width: 1500px) {
    #hero {background-image: url(img/sr100_hero_m.jpg);}
}

@media screen and (max-width: 600px) {
    #hero {background-image: url(img/sr100_hero_s.jpg);}
}

#mechanism {
    background: transparent;
    color: white;
}

#mechanism .copy {
    text-align: center;
}

#mechanism .parts {
    margin-top: 2em;
}

#mechanism .list {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
}

#mechanism .list .laatikko {
    font-size: .8em;
    text-align: center;
    padding: .75em;
    width: 16.66%;
    min-width: 160px;
    border-radius: .25em;
    padding-top: 11em;
    background-repeat: no-repeat;
    background-position: 50% 1.5em;
    background-image: url(/files/customsite/CS_1997/ID_2586/img/star_unselected.png);
    background-size: 60% auto;
    align-self: stretch;
    display: flex;
    flex-flow: column nowrap;
}

#mechanism .list .laatikko.selected {
    background-color: black;
    animation: select .33s ease-out;
}

#mechanism .list .laatikko.selected .button.vote {
    display: none;
}

@keyframes select {
    from {transform: translateY(0);}
    30% {transform: translateY(-1em);}
    50% {transform: rotateY(90deg);}
    to  {transform: translateY(0);}
}

#mechanism .list .laatikko.selected {
    background-image: url(/files/customsite/CS_2000/ID_2591/img/vinyl.png);
    background-size: 80% auto;
    background-color: white;
    color: black;
}

#mechanism .list .laatikko.selected .nimi {
    margin-top: auto;
}

#mechanism .list .laatikko.locked {
    background-position: 0 0;
    background-size: cover;
    background-color: black;
    background-image: url(/files/customsite/CS_2000/ID_2591/img/vinyl.png);
}

#mechanism .list .laatikko .button {
    margin-top: auto;
    margin-bottom: 0;
}

#mechanism .list .laatikko .nimi {
    margin: 0 0 1em;
}

#mechanism .list .laatikko .nimi>div:nth-child(2) {
    font-weight: bold;
}

#mechanism .list .laatikko.omavalinta .nimi {
    margin-bottom: 0;
} 

#mechanism .list .laatikko .nimi>.number {
    font-size: 2em;
    font-weight: bold;
    margin: .25em 0;
}

#mechanism .form-before {
    max-width: 42em;
    margin: 2em auto 0;
}


#omavalinta {
    margin-bottom: .25em;
}

@media screen and (max-width: 600px) {
    #mechanism .list .laatikko {
        min-width: 0;
        width: 50%;
        padding-top: 8em;
        padding-top: max(40%,8em);
    }
}


section.sbsform label.check span::before, section.sbsform .input-row > .wrapped input[type="text"], section.sbsform .input-row > .wrapped input[type="email"], section.sbsform .input-row > .wrapped input[type="number"], section.sbsform .input-row > .wrapped select, section.sbsform .input-row > .wrapped textarea {
    background: white;
    border: 0;
}