*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
    --dark-700: #191C20;
    --dark-600: #26282b;
    --dark-500: #404448;
    --light-200: #D8D9DA;
    --light-100: #EBECEC;
    --yellow: #FFB703;
    --border-radius: 8px;
    --breakpoint: 1070px;
}

body.bet-body {
    background-color: var(--dark-700);
}

.main-container {
    max-width: 1450px;
    margin: 0 auto;
    padding: 15px;
}

@media (min-width: 1070px) {
    .main-container {
        padding: 20px 15px;
    }
}

.bet-login-btn {
    text-shadow: none;
    font-weight: 600;
    box-shadow: none;
    background-image: none;
    background-color: var(--yellow);
    border-radius: var(--border-radius);
    border: none;
    padding: 8px 20px;
    margin-bottom: 20px;
    transition: background-color 200ms ease-in-out;
}

.bet-login-btn:hover, .bet-login-btn:active, .bet-login-btn:focus {
    background-color: #ffc535;
}

@media (min-width: 768px) {
    .bet-login-btn {
        margin-bottom: 0;
    }
}

.bet-headline {
    text-align: center;
    color: var(--light-100);
    margin-top: .5em;
    margin-bottom: 1.2em;
}

.toggle-button {
    text-shadow: none;
    font-weight: 500;
    letter-spacing: 0.5px;
    background-image: none;
    box-shadow: none;
    background-color: transparent;
    color: var(--yellow);
    border-radius: var(--border-radius);
    border: 2px solid var(--yellow);
    -webkit-appearance: none;
    padding: 7px 16px 6px;
    margin-bottom: 24px;
    display: block;
    transition: background-color 200ms ease-in-out;
}

.toggle-button:hover, .toggle-button:active, .toggle-button:focus {
    background-color: var(--dark-500);
    color: var(--yellow)
}

/* @media (min-width: 1070px) {
    .toggle-button {
        display: none;
    }
} */

.gamblers {
    color: var(--light-200);
}

.gamblers .table-striped tbody>tr:nth-child(odd)>td, .gamblers .table-striped tbody>tr:nth-child(odd)>th {
    background-color: var(--dark-500);
    color: var(--light-200);
}

.gamblers .table tbody tr.info>td, .gamblers .table tbody tr.info>td a {
    background-color: var(--yellow);
    color: var(--dark-700);
}

.gamblers .table tbody tr.info>td a:hover, .gamblers .table tbody tr.info>td a:focus {
    color: var(--dark-700);
}

.gamblers td:first-of-type {
    padding-left: 16px;
    width: 48px;
}

.gamblers td:last-of-type {
    text-align: right;
    padding-right: 16px;
}

.gamblers a {
    color: var(--yellow);
}

.gamblers a:hover, .gamblers a:focus {
    color: var(--yellow);
}

.bets-container {
    display: flex;
    flex-direction: column;
}

@media (min-width: 1070px) {
    .bets-container {
        flex-direction: row;
        gap: 15px;
    }
}

@media (min-width: 1450px) {
    .bets-container {
        gap: 25px;
    }
}

.gamblers {
    min-width: min(100%, 350px);
}

.table td {
    height: 1px;
}

.bets-section {
    background-color: var(--dark-700);
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px 10px;
    padding: 10px 0 20px;
}

@media (min-width: 1200px) {
    .bets-section {
        justify-content: space-between;
        padding-top: 0;
    }
}

.bet-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    flex-basis: 100%;
    padding: 0 15px;
    color: var(--light-200);
    text-align: center;
    background-color: var(--dark-700);
}

@media (min-width: 768px) {
    .bet-group-header {
        text-align: left;
        flex-direction: row;
        align-items: flex-end;
    }
}

@media (min-width: 1070px) {
    .bet-group-header {
        text-align: left;
    }
}

.bet-group-header h2 {
    font-size: 28px;
}

.bet-group-header p {
    font-size: 16px;
    margin-bottom: 0;
}

.bet-group-header .toggle-button {
    margin-bottom: 0;
    margin-top: 15px;
}

.bet {
    width: min(100%, 320px);
    max-width: 330px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (min-width: 510px) {
    .bet {
        width: min(100%, 250px);
    }
}


.bet-card {
    position: relative;
    background-color: var(--yellow);
    border-radius: var(--border-radius);
    flex-basis: 100%;
    padding: 15px;
}

.see-bets {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: transparent;
    border: none;
    padding: 10px;
    line-height: 1px;
}

.see-bets-tooltip {
    position: absolute;
    opacity: 0;
    display: inline-block;
    background-color: #fff;
    border-radius: 4px;
    width: 180px;
    padding: 2px;
    z-index: 1;
    right: 40px;
    line-height: 1.5;
    font-size: 13px;
    transition: opacity 150ms ease-in-out;
}

.see-bets:hover .see-bets-tooltip {
    opacity: 1;
} 

.bet-promotion .bet-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.bet-promotion .bet-card--with-answer {
    padding-bottom: 24px;
}

.bet-promotion .bet-teams {
    margin-top: 13px;
}

.bet-promotion .bet-group-wrapper {
    min-width: 80px;
}

.bet-promotion .bet-card--with-form > * {
    flex: 1;
}

.bet-promotion .bet-form-wrapper {
    margin-top: 0;
    min-width: 105px;
}

.bet-promotion .advance-result {
    width: 70px;
    font-size: 13px;
    line-height: 1.2;
    min-height: 52px;
}

.advance-result {
    margin-bottom: 0;
}

.advance-result b {
    display: inline-block;
    margin-top: 4px;
    font-size: 14px;
}

.bet-question .advance-result b {
    margin-left: 5px;
}

.bet-group {
    font-weight: 800;
}

.bet-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.bet-countries .bet-card {
    min-height: 139px;
}

.bet-countries figure {
    width: 35px;
    margin: 0;
}

.bet-form-wrapper {
    margin-top: 24px;
    font-weight: 600;
}

.bet-question .bet-form-wrapper {
    margin-top: 0;
}

.bet-form {
    --dark: #343a40;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px 5px;
    margin-bottom: 0;
    min-height: 30px;
}

.bet-form input {
    margin-bottom: 0;
    margin-top: 0;
    border: none;
}

.bet-form input[type='text'] {
    height: auto;
    text-align: center;
    width: 2.8em;
    font-size: 16px;
    border-radius: 3px;
}

.bet-form input[type='text']:nth-of-type(3) {
    margin-right: 10px;
}

.bet-form input[type="button"] {
    min-width: 64px;
    background-color: #fff;
    background-image: none;
    box-shadow: none;
    text-shadow: none;
    border: 1px solid transparent;
    border-radius: 3px;
    padding-left: 10px;
    padding-right: 10px;
    color: var(--dark-700);
    margin-bottom: 0;
    transition: color .15s ease-in-out, background-color .15s ease-in-out;
}

.bet-form input[type="button"]:hover {
    color: #fff;
    background-color: var(--dark-500);
}

.bet-form input[type="checkbox"] {
    margin-right: 10px;
}

.user-bet {
    margin-bottom: 0;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 0;
    margin-right: 10px;
}

.bet-card-sm {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    background-color: var(--dark-500);
    border-radius: var(--border-radius);
    color: var(--light-100);
    padding: 8px 10px 12px 15px;
    font-weight: 500;
}

.bet-card-sm p {
    margin-bottom: 0;
}

.bet-card-sm-headline {
    font-size: 12px;
    flex-basis: 100%;
}

.bet-card-sm-result {
    margin-left: auto;
    margin-top: -8px;
    font-size: 20px;
}

@media (max-width: 767px) {
    body {
        padding-left: 0;
        padding-right: 0;
    }

    .container-fluid {
        margin-left: 10px;
    }

    .row-fluid {
        width: calc(100% - 30px);
    }
}

@media (min-width: 768px) and (max-width: 979px) {
    .row-fluid .span3, .row-fluid .span9 {
        display: block;
        float: none;
        width: unset;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    /* .bet-form:not(.bet-form--checkbox) {
        flex-wrap: wrap;
        min-width: 80px;
    } */

    /* .bet-form:not(.bet-form--checkbox) input[type="button"] {
        flex-basis: 100%;
        margin-left: 0;
    } */
}