﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

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

html {
  position: relative;
  min-height: 100%;
}

body {
    margin-bottom: 60px;
}

main {
    display: flex;
    height: 100vh;
    width: 100%;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Base styles for BritePayment container div */
#BritePayment {
    display: flex; /* Enable flexbox */
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    position: fixed; /* Fixed position */
    top: 0; /* Align to the top of the viewport */
    left: 0; /* Align to the left of the viewport */
    z-index: 10; /* Ensure it appears above other content */
    overflow: hidden; /* Prevent scroll on the container */
}

/* Styles for desktop and tablet devices */
@media only screen and (min-width: 481px) {
    #BritePayment {
        width: auto; /* Allow the width to grow with the iframe */
        height: auto; /* Allow the height to grow with the iframe */
        min-width: 400px; /* Minimum width for Brite Client */
        min-height: 600px; /* Minimum height for Brite Client */
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%); /* Center the div in the viewport */
    }
}

/* Media query for mobile phones */
@media only screen and (max-width: 480px) {
    #BritePayment {
        width: 100vw; /* Occupy 100% of the viewport width */
        height: 100vh; /* Occupy 100% of the viewport height */
    }
}