
body {
	overflow-x: hidden;
}

/*.navbar-wrapper {
    position: absolute;
    top: 0px;
    width: 100%;
    background: #3a4158;
    min-height: 40px;
    -webkit-box-shadow: 0px 0px 15px 1px rgba(0,0,0,0.5);
    box-shadow: 0px 0px 15px 1px rgba(0,0,0,0.5);
    border-style: none none solid none;
    border-width: 1px;
    border-color: #ffedd3;
    display: flex;
    justify-content: space-between;
    z-index: 100000;
    max-height: 60px;
}*/

.leave-button {
    min-width: 10%;
    max-height: 35px;
    -webkit-box-shadow: 0px 3px 0px 0px #ab0000;
    box-shadow: 0px 3px 0px 0px #ab0000;
    background: #d74545;
    border-style: none;
    min-height: 28px;
    padding: 0px;
    line-height: 26px;
}

.leave-button:hover {
    background: #ca393b !important;
}


.match-id-wrapper {

}

.navbar-right {
    display: flex;
    gap: 10px;
    justify-content: space-around;
    padding: 10px;
    max-width: 130px;
    min-width: 130px;
    padding-top: 10px;
    padding-right: 10px;
}

.navbar-left {
    max-height: inherit;
    display: flex;
    max-width: 40%;
    flex-flow: row-reverse;
    padding-left: 10px;
}

#share-button {
    min-width: 35px;
    height: 35px;
    padding: 0px;
    margin: auto;
    background-image: url(/icons/share.png);
    background-size: contain;
    background-repeat: no-repeat;
    margin-bottom: 14px;
}

#share-button a {
    display: block;
    width: 100%;
    height: 100%;
}

.dice {
    position: absolute;
    width: 40px;
    height: 40px;
    background-image: url(/icons/die/1.png);
    background-size: contain;
    transform: translate(100px, 100px);
}

.pad-wrapper {
    width: 250px;
    height: 250px;
    background: #c56536;
    border-radius: 20px;
    border-style: solid;
    border-color: #0000004d;
}

.cup {
    transition: 0.5s;
    width: inherit;
    position: absolute;
    z-index: 9999;
    content: url(/icons/cup-closed.png);
}

.cup-open {
    width: inherit;
    position: absolute;
    z-index: 9999;
    content: url(/icons/cup-opened.png);
    transform: translate(0px,-280px);
}

#cup-display {
    display: flex;
    justify-content: center;
    width: 100%;
}

#control-display {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: space-around;
	
	animation-name: appear-game-control;
	animation-duration: .7s;
	animation-timing-function: ease-in-out;
	animation-iteration-count: 1;
}

.choice-button {
    min-height: 30px;
    padding-top: 15px;
    font-size: 19px;
    font-weight: 400;
}

.dice-choice-row {
    display: flex;
    flex-direction: row;
    gap: 5px;
    justify-content: center;
    margin-bottom: 5px;
}

#match-info {
    line-height: 38px;
    padding: 10px;
    color: white;
    font-size: 20px;
    font-weight: 500;
    min-width: 80px;
}

#lie-and-pass-wrapper {
    /*margin-top: 20px;*/
}

.choice-dice {
    width: 50px;
    height: 50px;
    background-size: 100%;
    background-repeat: no-repeat;
    transition: .2s;
}

.choice-dice-selected {
	
}

.choice-dice.choice-dice-unselected {
    filter: brightness(0.6);
}

.choice-dice:hover:not(.choice-dice-unselected):not(.choice-dice-selected) {
	background-size: 90%;
	transform: translate(5%, 5%);
}

.choice-dice:active:not(.choice-dice-unselected):not(.choice-dice-selected) {
	background-size: 90%;
	transform: translate(5%, 5%);
}

#game-announcement-text {
    color: var(--white);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;
    padding-left: 30px;
    padding-right: 30px;
}

.hide-cup {
    animation-name: pass-cup !important;
    animation-duration: .5s !important;
    animation-timing-function: ease-in-out !important;
    animation-iteration-count: 1 !important;
}

.game-announcement-wrapper {
    width: 100%;
    flex: 0.2;
    padding: 10px;
    padding-top: 80px;
	z-index: 99999;
}

.game-controls {
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: 20px;
    flex: 1;
    max-width: 400px;
}

.game-screen-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 10px;
    margin-left: 10px;
    margin-right: 10px;
    user-select: none;
}

.game-control-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
	
	animation-duration: .7s;
    animation-timing-function: ease-in-out;
    animation-name: appear-cup;
    animation-iteration-count: 1;
}

.timeout-bar-wrapper {
    position: absolute;
    background: var(--info-background);
    height: 5px;
    bottom: 0px;
    -webkit-box-shadow: 0px 0px 2px 0px #FFFFFF;
    box-shadow: -1px 2px 0px 1px #FFFFFF;
    border-radius: 1px;
}

.timeout-bar-running {
    animation-name: timeout-bar-decrease;
    animation-duration: 60s;
    animation-iteration-count: 1;
    animation-timing-function: linear;
}

.match-members-center {
    height: 100%;
    width: 400px;
    background: var(--window-background);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.match-members {
    flex: 0.5;
    display: flex;
    justify-content: center;
    padding-bottom: 10px;
    max-height: 100%;
    overflow: hidden;
}

.match-members-header {
    color: white;
    font-size: 18px;
    border-style: none none solid none;
    margin-left: 10px;
    margin-right: 10px;
    font-weight: 600;
    flex: 0.1;
    border-width: 1.5px;
    line-height: 30px;
}

.match-members-wrapper {
    margin-left: 10px;
    margin-right: 10px;
    overflow-y: auto;
    height: 90%;
    flex: 1;
    margin-bottom: 10px;
}

::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #888;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

ul#online-members {
    list-style: none;
    padding: 10px;
    margin: 0px;
}

.member-element-wrapper {
    display: flex;
    justify-content: space-between;
    transition: margin .2s;
    color: #bbb6b6;
    padding: 4px;
}

.online-username {
    color: inherit;
    font-size: 19px;
    font-weight: inherit;
}

.member-element-wrapper.member-turn {
    color: white;
    font-weight: 500;
    background: #ffffff29;
    border-radius: 5px;
    margin-bottom: 10px;
}

.invisible {
	opacity: 0;	
}

.tips-screen-wrapper {
    display: none;
	/* display: flex*/
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 999999999;
    background: #00000054;
    transition: background .4s;
}

.tips-window {
    padding: 10px;
    display: flex;
    width: 30%;
    min-width: 250px;
    background: var(--window-background);
    animation-name: tips-window-appear;
    animation-duration: .3s;
    animation-iteration-count: 1;
}

.tip-text {
    color: white;
}

.dice-list:before {
    width: 50px;
    content: "";
}

@keyframes tips-window-appear {
	from {
		transform: translateX(-100%);	
	}
	
	to {
		transform: translateX(0%);	
	}
}

@keyframes timeout-bar-decrease {
	from {
		width: 100%;	
	}
	
	to {
		width: 0%;	
	}
}

@keyframes roll-dice {
	0% {
		transform: translate(0%, 0%);
	}

	33% {
		transform: translate(-10%, -5%);
	}

	66% {
		transform: translate(10%, 5%);
	}

	100% {
		transform: translate(0%, 0%);
	}
}

@keyframes appear-game-control {
	0% {
		opacity: 0;	
	}
	
	90% {
		opacity: 0;	
	}
	
	100% {
		opacity: 1;	
	}
}

@keyframes pass-cup {
	from {
		transform: translateX(0px);
	}

	to {
		transform: translateX(100%);
	}
}

@keyframes appear-cup {
	from {
		transform: translateX(-100%);
	}
	
	to {
		transform: translateX(0px);
	}
}

@media only screen and (max-width: 400px) {
	.dice {
		    width: 50px;
    		    height: 50px;
	}
}

#toast-wrapper {
	top: 60px;
}
