:root {
    --wagerGreen: #1cad75;
    --backColour: #191919;
    --tabColour: #262626;
    --textColour: #f1f1f1;
    --highlight: #1cad75;
    --borderColour: #333333;
    --boxShadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
}

.baseholder {
    font-family: 'poppins', sans-serif;
    background-color: #191919;
    color: white;
}
.mainContainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-x: hidden;
}
.topContainer {
    margin-top: 50px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.calc-main-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.banner-ad-container {
    display: flex;
    justify-content: start;
    flex-direction: column;
    align-items: center;
}
.banner-ad-image {
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 2px solid var(--borderColour);
    width: 400px;
}

.calculatorContainer {
    padding: 20px;
    border-radius: 8px;
}

.calc-input-outer-container {
    display: flex;
    justify-content: center;
    width: 100%;
}
.calc-input-container {
    align-items: center;
    border-radius: 10px;
    padding: 10px;
    gap: 10px;
    display: flex;
    flex-direction: column;
}

.bet-type-control {
    margin-bottom: 10px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-items: center;
}

.bet-type-help-container {
    display: flex;
    gap: 20px;
    flex-direction: row;
    justify-content: space-between;
    align-items: start;
    flex: 1;
}

.help-text-container {
    flex: 1;
}

.help-text-display {
    height: 70px;
    max-width: 250px;
    font-size: 0.9em;
    font-style: italic;
    font-family: 'Roboto', sans-serif;
    display: none;
}

.bet-type-select-container {
    flex: 1;
    justify-content: left;
    display: flex;
    flex-direction: column;
}

.back-lay-outer-container {
    display: flex;
    flex-direction: column;
}

.part-lay-outer-container {
    display: none;
    align-items: center;
    width: 100%;
    flex-direction: column;
    justify-content: center;
}

.part-lay-outer-container.active {
    display: flex;
}

.part-lay {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.part-lay-container {
    padding: 15px;
    background-color: #262626;
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    font-size: 0.85em;
    display: block;
    text-align: left;
    margin-bottom: 5px;
}

#bet-type {
    outline: none;
    color: white;
    padding: 5px;
    background-color: var(--backColour);
    width: 250px;
    border: none;
    border-bottom: 2px solid var(--borderColour);
}
.form-group input,
.form-group select {
    background-color: #191919;
    color: white;
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

.form-group input {
    border: none;
    width: 300px;
}

.calc-input-container, .part-lay {
    width: 700px;
}

.back-lay-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lay-stake-div {
    gap: 5px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 30px;
    text-align: center;
    background-color: #811e23;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.back {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background-color: #39795c; /* Slightly reduced opacity */
}

.lay {
    background-color: #9E3035 ; /* Slightly reduced opacity */
}

.section-container {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-heading {
   
    font-size: 1.5em;
    color: rgb(228, 228, 228);
}

.section {
    gap: 10px;
    display: flex;
    flex-direction: row;
    margin-bottom: 20px;
    border-radius: 8px;
}

#output {
    margin-top: 20px;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.advanced-lay-container {
    gap: 5px;
    font-weight: bold;
    align-items: center;
    justify-content: end;
    flex-direction: row;
    display: flex;
    width: 100%;
}

.advanced-lay {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    background-color: #ccc;
    border-radius: 24px;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* The circle inside the switch */
.advanced-lay::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

/* Active (checked) state */
.advanced-lay.active {
    background-color: #1cad75;
}

.advanced-lay.active::before {
    transform: translateX(26px);
}

.results-container {
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.results-table {
    background-color: #222222;
    border-radius: 5px;
    max-width: 640px;
    display: flex;
    flex: 1;
    justify-content: center;
    flex-direction: column;
}

.results-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.results-item {
    text-align: center;
    width: 100px;
}

.results-row {
    flex: 1;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
}

.results-header-container {
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    height: 40px;
}

.results-header-container span {
    font-weight: bold;
    margin-left: 10px;
    font-size: 1.2em;
}

.phone-banner-ad-container {
    justify-content: center;
    width: 100%;
    align-items: center;
    display: none;
}

.calc-heading-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.main-sub-heading {
    font-size: 1.2em;
    color: rgb(201, 200, 200);
}

.calc-text-container {
    margin-top: 30px;
}

@media (max-width: 1500px) { 
    .calculatorContainer  {
        padding: 0;
    }
}

@media (max-width: 1200px) { 
    .banner-ad-image {
        width: 250px;
    }
    .banner-ad-container {
        flex: none;
    }
}

@media (max-width: 1000px) { 
    .banner-ad-container {
        display: none;
    }
    .phone-banner-ad-container {
        margin-bottom: 50px;
        display: flex;
    }
    .banner-mobile-ad-image {
        width: 700px;
    }
    .calc-main-container {
        display: flex;
        justify-content: center;
        flex-direction: column-reverse;
    }
}

@media (max-width: 770px) { 
    .form-group input {
        width: 200px;
    }
    .results-table {
        max-width: 540px !important;
    }
    .banner-mobile-ad-image {
        width: 530px;
    }
    .help-text-display {
        font-size: 0.75em;
        height: 85px;
    }
}
@media (max-width: 590px) {
    #bet-type {
        width: 200px;
    }
}


@media (max-width: 470px) {
    .banner-mobile-ad-image {
        width: 400px;
    }
    .form-group input {
        width: 150px;
    }
    .help-text-display {
        font-size: 0.7em;
        height: 95px;
    }
    #bet-type {
        width: 150px;
    }
}

/* .bookmaker-results-header {
    background-color: #39795c;
}

.exchange-results-header {
    background-color: #9E3035;
} */