@font-face
{
    font-family: 'customFont';
    src: url('./font/Poetsen_One/PoetsenOne-Regular.ttf');
}

*
{
    box-sizing: border-box;
    font-family: 'customFont';
    margin: 0;
    padding: 0;
    user-select: none;
}

html, body
{
    margin: 0;
    padding: 0;
    background-color: #FFFFFF;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 1600 800'%3E%3Cg stroke='%23000000' stroke-width='66.7' stroke-opacity='0.05' %3E%3Ccircle fill='%23FFFFFF' cx='0' cy='0' r='1800'/%3E%3Ccircle fill='%23f4fbf4' cx='0' cy='0' r='1700'/%3E%3Ccircle fill='%23e8f7e9' cx='0' cy='0' r='1600'/%3E%3Ccircle fill='%23ddf2df' cx='0' cy='0' r='1500'/%3E%3Ccircle fill='%23d2eed4' cx='0' cy='0' r='1400'/%3E%3Ccircle fill='%23c6eac9' cx='0' cy='0' r='1300'/%3E%3Ccircle fill='%23bbe6bf' cx='0' cy='0' r='1200'/%3E%3Ccircle fill='%23afe1b4' cx='0' cy='0' r='1100'/%3E%3Ccircle fill='%23a3ddaa' cx='0' cy='0' r='1000'/%3E%3Ccircle fill='%2397d89f' cx='0' cy='0' r='900'/%3E%3Ccircle fill='%238bd495' cx='0' cy='0' r='800'/%3E%3Ccircle fill='%237ecf8b' cx='0' cy='0' r='700'/%3E%3Ccircle fill='%2371cb80' cx='0' cy='0' r='600'/%3E%3Ccircle fill='%2363c676' cx='0' cy='0' r='500'/%3E%3Ccircle fill='%2354c16c' cx='0' cy='0' r='400'/%3E%3Ccircle fill='%2343bd62' cx='0' cy='0' r='300'/%3E%3Ccircle fill='%232db857' cx='0' cy='0' r='200'/%3E%3Ccircle fill='%2303B34D' cx='0' cy='0' r='100'/%3E%3C/g%3E%3C/svg%3E");
    background-attachment: fixed;
    background-size: cover;
}

.playerList
{
	display: flex;
	flex-direction: column;
	border: solid black 2px;
	width: 100%;
}

.player
{
	display: flex;
	flex-direction: column;
}

.player > *
{
	margin: 5px;
}

.gambleBtn
{
	width: 100%;
	height: 150px;
    margin: 3px;
}

.gameDiv {
    height: 100vh;
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 10px;
    background-color: #FFFFFF;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 1600 800'%3E%3Cg stroke='%23000000' stroke-width='66.7' stroke-opacity='0.05' %3E%3Ccircle fill='%23FFFFFF' cx='0' cy='0' r='1800'/%3E%3Ccircle fill='%23f4fbf4' cx='0' cy='0' r='1700'/%3E%3Ccircle fill='%23e8f7e9' cx='0' cy='0' r='1600'/%3E%3Ccircle fill='%23ddf2df' cx='0' cy='0' r='1500'/%3E%3Ccircle fill='%23d2eed4' cx='0' cy='0' r='1400'/%3E%3Ccircle fill='%23c6eac9' cx='0' cy='0' r='1300'/%3E%3Ccircle fill='%23bbe6bf' cx='0' cy='0' r='1200'/%3E%3Ccircle fill='%23afe1b4' cx='0' cy='0' r='1100'/%3E%3Ccircle fill='%23a3ddaa' cx='0' cy='0' r='1000'/%3E%3Ccircle fill='%2397d89f' cx='0' cy='0' r='900'/%3E%3Ccircle fill='%238bd495' cx='0' cy='0' r='800'/%3E%3Ccircle fill='%237ecf8b' cx='0' cy='0' r='700'/%3E%3Ccircle fill='%2371cb80' cx='0' cy='0' r='600'/%3E%3Ccircle fill='%2363c676' cx='0' cy='0' r='500'/%3E%3Ccircle fill='%2354c16c' cx='0' cy='0' r='400'/%3E%3Ccircle fill='%2343bd62' cx='0' cy='0' r='300'/%3E%3Ccircle fill='%232db857' cx='0' cy='0' r='200'/%3E%3Ccircle fill='%2303B34D' cx='0' cy='0' r='100'/%3E%3C/g%3E%3C/svg%3E");
    background-attachment: fixed;
    background-size: cover;
}

.gameHistory, .inventory, .itemShop, .playerList
{
	border: solid black 2px;
	width: 100%;
	overflow-y: auto;
	height: 50vh;
    background-color: rgba(255, 255, 255, 0.5);
}

.gameHistory > *, .itemShop .item > *, .inventory > *
{
	margin: 0;
	padding: 5px;
}

.left
{
	display: flex;
	flex-direction: column;
}

.containerSizing {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 33%;
}

.gameHistory, .playerList, .itemShop, .inventory, .gambleBtn
{
	font-size: 20px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

.item:hover, .inventory_item:hover, .eventManualEnforceMenu p:hover
{
    background-color: #cfcfcf;
    cursor: pointer;
}

@keyframes pulseHighlight
{
    0%
    {
        background-color: #A1E0FB;
    }
    50%
    {
        background-color: #FFFFFF;
    }
    100%
    {
        background-color: #A1E0FB;
    }
}

.player.selected
{
    animation: pulseHighlight 2s infinite ease-in-out;
}

.turn
{
    background-color: #FFE0B2;
}

.center, .customRules h2
{
    text-align: center;
}

.currentlyPlaying, .scoreDiv, .numberToGuess, .customRules > *, .ruleInput > *
{
    font-size: 30px;
}

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

.customRules, .sipSpread, .eventPenaltySelection, .eventManualEnforceMenu
{
    overflow-y: auto;
    background-color: lightgrey;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: solid black 2px;
}

.customRules
{
    width: 80vw;
    height: 80vh;
}

.sipSpread
{
    width: 30vw;
    height: 30vh;
}

.customRules .top
{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.customRules > *
{
    margin: 20px;
}

.customRulesIcon, .closeCustomRulesIcon, .colorSwitch
{
    width: 64px;
    height: 64px;
}

.customRulesIcon:hover, .closeCustomRulesIcon:hover, .playerSip img, .colorSwitch, .gambleBtn
{
    cursor: pointer;
}

.invis
{
    display: none !important;
}

.itemPeak
{
    width: 20vw;
    background-color: rgba(190, 190, 190);
    position: absolute;
    border: solid black 2px;
}

.playerSip
{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    padding: 5px;
    margin: 5px;
}

.addPlayerForm
{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.addPlayerForm > *
{
    width: 350px;
    height: 75px;
    margin: 5px;
    padding: 10px;
    font-size: 20px;
}

.endConditions, .rulesDiv
{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 20px;
}

.endContainer
{
    width: 350px;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.endContainer > *
{
    margin: 5px;
}

.endContainer input
{
    padding: 5px;
    font-size: 16px;
}

.radioOption
{
    display: flex;
    align-items: center;
    gap: 10px;
}

.endValue
{
    text-align: center;
}

.endScreen h2
{
    margin: 0 auto;
    text-align: center;
    margin: 50px;
    font-size: 48px;
}

.roundAmount
{
    text-align: center;
    margin-bottom: 10px;
}

.stats
{
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}

.stats > *
{
    margin: 5px;
    padding: 5px;
    border: solid black 2px;
    border-radius: 4px;
}

.stats h3
{
    font-size: 20px;
    margin: 20px;
}

.cat p, .eventManualEnforceMenu p
{
    margin: 2px;
    padding: 5px;
}

.eventPenaltySelection > *, .sipSpread > *
{
    padding: 5px;
    margin: 5px;
}

.eventPenaltySelection p.selected
{
    background-color: #A1E0FB;
}

@media only screen and (max-width: 600px)
{
    .gambleBtn
    {
        height: 100px;
    }

    .currentlyPlaying, .scoreDiv p
    {
        font-size: 20px;
    }

    .gameHistory, .playerList, .itemShop, .inventory, .gambleBtn
    {
        font-size: 14px;
    }

    .sipSpread
    {
        width: 80vw;
        height: 50vh;
    }
}