* {
    padding: 0;
    margin: 0;
}

html {
    font-family: 'Helvetica';
    color: var(--font-color);
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

body {
    /* background-color: rgb(73, 73, 73);*/
    background-color: #2C6E49;
}

ul {
    padding-left: 1rem;
    margin-top: 0.5rem;
}

li {
    margin-bottom: 0.3rem;
    /* display: flex; */
    display: grid;
    grid-template-columns: 1fr max-content;
    justify-content: space-between;
    align-items: center;
}

h3 {
    margin-bottom: 0;
}

:root {
    --font-color: #FEFEE3;
    --offline-color: rgb(177, 177, 177);
    --top-padding: 3rem;
}

.flash {
    margin-top: 10px;
}

.flash.error {
    color: red;
}

.flash.info {
    color: blue;
}

.flash.success {
    color: green;
}

form {
    display: inline;
}

#volumeSymbol {
    width: 30px;
    font-size: 1.2rem;
    margin: 0px;
}

#volumeSymbol:hover {
    cursor: pointer;
}

.volumeControl {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 50px;
    max-width: 522px;
    margin: 50px auto 0 auto;
}



.main-container {
    display: grid;
    /* grid-template-columns: minmax(max-content, 1fr) 1fr auto; */
    grid-template-columns: 1fr 1fr auto;
    grid-template-rows: repeat(2, auto) 1fr;
    column-gap: 2rem;
    grid-template-areas:
        "game header social"
        "game play social"
        "game gamelog social";
    margin-left: 2rem;
    justify-items: center;
    /* padding: 0 1rem; */
}

h3.invitations-header {
    text-align: center;
    padding: 1rem 0 0.5rem 0;
}

.header {
    grid-area: header;
    padding-top: var(--top-padding);
}

.play {
    grid-area: play;
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

.gamelog {
    grid-area: gamelog;
    justify-self: center;
}

.game-container {
    /* min-width: 642px; */
    /* width: min-content; */
    grid-area: game;
    width: 40rem;
    /* display: grid; */
    /* grid-template-rows: repeat(3, max-content); */
    padding-top: var(--top-padding);
    /* justify-content: space-between; */
}

.game {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    justify-content: center;
    grid-template-rows: repeat(3, max-content);
}

.gameControl {
    /* max-width: 522px; */
    margin-top: 0.5rem;
    display: grid;
    /* justify-content: space-between; */
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    justify-items: center;
    align-items: center;
    font-weight: 400;
}

.playersSection {
    display: grid;
    grid-template-columns: 35% 20% 35%;
    margin-top: 2rem;
    justify-content: center;
}

.oppCard,
.playerCard {
    background-color: rgb(70, 61, 61);
    /* background-color: #08090A; */
    display: grid;
    /* justify-content: center; */
    font-size: 2rem;
    border-radius: 10px;
    padding: 1rem 0.5rem;
}

.scoreDiv {
    display: flex;
    justify-content: center;
    align-items: center;
}

.opponentName,
.playerName {
    display: inline-block;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
}

.Vs {
    /* background-color: blue; */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

.gameBoard-container {
    max-width: 50rem;
    aspect-ratio: 1 / 1;
    grid-row: 1;
    grid-column: 1;
}

.gameBoard {
    width: 100%;
    height: 100%;
}

.gameBoard tbody {
    height: 100%;
}

.gameBoard tr {
    width: 100%;
    height: 12.5%;
}

.square {
    /* width: 80px;
    height: 80px; */
    width: 12.5%;
    /* height: 12.5%; */
    background-color: #4C956C;
    border: solid 2px black;
    box-sizing: border-box;
}

.gamePiece {
    /* height: 65px;
    width: 65px; */
    width: 81%;
    height: 81%;
    border-radius: 50%;
    border: solid 1px black;
    margin: auto auto;
}

.thinkingBall {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    border: solid 1px black;
    background-color: white;
    /* position: relative; */
    animation: ball 0.75s infinite;
    animation-timing-function: linear;
    animation-direction: alternate;
    display: inline-block;
    margin-top: 1rem;
}

.ball1 {
    animation-delay: -.1s;
}

.ball2 {
    animation-delay: 0.15s;
}

.ball3 {
    animation-delay: 0.40s;
}

@keyframes ball {
    0% {
        left: 0px;
        background-color: white;
        transform: rotate3d(0, 1, 0, 0deg);
    }

    25% {
        left: 0px;
        background-color: white;
        transform: rotate3d(0, 1, 0, 0deg);
    }

    49% {
        left: 0px;
        background-color: white;
    }

    50% {
        left: 0px;
        background-color: black;
    }

    75% {
        left: 0px;
        background-color: black;
        transform: rotate3d(0, 1, 0, 180deg);
    }

    100% {
        left: 0px;
        background-color: black;
        transform: rotate3d(0, 1, 0, 180deg);
    }
}

.addedPiece {
    border: 2px solid red;
    animation: add 0.25s;
}

@keyframes add {
    0% {
        transform: scale(0.8);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.legalMove {
    border: solid 1px rgb(73, 73, 73);
}

.moveHint {
    border: none;
    /* animation: hint 0.375s 4; */
    animation: hint 0.25s 4;
    animation-timing-function: linear;
}

@keyframes hint {
    0% {
        background-color: none;
    }

    50% {
        background-color: rgb(48, 247, 48);
    }

    100% {
        background-color: none;
    }
}

.rotate {
    transform: rotate3d(-1, 1, 0, 180deg);
    transition: transform 0.5s ease-out, background-color 0.5s cubic-bezier(0.7, 0, 0, 1);
}

.rotate2 {
    transform: rotate3d(-1, 1, 0, 180deg);
    transition: transform 0.5s ease-out, background-color 0.5s cubic-bezier(0.7, 0, 0, 1);
}

.message__window {
    background-color: #4C956C;
    max-width: 22rem;
    /* height: 255px; */
    font-size: 1.5rem;
    text-align: center;
    grid-row: 1;
    grid-column: 1;
    justify-self: center;
    align-self: center;
    padding: 1.5rem;
    z-index: 10;
    box-shadow: 0px 0px 10px black;
    text-shadow: 1px 1px 5px black;
}

.message__window button {
    font-size: 1rem;
    padding: 0.6rem 1rem;
    margin-top: 1rem;
    background-color: #694D75;
    color: var(--font-color);
    border: 1px solid black;
}

.message__window button:hover:enabled {
    cursor: pointer;
    background-color: #7a5988;
}

.message__window button:active:enabled {
    background-color: rgb(123, 90, 138);
}

.record {
    font-size: 1.2rem;
    /* margin-bottom: 1.5rem; */
    display: flex;
    justify-content: center;
}

.recordLabel {
    font-weight: bold;
    margin-right: 0.3rem;
}

.logInOut * {
    color: var(--font-color);
    font-size: 1rem;
    font-style: italic;
    text-decoration: none;
    /* grid-area: loginout; */
}

.logInOut {
    grid-area: loginout;
    padding: 0 20%;
}

.logInOut {
    display: flex;
    justify-content: space-around;
}

/* .logIn {
    margin-left: 2rem;
} */

.logInOutText:hover {
    color: orange;
}

.welcomeMsg {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: ". welcome loginout";
    align-items: end;
    margin-bottom: 0.5rem;
}

.welcomeMsg p {
    font-size: 2rem;
    grid-area: welcome;
}

.oppDisconnectOK {
    font-size: 1rem;
    padding: 0.6rem 1rem;
    margin: 0 0.25rem;
}

.turnDisplay {
    display: inline-flex;
    justify-self: start;
}

.turnLabel {
    margin-right: 5px;
}

.turnIndicator,
.playerColor {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    border: solid 1px black;
}

.playerColor {
    margin-right: 0.5rem;
    background-color: grey;
}

.white {
    background-color: white;
}

.black {
    background-color: black;
}

/* .unassigned {
    background-color: grey;
} */

.helpMode {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    opacity: 1;
}

.helpModeLabel {
    padding-right: 10px;
}

/* The switch - the box around the slider */
.helpModeSwitch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 28px;
}

/* Hide default HTML checkbox */
.helpModeSwitch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.helpModeSlider {
    position: absolute;
    /* cursor: pointer; */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.helpModeSlider:hover {
    cursor: pointer;
}

.helpModeSlider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .2s;
    transition: .2s;
}

input:checked+.helpModeSlider {
    background-color: #931621;
}

input:checked+.helpModeSlider:before {
    -webkit-transform: translateX(28px);
    -ms-transform: translateX(28px);
    transform: translateX(28px);
}

/* Rounded sliders */
.helpModeSlider.round {
    border-radius: 30px;
}

.helpModeSlider.round:before {
    border-radius: 50%;
}

.gamelog th,
.gamelog td {
    /* width: 12rem; */
    padding: 0.3rem 1rem;
    border: solid 1px rgb(70, 61, 61);
    text-align: center;
    background-color: #4C956C;
}

.gamelog th {
    background-color: #A26769;
}

.ping {
    display: none;
}

body.disableCursor {
    cursor: none;
}

.play-computer {
    display: flex;
    align-items: center;
}

.difficultySelect {
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    margin-left: 1rem;
    opacity: 1;
}

.difficultyDisplay {
    margin: 0 18%;
    margin-bottom: 0.3rem;
    display: flex;
    justify-content: space-between;
}

.difficultySlider {
    appearance: none;
    /* background: #d3d3d3; */
    background:
        linear-gradient(to right,
            #931621,
            #931621 50%,
            #d3d3d3 50%);
    border-radius: 0.25rem;
    height: 0.5rem;
    width: 8rem;
    opacity: 0.7;
    transition: opacity 0.2s;
    /* overflow: hidden; */
}

.difficultySlider::-webkit-slider-thumb {
    appearance: none;
    width: 1rem;
    height: 1rem;
    border-radius: 0.5rem;
    background: #931621;
    border: none;
    cursor: pointer;
}

.difficultySlider.disabled::-webkit-slider-thumb {
    cursor: default;
}

.difficultySlider::-moz-range-thumb {
    appearance: none;
    width: 1rem;
    height: 1rem;
    border-radius: 0.5rem;
    background: #931621;
    border: none;
    cursor: pointer;
}

.difficultySlider.disabled::-moz-range-thumb {
    cursor: default;
}

.difficultySlider:hover:enabled {
    opacity: 1;
}

.disabled:hover {
    cursor: default;
}

.button-component,
.button-component-v2 {
    /* height: 3rem; */
    font-size: 1.2rem;
    color: var(--font-color);
    border: none;
    border-radius: 0.7rem;
    padding: 1rem;
}

.btnPlayComputer {
    background-color: #A26769;
}

.button-component:hover:enabled {
    cursor: pointer;
    background-color: #be7a7c;
}

.button-component:active:enabled {
    background-color: #da8a8d;
}

.button-component:disabled {
    /* background-color: grey; */
    opacity: 0.5;
}

.hint-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: ". buttonHint numberHints";
    align-items: center;
}

.btnHint {
    grid-area: buttonHint;
}

.btnHint,
.btnSendInvite {
    padding: 0.5rem 0.7rem;
    font-size: 1rem;
    border-radius: 0.3rem;
    background-color: #A26769;
    /* font-weight: bold; */
}

.nHints-container {
    grid-area: numberHints;
    margin-left: 0.5rem;
    display: flex;
    align-items: center;
    font-size: 1.5rem;
}

.nHints {
    margin-left: 0.25rem;
}

.invitationList {
    display: grid;
    /* flex-direction: row; */
    grid-template-columns: 1fr 1fr;
    justify-items: start;
    column-gap: 1rem;
    max-width: 40rem;
}

/* 
.acceptedInvitations,
.receivedInvitations {
    width: 80%;
} */

.accept-decline-buttons {
    display: inline;
}

.button-component-v2 {
    padding: 0.2rem 0.5rem;
    font-size: 1rem;
    border-radius: 0.3rem;
    /* font-weight: bold; */
}

/* .button-component-v2:hover:enabled {
    cursor: pointer;
    opacity: 1;
} */

.gamelog p {
    display: flex;
    justify-content: center;
    margin: 0.5rem 0;
    font-size: 1.2rem;
}

.gamelog-container {
    overflow-y: auto;
    height: 25rem;
}

.gamelog-table {
    border-collapse: separate;
}

.gamelog-table th {
    position: sticky;
    top: 0;
    border-top: 1px solid black;
    border-bottom: 1px solid black;
    border-right: 1px solid black;
    border-left: none;
}

.gamelog-table td {
    border: none;
    border-bottom: 1px solid black;
    border-right: 1px solid black;
    white-space: nowrap;
}

.gamelog-table th:first-child,
.gamelog-table td:first-child {
    border-left: 1px solid black;
}


.gamelog-container::-webkit-scrollbar {
    width: 1rem;
}

.gamelog-container::-webkit-scrollbar-track {
    background-color: rgba(211, 211, 211, 0.7);
}

.gamelog-container::-webkit-scrollbar-track:hover {
    background-color: rgba(211, 211, 211, 1);
}

.gamelog-container::-webkit-scrollbar-thumb {
    background: rgba(147, 22, 33, 0.7);
    border-radius: 0.5rem;
    border: 3px solid transparent;
    background-clip: content-box;
}

.gamelog-container::-webkit-scrollbar-thumb:hover {
    background: rgba(147, 22, 33, 1);
    border: 2px solid transparent;
    background-clip: content-box;
}

.side-ribbon {
    grid-area: social;
    height: max(100vh, 100%);
    width: 15rem;
    box-sizing: border-box;
    display: grid;
    grid-template-rows: 1fr auto;
    background-color: #463D3D;
}

.social-container {
    padding: 0 7%;
    /* background-color: #463D3D; */
}

.links {
    height: 10rem;
    width: 100%;
    justify-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.links a {
    color: var(--font-color);
    font-size: 1rem;
    font-style: italic;
    text-decoration: none;
    margin: 0.25rem 0;
}

.links h4 {
    margin: 0.5rem 0;
}

.links a:hover {
    color: orange;
}

.social-container h4 {
    margin-top: 1.5rem;
}

.sendInviteHeader {
    margin-bottom: 0.5rem;
}

.sendInvitation {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 11rem;
}

li span {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* .sendInvitation * {
    margin-left: 5%;
} */

.sendInvitation input {
    padding: 0.4rem 0.8rem;
    font-size: 1rem;
    background-color: #4C956C;
    align-self: stretch;
    border: none;
    color: var(--font-color);
    border-radius: 0.2rem;
    margin-bottom: 0.5rem;
}

.sendInvitation button {
    align-self: stretch;
}

.inviteStatus {
    font-size: 1rem;
    margin: 0.5rem 0;
    padding: 0.5rem;
    border-radius: 0.3rem;
    align-self: stretch;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inviteStatus.error {
    background-color: red;
}

.inviteStatus.info {
    background-color: blue;
}

.inviteStatus.success {
    background-color: green;
}

.inviteStatus button {
    background-color: transparent;
    color: var(--font-color);
    border: none;
}

.inviteStatus span {
    margin-right: 1rem;
}

.inviteStatus button:hover {
    cursor: pointer;
    color: firebrick;
}

.acceptInvite,
.joinGame {
    background-color: rgb(76, 149, 108);
    margin-left: 10px;
}

.acceptInvite:hover:enabled,
.joinGame:hover:enabled {
    cursor: pointer;
    background-color: rgb(101, 174, 133);

}

.acceptInvite:active:enabled,
.joinGame:active:enabled {
    cursor: pointer;
    background-color: rgb(126, 199, 158);

}

.cancelInvite,
.declineInvite,
.cancelGame {
    background-color: rgb(147, 22, 33);
}

.cancelInvite:hover:enabled,
.declineInvite:hover:enabled,
.cancelGame:hover:enabled {
    cursor: pointer;
    background-color: rgb(172, 47, 58);
}

.cancelInvite:active:enabled,
.declineInvite:active:enabled,
.cancelGame:active:enabled {
    cursor: pointer;
    background-color: rgb(197, 72, 83);
}

.sentInvitations span,
.receivedInvitations span {
    font-style: italic;
    color: var(--offline-color);
    opacity: 0.5;
}

.sentInvitations .online span,
.receivedInvitations .online span {
    font-style: normal;
    color: var(--font-color);
    opacity: 1;
}

.sentInvitations .unavailable span,
.receivedInvitations .unavailable span {
    font-style: italic;
    color: red;
    opacity: 1;
}

.disabled {
    opacity: 0.5;
    /* font-style: italic; */
    color: var(--offline-color);
}

::placeholder {
    color: rgb(75, 75, 75);
    font-style: italic;
}