@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    touch-action: manipulation;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

div {
    color: white;
}

table.scoreboard td, th {
    text-align: center;
}

td.winning {
    border-right: 2px solid goldenrod;
    border-left: 2px solid goldenrod;
}

th.winning {
    border-top: 2px solid goldenrod;
    border-right: 2px solid goldenrod;
    border-left: 2px solid goldenrod;
}

tr:last-child td.winning {
    border-bottom: 2px solid goldenrod;
}

.btn-primary {
    color: #fff;
    background-color: forestgreen;
    border-color: black;
    margin: 1em;
}

    .btn-primary:hover {
        color: #fff;
        margin: 1em;
        background-color: forestgreen;
        border-color: forestgreen;
    }

.btn-outline-primary {
    color: limegreen;
    background-color: white;
    border-color: limegreen;
    margin: 1em;
}

    .btn-outline-primary:hover {
        color: #fff;
        margin: 1em;
        background-color: forestgreen;
        border-color: forestgreen;
    }

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem limegreen, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudz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I2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #cc8f3a;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}
.loading-holder {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    margin: 1em
}

.first-dot {
    animation: fade-in 1s infinite linear;
    animation-direction: alternate;
    opacity: 0;
}

.second-dot {
    animation: fade-in 1s infinite linear;
    animation-direction: alternate;
    animation-delay: .5s;
    opacity: 0;
}

.third-dot {
    animation: fade-in 1s infinite linear;
    animation-direction: alternate;
    animation-delay: 1s;
    opacity: 0;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.flex-r-100 {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
}

.flex-r {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

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

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

.flex-c-sa {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

/* The flip card container - set the width and height to whatever you want. We have added the border property to demonstrate that the flip itself goes out of the box on hover (remove perspective if you don't want the 3D effect */
.flip-card {
    background-color: transparent;
    transition: transform 0.8s;
}

/* This container is needed to position the front and back side */
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

/* Do an horizontal flip when you move the mouse over the flip box container */
.flip-card .flip-card-inner-flip {
    transform: rotateY(180deg);
}

.flip-card .flip-card-inner-flip-twice {
    transform: rotateX(90deg);
    transition-duration: .75s;
}

/* Position the front and back side */
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
}

/* Style the front side (fallback if image is missing) */
.flip-card-back {
    background-color: #bbb;
    color: black;
}

/* Style the back side */
.flip-card-front {
    color: black;
    transform: rotateY(180deg);
}

button {
    box-shadow: rgba(0, 255, 0, 0.2) 0px 0px 24px, rgba(0, 255, 0, 0.2) 0px 0px 39px, rgba(0, 255, 0, 0.2) 0px 0px 60px;
}

a {
    text-decoration: none;
}

.main-page-main-text {
    align-items: start;
    width: fit-content;
}

.card {
    border-radius: 5px;
    height: var(--card-height);
    width: var(--card-width);
    margin: var(--card-margin);
}

.history-card {
    height: 10em;
    width: 7.143em;
    margin: 1em;
}

.my-turn-card {
    -webkit-box-shadow: 0 0 20px gold;
    -moz-box-shadow: 0 0 20px gold;
    box-shadow: 0 0 20px gold;
}

.my-turn-card:hover {
    cursor: pointer;
}

.main-img {
    width: fit-content;
}

.error-highlight {
    border: 3px solid red;
}

.my-turn-indicator {
    display: block;
    position: absolute;
    top: 10%;
    left: 50%;
    font-size: xx-large;
    z-index: 1000;
}

.modal-stuff {
    color: white;
    background-color: #063658;
}

.play-mat {
    background: rgba(46, 200, 64, .8);
    padding: 0 .5em;
    border-radius: 5px;
}

.play-mat-opp {
    background: rgba(218, 165, 32, .8);
    padding: 0 .5em;
    border-radius: 5px;
}

.draw-box {
    border: 1px solid black;
    border-radius: 5px;
    padding: .5em;
}

.fade-in {
    animation: fade-in-ani 1s 1 linear;
    opacity: 1;
}

.right-to-left {
    animation: right-to-left-ani 1s 1 linear;
}

.side-block {
    position: fixed;
    top: 50%;
    right: 20%;
    z-index: 10;
}

.my-turn-pin {
    transition: left 1s, top 1s, transform 1s;
    position: absolute;
    height: 5em;
}

.center-mat {
    height: calc(var(--card-height) + 2em);
}

.center-mat div{
    position:absolute;
}

@keyframes fade-in-ani {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes right-to-left-ani {
    0% {
        right: -10%;
    }

    50% {
        right: 25%;
        opacity: 1;
    }
}

.tee-box {
    position: fixed;
    right: 2em;
    border-radius: 5px;
    margin-top: 1em;
    padding: .5em;
    z-index: 10;
    align-items: center;
}

.modal-content {
    background-color: transparent !important;
}

.gen-modal-dialog {
    margin: 0;
}

.golf-back {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),url('https://images.unsplash.com/photo-1544914379-806667cd9489?q=80&w=1931&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
}

@-webkit-keyframes rotating /* Safari and Chrome */ {
    from {
        -webkit-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes rotating {
    from {
        -ms-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    to {
        -ms-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.rotating {
    -webkit-animation: rotating 5s linear infinite;
    -moz-animation: rotating 5s linear infinite;
    -ms-animation: rotating 5s linear infinite;
    -o-animation: rotating 5s linear infinite;
    animation: rotating 5s linear infinite;
}

.move-made {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
    width: 100%;
}

    .move-made div {
        margin: .5em;
        padding: .5em;
        border-radius: 5px;
    }

.cards-in-deck {
    height: var(--card-height);
    width: var(--card-width);
    margin: var(--card-margin);
}

/* Hide scrollbar for Chrome, Safari and Opera */
.mobile-many::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.mobile-many {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

@media (max-width: 640.98px) {
    :root {
        --card-height: 6em;
        --card-width: calc(var(--card-height)*5/7);
        --card-margin: .25em;
        --my-hand-bottom: var(--card-margin);
    }

    .mobile-many {
        overflow-x: auto;
        justify-content: start;
    }

    .mobile-many-margin{
        margin: 0 5em;
    }

    .mobile-play-mat {
        background: rgba(46, 200, 64, .8);
        padding: 0 .5em;
        border-radius: 5px;
    }

    .mobile-play-mat-opp {
        background: rgba(218, 165, 32, .8);
        padding: 0 .5em;
        border-radius: 5px;
    }

    .adjustable-width {
        width: 100%;
    }

    .adjustable-position-fixed {
        position: relative;
    }

    .hide-in-mobile {
        display: none;
    }

    .mobile-blocker {
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),url('https://images.unsplash.com/photo-1544914379-806667cd9489?q=80&w=1931&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
        position: absolute;
        height: 100vh;
        width: 100vw;
        z-index: 1;
    }

    .tee-box {
        display: flex;
        flex-direction: row;
        justify-content: center;
        margin-top: 5em;
    }

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

    .switch-flex-space {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
    }
}

@media (min-width: 641px) {
    :root {
        --card-height: 7em;
        --card-width: calc(var(--card-height)*5/7);
        --card-margin: 1em;
        --my-hand-bottom: 0;
    }

    .adjustable-width {
        width: 50%;
        min-height: 100vh;
    }

    .adjustable-position-fixed {
        position: fixed;
    }

    .rounder {
        right: 2em;
    }

    .shower {
        left: 2em;
    }

    .hide-in-desktop {
        display: none;
    }

    .mobile-blocker {
        display: none;
        z-index: -1;
    }

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

    .switch-flex {
        display: flex;
        flex-direction: row;
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
    }

    .switch-flex-space {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
        flex-wrap: wrap;
    }
}
