/*generic.css*/
:root {
    --orange-camel: #f5af3e;
    --orange-camel-accent: #dd8f46;
    --green-camel: #579f39;
    --green-camel-accent: #086d45;
    --heading-stroke-orange: #b78957;
    --background-dark-blue: #0c91de;
    --background-light-blue: #71d8f2;
    --blue-background-gradient: linear-gradient(to bottom, var(--background-light-blue) 20%, var(--background-dark-blue));
    --orange-background-gradient: linear-gradient(to bottom, var(--orange-camel) 20%, var(--orange-camel-accent));
    --green-background-gradient: linear-gradient(to bottom, var(--green-camel) 20%, var(--green-camel-accent));
}

body {background: var(--blue-background-gradient); }

button { font-family: 'Lilita One', sans-serif; }

.landscape-modal {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: fixed;
    width: 100%; height: 100%;
    background-color: black;
    color: white;
    opacity: 0.99;
    font-size: 150%;
    text-align: center;
    word-spacing: 4px;
    z-index: 99;
}
.landscape-image { animation: rotate-left 2s infinite forwards; }
.landscape-modal p { max-width: 10em; }

/*index.css*/
h1 {
    color: var(--orange-camel);
    letter-spacing: -3px;
    text-align: center;
    line-height: 1.2;
    text-shadow: 0px 5px black;
    max-width: 7.75em; 
    margin: 0.2em auto;
    -webkit-text-stroke: 2px var(--heading-stroke-orange);
    text-transform: uppercase;
}

#select main h1 { min-width: 10em; }

#select h1, #select h2 {
    color: white;
    -webkit-text-stroke: 1px black;
    text-transform: uppercase;
    text-shadow: none;
}

main {
    display: flex;
    position: relative;
    z-index: 1;
    flex-direction: column;
    width: 100%; min-height: 100%;
    justify-content: center;
    align-items: center;
}

.start-menu,
.setup-menu {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 16em;
    margin: 0 auto;
}

.button {
    display: block;
    width: 8em;
    padding: 0.2em;
    margin: 0.3em;
    border: solid 8px var(--orange-camel);
    box-shadow: 0px 2px 4px black;
    border-radius: 40px;
    font-size: 170%;
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
    -webkit-text-stroke: 0.5px black;
    color: white;
    background: var(--green-background-gradient);
}
.fullscreen-button {
    background: none;
    border: none;
    position: absolute;
    padding: 0;
    top: 1vw; right: 1vw;
}
.back-button.button {
    margin: 0;
    padding: 0 0.2em 0.1em 0.2em;
    width: auto;
    border-radius: 4px;
    position: fixed;
    top: 0.5em; left: 1em;
    border-width: 4px;
}
#play .back-button.button {
    z-index: 2;
    top: unset; bottom: 0.5em; left: 0.5em;
    width: 5%;
}

.back-button img { vertical-align: middle; }
#add-player .button { -webkit-text-stroke: 1px black; }

.player-container {
    display: flex;
    justify-content: center;
    max-width: 80%;
}
.player-container > .player-section{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3em;
}
.overview.player-container {
    display: block;
    position: fixed;
    top: 5em; left: 0;
    width: fit-content;
    max-height: 60%;
    max-width: 33%;
    overflow-y: scroll;    
 }
.overview.player-container > .player-section {
    max-width: unset;
    flex-direction: column;
    flex-wrap: nowrap;
    margin-bottom: 0.4em;
}

.player-button {
    display: flex;
    font-size: 150%;
    font-weight: bold;
    background: var(--orange-background-gradient);
    color: white;
    padding: 0.2em 0.6em;
    margin: 0.4em;
    border-radius: 8px;
    box-shadow: 0px 1px 1px 1px var(--heading-stroke-orange);
    align-items: center;
    text-transform: uppercase;
    -webkit-text-stroke: 1px black;
    border: none;
}
.overview .player-button { font-size: 100%; }
#select .player-button { margin-top: 0; }
.overview .player-button .player-image { width: 25px; }

.player-button > p { padding: 0; }
.player-image,
.edit-player-modal img {
    background: var(--green-background-gradient);
    padding: 0.1em;
    margin: 0 0.6em 0 0;
    border-radius: 6px;
}
.edit-player-modal,
.selection-overview-screen,
.bet-overview-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed; top: 0;
    width: 100%; height: 100%;
    background-color: rgb(128, 128, 128, 0.5);
    text-align: center;
}
.edit-player-modal > div {
    display: inline-block;
    background: var(--blue-background-gradient);
}
.edit-player-modal > div > form {
    display: inline-block;
    padding: 1em 2em 2em;
    background: transparent;
}
.edit-player-modal > div > form > span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4em;
    background: var(--orange-background-gradient);
}
.edit-player-modal > div > form > span > * { margin: 0 0.4em; }
.edit-player-modal > div > form > span > input,
.bet-amount {
    background: transparent;
    border: solid 1px white;
    color: white;
    height: 30px;
    max-width: 6em;
    text-transform: uppercase;
    font-size: 125%;
    padding: 0 0.4em;
    text-align: center;
}
.edit-player-modal input::placeholder { color: white; }
.button-container .button {
    font-size: 150%;
    margin: 1em auto;
}
.edit-player-modal > div > .close-modal-button {
    display: block;
    text-align: right;
    font-size: 200%;
    color: red;
    margin: 0.2em;
    margin-left: auto;
    cursor: pointer;
    border: none;
    background: none;
}

.bet-container,
.camel-container { margin: 0.8em 0; }
.amount-container { text-align: center; }
.bet-button {
    width: 1.5em; height: auto;
    border: solid 4px var(--orange-camel);
    box-shadow: 0px 2px 4px black;
    border-radius: 5px;
    font-size: 150%;
    font-weight: bold;
    text-align: center;
    color: white;
    background: blue;
    padding: 0;
}
.bet-amount {
    padding: 0;
    margin: 0 0.5em;
    border: none;
    width: 2em;
    vertical-align: bottom;
    font-size: 150%;
    font-weight: bold;
    border-bottom: solid 2px white;
    border-radius: 0;
}

.camel-container { text-align: center; }
.camels input[type="radio"] {
    visibility: hidden;
    position: absolute;
    pointer-events: none;
}
.camel-image {
    padding: 0.4em;
    border: solid 4px white;
    border-radius: 4px;
}
.camel-image.sibling-checked {
    border-color: var(--orange-camel-accent);
}
#select .buttons-container { margin: 0.3em 1em 0.8em auto; } 

.save-button,
.submit-button {
    display: inline-block;
}

.selection-overview-screen {
    padding-top: 1.4em;
    flex-direction: column;
    background: black;
    justify-content: unset;
    overflow-y: scroll;
}
.selection-overview-screen .button { margin: 0.4em; }
.selection-overview-screen .play-button { margin-top: 0.8em; }

.bet-overview-screen {
    z-index: -99;
    opacity: 0;
    flex-direction: column;
    background-color: black;
    font-weight: bold;
    font-size: 180%;
    line-height: 1.2;
    -webkit-text-stroke: unset;
}
.bet-overview-screen > * { padding: 0; }
#select .bet-overview-screen .h2 {
    color: var(--orange-camel-accent);
    -webkit-text-stroke: unset;
}
.bet-overview-screen > h2 > .text {
    display: block;
    color: white;
}
.overview-container {
    display: flex;
    justify-content: space-around;
    width: 95%;
}
.overview-container > div {
    display: flex;
    align-items: flex-start;
}
.overview-container .bettors {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
}

.overview-container .camel-image {
    border: none;
    margin-right: 0.2em;
}
.bettors > div {
    padding: 0;
    margin: 0 0 0.8em 0;
    line-height: 1.3;
    color: white;
    width: 100%;
}
.bettors > div > * { padding: 0; }
.bettors > div > h3 { color: var(--orange-camel-accent); }
.bettors > div > h3,
.bettors > div > p {
    text-transform: uppercase;
    font-size: 115%;
}

.hide.hide { display: none; }

input[type=number]::-webkit-inner-spin-button { display: none; }
.overview.player-container::-webkit-scrollbar { display: none; }


#play main {
    flex-direction: row;
    justify-content: unset;
}

.paddock {
    display: flex;
    flex-direction: column;
    width: 10%; height: 100vh;
    background-image: url(../resources/elements/gravel.svg);
    background-size: cover;
    padding: 0;
}
.race-camel {
    z-index: 1;
    align-self: center;
    width: 60%;
    transform: scaleX(-1);
    position: relative;
}
.race-camel.lane-in-2s { height: 40%; }
.race-camel.lane-in-3s { height: 26.67%; }
.race-camel.lane-in-4s { height: 20%; }

.finish-line {
    position: fixed;
    top: 0; right: 0;
    width: 10%; height: 100%;
    background: linear-gradient(45deg, black 25%, transparent 25%), linear-gradient(-45deg, black 25%, transparent 25%), linear-gradient(45deg, transparent 75%, black 75%), linear-gradient(-45deg, white 75%, black 75%);
    background-size: 40px 40px;
    background-position: 0 0, 0 20px, 20px -20px, -20px 0;
}

.race-track, .track { padding: 0; }
.race-track {
    display: flex;
    flex-direction: column;
    width: 80%;
    height: 100vh;
}
.track.lane-in-2s { height: 40%; }
.track.lane-in-3s { height: 26.67%; }
.track.lane-in-4s { height: 20%; }
.track > img {
    max-width: 100%; height: 100%;
    border-top: solid 4px #f9a62199;
}
.track1 > img { border-top: none; }

.trump-card-holder {
    padding: 0;
    display: flex;
    height: 20%; width: 100%;
    pointer-events: none;
}
.trump-card-holder > img { width: 16.67%; } 

.advance-card-holder,
.penalty-card-holder {
    position: absolute;
    top: 0; left: 0;
    display: flex;
    width: 100%; height: 100%;
    justify-content: center;
    padding: 0;
    z-index: 1;
}
.advance-card-holder > img,
.penalty-card-holder > img {
    position: relative;
    top: -10%;
}

.finish-screen {
    display: flex;
    flex-direction: column;
    position: absolute;
    width: 100%; height: 100%;
    justify-content: center;
    align-items: center;
    z-index: 1;
    background: var(--blue-background-gradient);
}

.winning-camel {
    margin-bottom: 0.5em;
}

@media (max-width: 25em) {
    .button {
        font-size: 125%;
        width: 10em;
    }
    .player-button { font-size: 100%; }
}
@media (max-width: 45em) {
    .overview.player-container {
        position: unset;
        max-width: 50%;
    }
    .camel-image { width: 20vw; }
    .overview-container .camel-image {
        width: 15vw;
        margin-right: 0;
        margin-bottom: 0.4em;
    }
    .overview-container > div { flex-direction: column; }
    .bettors { width: 100%; }
    .player-button,
    #add-player .button { -webkit-text-stroke: 0.25px black; }
    .player-image { width: 25px; }
    .clouds { width: 10vw; }
/*     .back-button img { width: 8vw; } */
}
@media (max-width: 30em) {
    body { font-size: 3vw; }
}