html,
body {
    background: var(--primaryColor);
    width: 100%;
    height: 100%;
    font-family: "Roboto";
    font-weight: 300;
}

#app {
    width: 100%;
    z-index: 1;
    position: relative; /* needed for footer positioning*/
    height: auto !important; /* real browsers */
    min-height: 100%; /* real browsers */
}

#app::after {
    content: "";
    position: fixed;
    bottom: -35vw;
    right: -35vw;
    z-index: -1;
    height: 100vw;
    width: 100vw;
    opacity: 0.1;
    background: url(../img/golfball-white.svg) center no-repeat;
    animation: rotateBackground linear infinite 120s;
}

#app-content {
    width: calc(100% - 50px);
    padding: 25px 25px 100px 25px;
    max-height: calc(100% - 129px);
    overflow-y: auto;
}

#app-content > p {
    color: var(--primaryTextColor);
    line-height: 1.4;
}

@-webkit-keyframes rotateBackground {
    from {
        -webkit-transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
    }
}

@-moz-keyframes rotateBackground {
    from {
        -moz-transform: rotate(0deg);
    }
    to {
        -moz-transform: rotate(360deg);
    }
}

@media (min-width: 768px) {
    #app {
        width: calc(100% - 75px);
        margin-left: 75px;
        padding-bottom: 0px;
    }
    #app-content {
        width: 80%;
        margin: 25px auto 100px auto;
        max-height: none;
        overflow: auto;
        padding-bottom: 50px;
    }
    #app-content > p {
        font-size: 21px;
    }
}

/**
 * UI-Elements
 */
.btn {
    background: var(--primaryColor);
    color: var(--primaryTextColor);
    border-radius: 5px;
    font-size: 16px;
    padding: 10px 10px;
    cursor: pointer;
}

.btn-white {
    background: var(--secondaryColor);
    color: var(--secondaryTextColor);
    border-radius: 5px;
    font-size: 16px;
    padding: 15px 0;
    display: block;
    text-decoration: none;
    margin-bottom: 15px;
}

.btn-white i {
    width: 50px;
    text-align: center;
}

.btn-white:hover {
    color: var(--primaryColor);
}

.back-button {
    float: left;
    background: transparent;
    border: 2px solid var(--primaryTextColor);
    color: var(--primaryTextColor);
    border-radius: 5px;
    font-size: 16px;
    padding: 15px;
    text-decoration: none;
}

.next-button,
.calendar-next-button {
    float: right;
    background: var(--primaryTextColor);
    border: 2px solid var(--primaryTextColor);
    color: var(--primaryColor);
    border-radius: 5px;
    font-size: 16px;
    padding: 15px;
    text-decoration: none;
}

.button-secondary {
    display: block;
    background: var(--secondaryColor);
    border: 2px solid var(--secondaryTextColor);
    color: var(--secondaryTextColor);
    border-radius: 5px;
    font-size: 16px;
    padding: 15px;
    text-decoration: none;
    width: 100%;
    margin-top: 15px;
}

.next-button.disabled {
    opacity: 0.5;
}

.calendar-next-button {
    float: none;
    display: block;
    text-align: center;
    margin-bottom: 15px;
}

h1 {
    color: var(--primaryTextColor);
    font-weight: 500;
    margin-bottom: 25px;
    font-size: 24px;
}

@media (min-width: 768px) {
    h1 {
        margin-bottom: 50px;
        font-size: 32px;
    }

    .btn-white {
        font-size: 24px;
        padding: 25px 0;
        margin-bottom: 25px;
    }
    .btn-white i {
        width: 75px;
        text-align: center;
    }
}

/**
 * Time-Slots
 */
.time-slot {
    margin-bottom: 15px;
    height: 50px;
}

.time-slot .time {
    color: var(--primaryTextColor);
    float: left;
    width: 10%;
    height: 50px;
    text-align: center;
    line-height: 50px;
}

.time-slot .slot {
    float: left;
    width: calc(15% - 18px);
    margin: 0 8px;
    height: 50px;
    background: var(--secondaryColor);
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid transparent;
}

.time-slot .slot.active {
    background: var(--primaryColor);
    border: 1px solid var(--primaryTextColor);
    color: var(--primaryTextColor);
}

.time-slot .slot.disabled {
    opacity: 0.5;
}
.time-slot .slot .status {
    height: 21px;
}

.time-slot .slot .status span {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    margin-right: 0;
}

.time-slot .slot:not(.disabled) .status span.green {
    background: green;
    animation: pulse-black 2s infinite;
}

.time-slot .slot.disabled .status span.green {
    background: green;
}

@keyframes pulse-black {
    0% {
        background-color: green;
    }
    50% {
        background-color: #fff;
    }
    100% {
        background-color: green;
    }
}

.time-slot .slot .status span.gray {
    display: none;
}

/**
 * Form-Data
 */
.form-data {
    background: var(--secondaryColor);
    border: 2px solid var(--secondaryColor);
    border-radius: 5px;
    color: var(--secondaryTextColor);
    font-weight: 500;
    padding: 25px 15px;
    margin-bottom: 15px;
    position: relative;
    font-size: 14px;
}

.form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
}

.form-data .input-text,
.form-data .input-select {
    display: block;
    width: calc(100% - 4px);
    padding: 15px 0;
    text-indent: 15px;
    border: 2px solid #ccc;
    border-radius: 5px;
    margin-bottom: 15px;
    position: relative;
}

.form-data .input-select {
    width: 100%;
}

.form-data .input-calendar {
    position: relative;
}

.form-data .input-calendar::before {
    position: absolute;
    content: "\f073";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    right: 12px;
    top: 14px;
    z-index: 2;
    font-size: 18px;
}

.form-data .radio-group {
    max-width: 500px;
}

.form-data .radio-group div {
    padding: 15px 0;
    border: 2px solid #ccc;
    background: #fff;
    float: left;
    width: calc(25% - 2px);
    text-align: center;
    font-size: 15px;
    border-right: 0;
}

.form-data .radio-group div.selected {
    color: var(--primaryTextColor);
    background: var(--primaryColor);
}

.form-data .radio-group div:first-child {
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}

.form-data .radio-group div:last-child {
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    border-right: 2px solid #ccc;
    width: calc(25% - 4px);
}

.form-data label {
    padding-bottom: 4px;
}

.ticket {
    color: var(--secondaryTextColor);
    background: var(--secondaryColor);
    border-radius: 5px;
    padding: 25px;
    margin-bottom: 12px;
}

.ticket-title {
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 5px;
}
.ticket-sub-title {
    font-weight: 300;
    font-size: 19px;
    padding: 6px 0px;
}
.ticket-position {
    font-size: 14px;
    padding: 4px 0px;
}


.ticket-sum {
    font-size: 24px;
    font-weight: bold;
    padding: 16px 0px;
}

.payment {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    padding: 25px 15px;
    text-align: center;
    height: 30px;
    margin-bottom: 15px;
    cursor: pointer;
}

.payment.active {
    border: 3px solid #fff;
}

.payment img {
    height: 100%;
}

.payment.paypal {
    height: 50px;
    padding: 15px 15px;
}

.product-item-title {
    padding-right: 25px;
}

#error-overlay {
    border-radius: 5px;
    background: #ff3300;
    color: #fff;
    padding: 25px;
    display: none;
    z-index: 100;
}

.alert {
    border-radius: 5px;
    padding: 25px;
    margin-bottom: 12px;
}

.alert-danger {
    background: #ff3300;
    color: #fff;
}

.alert-success {
    background: #34b754;
    color: #fff;
}

.no-underline {
    text-decoration: none;
}

.text-base {
    font-size: 1rem !important;
}
/**
 * Products
 */
.product-item {
    background: var(--secondaryColor);
    border: 2px solid var(--secondaryColor);
    border-radius: 5px;
    color: var(--secondaryTextColor);
    font-weight: 500;
    padding: 25px 15px;
    margin-bottom: 15px;
    position: relative;
    cursor: pointer;
    font-size: 14px;
}

.product-item:hover {
    background: #fff;
}

.product-item i.fa-chevron-circle-right,
.product-item .total-price {
    position: absolute;
    right: 15px;
    top: 24px;
    font-size: 18px;
    color: var(--secondaryTextColor);
}

.product-item .total-price {
    top: 34px;
}

.product-item .price {
    display: block;
    font-weight: 300;
    margin-top: 5px;
}

.amount-selector {
    position: absolute;
    right: 20px;
    top: 33px;
}

.amount-selector input {
    width: 30px;
    text-align: center;
    color: #000;
}

.amount-selector button,
.amount-selector input {
    background: none;
    border: 0;
    font-size: 18px !important;
}

.amount-selector button,
.amount-selector input {
    float: left;
}
#home-buttons #welcome-txt {
    max-height: 368px;
    overflow: auto;
}
.product-item-description {
    display: block;
    font-weight: 300;
    font-size: 14px;
    margin: 5px 0 10px 0;
    opacity: 0.6;
    padding-right: 6rem;
}

@media (max-width: 767px) {
    .amount-selector {
        right: 10px;
        top: 10px;
    }
    .product-item.with-amount-selector {
        padding-top: 45px;
    }
    #home-buttons #welcome-txt {
        max-height: 244px;
    }
    .product-item-description {
        padding-right: 0;
    }
}

@media (min-width: 768px) {
    .amount-selector input {
        width: 50px;
    }
    .product-item {
        font-size: 24px;
    }
    .product-item i.fa-chevron-circle-right,
    .product-item .total-price {
        font-size: 32px;
    }
    .amount-selector button,
    .amount-selector input {
        font-size: 24px !important;
    }
    .amount-selector {
        top: 43px;
    }
    .product-item .total-price {
        top: 37px;
    }
}

/**
 * Nav
 */
nav#nav-desktop {
    position: fixed;
    z-index: 3;
    top: 0;
    left: 0;
    background: #fff;
    height: 100%;
    width: 75px;
    overflow: hidden;
    transition: all 0.1s ease-in;
}

nav#nav-desktop p {
    display: none;
    text-align: center;
    font-size: 18px;
    margin-top: 25px;
    font-weight: 500;
}

nav#nav-desktop.collapse {
    width: 300px;
}

nav#nav-desktop.collapse p {
    display: block;
}

#nav-desktop-wrapper {
    height: 550px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

nav#nav-desktop #logo {
    width: 80%;
    display: block;
    margin: 50px auto;
    height: 200px;
}

nav#nav-desktop.collapse #logo img {
    width: 100px;
    margin: 0 auto;
    display: block;
}

nav#nav-desktop ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav#nav-desktop ul li a {
    display: block;
    margin: 25px 0;
    font-size: 24px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    color: var(--secondaryTextColor);
}

nav#nav-desktop ul li a:hover,
nav#nav-desktop ul li.active a {
    color: var(--primaryColor);
}

nav#nav-desktop ul li i {
    width: 75px;
    text-align: center;
}

@media (max-width: 767px) {
    nav#nav-desktop {
        display: none;
    }
}

nav#nav-mobile {
    padding: 0;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    margin-top: 50px;

    position: absolute;
    width: 100%;
    bottom: 0; /* stick to bottom */
    background: #ddd;
}

nav#nav-mobile ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav#nav-mobile ul li {
    float: left;
    width: 16%;
    text-align: center;
}

nav#nav-mobile ul li i {
    display: block;
    font-size: 24px;
    margin-bottom: 15px;
}

nav#nav-mobile ul li a {
    text-decoration: none;
    display: block;
    padding: 15px 0;
    color: var(--secondaryTextColor);
    font-size: 14px;
}

nav#nav-mobile ul li a:hover,
nav#nav-mobile ul li.active a {
    color: var(--primaryColor);
}

@media (max-width: 767px) {
    nav#nav-mobile {
        display: block;
    }
}

@media (max-width: 539px) {
    nav#nav-mobile ul li span {
        display: none;
    }
    nav#nav-mobile ul li i {
        margin-bottom: 0;
    }
}

/**
 * Home
 */
#home-logo {
    width: 100%;
    position: relative;
    margin-top: 10%;
    text-align: center;
}

#home-logo img {
    margin: 0 auto;
    width: 50%;
    max-width: 300px;
}

#home-buttons {
    width: 80%;
    max-width: 500px;
    border-radius: 5px;
    background: #fff;
    margin: 10% auto 0 auto;
    padding: 25px 15px;
    text-align: center;
    display: block;
}

#home-buttons p {
    font-size: 18px;
}

#home-buttons a {
    display: block;
    max-width: 300px;
    margin: 0 auto 10px auto;
    text-decoration: none;
}

/**
 * Login
 */
#login {
    width: calc(100% - 100px);
    padding: 25px;
    max-width: 500px;
    top: 50%;
    margin: -200px 0 0 0;
    left: 50%;
    background: var(--secondaryColor);
    border-radius: 5px;
    position: absolute;
    transform: translateX(-50%);
}

#login h1 {
    color: var(--secondaryTextColor);
    margin-bottom: 25px;
}

#login input {
    display: block;
    width: 100%;
    padding: 15px 0;
    text-indent: 15px;
    border: 2px solid #ccc;
    border-radius: 5px;
    margin-bottom: 15px;
}

#login button {
    background: var(--primaryColor);
    color: #fff;
    border-radius: 5px;
    padding: 15px 0;
    text-align: center;
    display: block;
    border: 0;
    width: 100%;
}

.device-info h1 {
    font-size: 15px;
    color: var(--secondaryTextColor);
    margin: 0 0 15px 0;
}

.device-info ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.devices {
    margin-top:8px;
}
.devices button {
    border: 0;
    width: 100%;
    margin-top: 15px;
}

.product-item-title .price-section {
    display:flex; 
    align-items:center
}

.product-item-title .discount{
    text-decoration-line: line-through; 
    font-weight: 200; 
    font-size:16px;
    margin-left:8px;
    padding-top:4px
}
.product-item-title .offer {
    margin-left:8px;
}
.pill {
    border: 1px solid #f8f8f8;
    border-radius: 5px;
    padding: 4px 8px;
    font-size:12px;
}
.primary-pill {
    background-color: #3490dc;
    color: white;
}
.price-section.payment-details{
    margin-bottom: 16px;
    font-size: small;
}
.line-through{
    text-decoration: line-through;
}
.fs-14 {
    font-size: 14px;
}

.text-muted {
    color: #6c757d!important
}

.redeem-pack-option {
    margin-bottom: 8px;
}

.badge {
    border-radius: .25rem;
    color: #fff;
    display: inline-block;
    font-size: .75em;
    font-weight: 700;
    line-height: 1;
    padding: .35em .65em;
    text-align: center;
    vertical-align: baseline;
    white-space: nowrap;
}

.bg-success {
    background-color: #198754 !important;
}

.m-0 {
    margin: 0 !important;
}

.p-0 {
    padding: 0;
}

.pack-info {
    margin-top: 2px;
    font-size: 16px;
}
.redeem-pack-option {
    color:#fff;
}
#redeem_pack {
    transform: scale(1.5);
    margin-right: 4px;
}

.clearfix {
    clear: both;
}
.pack-stats {
    clear: both;
    margin: 2rem 0;
}
.pack-stats {
    color: var(--primaryTextColor);
}
.table-stats {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    color: var(--secondaryTextColor);
    font-size: 16px;
}

.table-stats th,
.table-stats td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
    color: var(--primaryTextColor);
}

.table-stats th  {
    background-color: var(--primaryColor);
    font-weight: 500;
}



.arrow {
    text-decoration: none;
    color:#000;
}
.my-packs{
    font-family: Arial, sans-serif;
    color: white;
    padding: 20px;
    max-width: 400px;
    margin: 0 auto;
}
header h1 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 20px;
}

.info-box {
  background: #065527;
  color:#fff;
  border-radius: 10px;
  padding: 15px;
  margin:auto auto 25px;
  font-size: 0.95em;
  line-height: 1.5em;
  max-width: 508px;
}

.info-box a {
  color: #00ffcc;
  text-decoration: underline;
}

.packs-section h2 {
  font-size: 1.2em;
  margin-bottom: 10px;
}

.pack-card {
  background: white;
  color: black;
  border-radius: 10px;
  padding: 15px;
  position: relative;
  margin-bottom:20px;
}

.pack-info {
  margin-bottom: 15px;
}

.pack-header {
  font-size: 0.85em;
  color: #555;
  margin-bottom: 10px;
}

.pack-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1em;
  margin-bottom: 5px;
}

.pack-status {
  font-size: 0.8em;
  color: green;
}

.redeem-button {
  background: #1e5317;
  color: white;
  padding: 10px;
  font-size: 1em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display:block;
  text-align: center;
  width: 100%;
  text-decoration: none;
}

a.redeem-button, a.button-secondary {
    width: auto;
}
.redeem-button:hover {
  background: #164212;
}

.list-unstyled {
    list-style: none;
}

.clean-purchase-card {
    background-color: #fdfdfd;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    padding: 20px 16px;
    color: #333;
    font-size: 0.95em;
}

.purchase-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.purchase-row:last-child {
    border-bottom: none;
}

.purchase-row .label {
    font-weight: 500;
    color: #555;
    flex: 0 0 40%;
}

.purchase-row .value {
    text-align: right;
    flex: 0 0 55%;
    color: #222;
}

.text-capitalize {
    text-transform: capitalize;
}

.btn-view-purchase {
    text-align: center;
    display: block;
    background: var(--secondaryColor);
    border: 2px solid var(--secondaryTextColor);
    color: var(--secondaryTextColor);
    border-radius: 5px;
    font-size: 16px;
    padding: 15px;
    text-decoration: none;
    margin-top: 15px;
}

.d-none {
    display:none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #ccc;
    border-top: 5px solid #3b8b3b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loader-overlay {
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(255, 255, 255, 0.7); 
    z-index: 9999; 
    align-items: center; 
    justify-content: center;
    flex-direction: column;
}

#loader-overlay .message {
    font-weight: 500;
    color: #3c8b3b;
}

/*For modal*/
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

/* Modal Content */
.modal-content {
  background-color: #b7b7b7;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}

/* The Close Button */
.close {
  color: #000000;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.alert-modal .action-btn {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.alert-modal .action-btn a {
    text-decoration: none;
}

.ticket-wrapper {
    width: 100%;
}

@media screen and (min-width: 1024px) {
    .alert-modal .modal-content {
        width: 40%;
    }
    .alert-modal .action-btn {
        flex-direction: row;
    }

    .ticket-wrapper {
        width: 364px;   
    }
}

.modal .action-btn .btn {
    margin: 8px;
    width: 100%;
    text-align: center;
    cursor: pointer;
    border: 0px
}

.btn-warning {
    background-color: #ed9405;
}

.btn-light {
    background-color: #f8f9fa;
    border-color: #f8f9fa;
    color: #000;
}

.logout-action-group {
    margin-top:24px;
    display: flex;
    background-color: white;
    padding: 20px 14px;
}
.redeem-button.disabled {
    pointer-events: none;
    color: #4e4848;
    background-color: #859e81;
    text-decoration: none;
    cursor: not-allowed;
}

.redeem-button.disabled {
    pointer-events: none;
    color: #4e4848;
    background-color: #859e81;
    text-decoration: none;
    cursor: not-allowed;
}

.ticket.redeemed {
    background-color: #dcdcdc;
}

.ticket-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 16px;
    grid-row-gap: 16px;
}

@media (max-width: 1024px) {
  .ticket-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ticket-grid {
    grid-template-columns: 1fr;
  }
}

.ticket-redeemed {
    font-size: 14px;
    padding: 4px 0px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top:12px;
}

.ticket-redeemed .time {
    font-size: 12px;
    font-weight: 200;
    font-style: italic;
}

.ticket-extra {
    margin: 12px 0px;
}
.show-more-btn {
    display: inline-block;
    padding: 0.5em 1.25em;
    font-size: 12px;
    border: 1px solid #c5c5c5;
    border-radius: 999px;
    line-height: 1;
    vertical-align: middle;
    white-space: nowrap;
    color: var(--primaryColor);
    font-weight: 300;
    margin-top: 12px;
}
.show-more-btn span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.show-more-content {
    font-size: 14px;
    padding: 12px 2px;
    display: none;
}

.show-less-btn {
    padding: 8px 0px;
    text-decoration: underline;
    font-size: 12px;
}
.show-less-btn, .show-more-btn {
    cursor: pointer;
}

.ticket-badge {
  display: inline-block;
  padding: 0.25em 0.8em;
  font-size: 0.75rem;
  font-weight: 300;
  color: white;
  border-radius: 999px; 
  line-height: 1;
  vertical-align: middle;
  white-space: nowrap;
  margin-bottom: 6px;
}

.ticket-badge.redeemed {
  background-color: #fb4141; 
}

.ticket-badge.active {
  background-color: green; 
}
.payment-details {
    padding: 6px;
}
.field {
    margin-bottom: 16px;
}

.field-label {
    font-size: 12px;
    color: #777;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.field-value {
    font-size: 14px;
    color: #000;
}

#payment-success-grid {
    grid-template-columns: none;
}

.mb-0 {
    margin-bottom: 0 !important;
}
.mb-1 {
    margin-bottom: 0.6em;
}

.fw-400 {
    font-weight: 400;
}

.mr-4 {
    margin-right: 1rem;
}

.flex {
    display: flex;
}

.justify-center {
    justify-content: center;
}