body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    background-color: #fff;
}

/*----------------------------index page----------------------------*/

/* shaded red background */
#index_fade_bg {
    background: linear-gradient(to right, #e4222f, #e4747c);   
}

/* larger display */
@media (min-width: 992px) {
    /* column style website */
    #index_fade_bg {
        height: 100vh;
    }
    /* qr code logo */
    #img-fluid {
        height: 300px;
        max-width: 300px;
        border-radius: 0.375rem;
    }
    
}

/* smaller displays */
@media (max-width: 991px) {
    /* buttons in easier to access locations */
    #index_fade_bg {
        height: 45vh;
        margin-top: -6rem;
    }
}

/* burger menu spacing */
#options_dropdown {
    --bs-btn-padding-x: 1.2rem;
    --bs-btn-padding-y: 0.8rem;
    margin-top: 2rem;
    margin-left: 0.45rem;
}

/* extra colour buttons for the admin account */
.btn-purple {
    background-color: #760cda;
    color: white;
    font-weight: bolder;
}
.btn-purple:hover {
    background-color: #8331f8;
    color: white;
    font-weight: bolder;
}
.btn-pink {
    background-color: #be1abe;
    color: white;
    font-weight: bolder;
}
.btn-pink:hover {
    background-color: #d354d3;
    color: white;
    font-weight: bolder;
}


/*----------------------------logout page----------------------------*/

/* shaded red background */
#index_fade_bg_logout {
    background: linear-gradient(to right, #e4222f, #e4747c);   
}

/* larger display */
@media (min-width: 992px) {
    /* column style website */
    #index_fade_bg_logout {
        height: 100vh;
    }
}

/* smaller displays */
@media (max-width: 991px) {
    /* buttons in easier to access locations */
    #index_fade_bg_logout {
        height: 45vh;
        margin-top: -15.5rem;
    }
}

/*----------------------------choose user page----------------------------*/

/* user type button sizing */

/* larger display */
@media (min-width: 992px) {
    /* user type button sizing larger */
    #user_type_button {
        width: 250px;
        height: auto;
    }
}

/* smaller displays */
@media (max-width: 991px) {
    /* user type button sizing smaller */
    #user_type_button {
        width: 150px;
        height: auto;
    }
}

/*----------------------------login page----------------------------*/

.circular-textbox {
    order:2px solid #b3b3b3;
    color: black;
    border: transparent;
    box-shadow: transparent;
    background: #f2eaff;
    /* background: linear-gradient(to right, #f2eaff, #eba8b0); */
  }

/* smaller displays */
@media (max-width: 991px) {
    /* form boxes taking up suitable portion of screen */
    .form-control {
        display: centre;
        width: 100%;
    }
}

/*----------------------------find location page----------------------------*/
/*for reading qr*/
.find-location {
    display: inline-block;
    outline: 0;
    cursor: pointer;
    border-radius: 6px;
    border: 2px solid #ff4742;
    color: #fff;
    background-color: #ff4742;
    padding: 8px;
    box-shadow: rgba(0, 0, 0, 0.07) 0px 2px 4px 0px, rgba(0, 0, 0, 0.05) 0px 1px 1.5px 0px;
    font-weight: 800;
    font-size: 16px;
    height: 42px;
    transition: background-color 0.3s ease;
}

.find-location:hover {
    background: 0 0;
    color: #ff4742;
}

.inside-location {
    display: inline-block;
    outline: 0;
    cursor: pointer;
    border-radius: 6px;
    border: 2px solid #68ff42;
    color: #fff;
    background-color: #74ba3e;
    padding: 8px;
    box-shadow: rgba(0, 0, 0, 0.07) 0px 2px 4px 0px, rgba(0, 0, 0, 0.05) 0px 1px 1.5px 0px;
    font-weight: 800;
    font-size: 16px;
    height: 42px;
    transition: background-color 0.3s ease;
}

.inside-location:hover {
    background: 0 0;
    color: #74ba3e;
}

.outside-location {
    display: inline-block;
    outline: 0;
    cursor: pointer;
    border-radius: 6px;
    border: 2px solid #ffc942;
    color: #fff;
    background-color: rgb(186, 153, 62);
    padding: 8px;
    box-shadow: rgba(0, 0, 0, 0.07) 0px 2px 4px 0px, rgba(0, 0, 0, 0.05) 0px 1px 1.5px 0px;
    font-weight: 800;
    font-size: 16px;
    height: 42px;
    transition: background-color 0.3s ease;
}

.outside-location:hover {
    background: 0 0;
    color: rgb(186, 153, 62);
}

.return {
    display: inline-block;
    outline: 0;
    cursor: pointer;
    border-radius: 6px;
    border: 2px solid #ff4742;
    color: #fff;
    background-color: #ff4742;
    padding: 8px;
    box-shadow: rgba(0, 0, 0, 0.07) 0px 2px 4px 0px, rgba(0, 0, 0, 0.05) 0px 1px 1.5px 0px;
    font-weight: 800;
    font-size: 16px;
    height: 42px;
    transition: background-color 0.3s ease;
}

.return:hover {
    background: 0 0;
    color: #ff4742;
}

/*----------------------------animation of reading qr code page----------------------------*/

.qrscan {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.scan {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.scan .qrcode {
    position: relative;
    width: 400px;
    height: 400px;
    background: url('img/qr_code_hello_black_logo.png');
    background-size: 400px;
}

.scan .qrcode::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: url('img/qr_code_hello_red_logo.png');
    background-size: 400px;
    overflow: hidden;
    animation: animate 2s ease-in-out infinite;
}

@keyframes animate {
    0%, 100% {
        height: 20px;
    }
    50% {
        height: calc(100% - 20px);
    }
}

.scan .qrcode::after {
    content: '';
    position: absolute;
    inset: 20px;
    width: calc(100% - 40px);
    height: 2px;
    background: #E30613;
    filter: drop-shadow(0 0 20px #E30613) drop-shadow(0 0 60px #E30613);
    animation: animateLine 2s ease-in-out infinite;
}

@keyframes animateLine {
    0% {
        top: 20px;
    }
    50% {
        top: calc(100% - 20px);
    }
}

.boarder {
    position: absolute;
    inset: 0;
    background: url('img/qr_boarder_1.png');
    background-size: 400px;
    background-repeat: no-repeat;
}

.scan h3 {
    text-transform: uppercase;
    font-size: 2em;
    margin-top: 20px;
    color: #E30613;
    letter-spacing: 2px;
    filter: drop-shadow(0 0 20px #E30613) drop-shadow(0 0 60px #E30613);
    animation: animateText 1s steps(1) infinite;
}

@keyframes animateText {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

/*----------------------------reading qr code page----------------------------*/

/* background of the qr reading page */
.scanBackground {
    display:flex;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    background: #FBAAAA;
}

/* boarder of the qr code reader class */
#outline_qr_read {
    border: 10px solid #E30613;
    display: grid;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    background-clip: padding-box;
}

/* red shading around the qr code */
#qr-shaded-region {
    position: absolute !important;
    border-width: 20px 50px !important;
    border-style: solid !important;
    border-color: #e3061592 !important;
    box-sizing: border-box !important;
    inset: 0;
    display: grid;
    place-items: center;
}

/* reader dimensions */
#reader {
    width: auto;
    min-width: 500px;
    height: auto;
    margin: 10px;
}

/* spacing for the buttons on the qr reading page */
#scanButton, #closeButton, #reader__dashboard{
    margin-top: 0px;
    margin-bottom: 10px;
    display: block;
    margin-left: 10px;
    margin-right: 10px;
}

/* for when using the scanner on a smaller device such as mobile phone*/
@media (max-width: 991px) {
    #reader__scan_region {
        width: 50% !important;
        margin-left: 25%;
    }
    video {
        width: 100% !important;
        display: grid !important;
    }
    #reader {
        width: 70%;
        border: none !important;
    }
    #outline_qr_read {
        width: 70%;
    }
    #qr-shaded-region {
        width: 100%;
    }
    #scanButton,
    #closeButton,
    #reader__dashboard{
        width: 50%;
        justify-self: center;
    }
}

/* button for start scan */
#html5-qrcode-button-camera-start.html5-qrcode-element {
    padding: 1rem;
    font-size: 1.25rem;
    border-radius: 0.5rem;
    color: #fff;
    background-color: #198754;
    margin-top: 0px;
    margin-bottom: 10px;
    display: block;
    margin-left: 10px;
    margin-right: 10px;
}

/* button for camera permissions */
#html5-qrcode-button-camera-permission.html5-qrcode-element {
    padding: 1rem;
    font-size: 1.25rem;
    border-radius: 0.5rem;
    color: #fff;
    background-color: #198754;
    border-color: #198754;
    margin-top: 0px;
    margin-bottom: 10px;
    display: block;
    margin-left: 10px;
    margin-right: 10px;
}

/* remove the i icon on the qr reader i am using */
img[alt="Info icon"] {
    display: none;
}


/*----------------------------generating qr code page----------------------------*/

.qrgenerator *{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.qrgenerator body{
    background: #262a2f;
}
.qrgenerator .container{
    width: 400px;
    padding: 25px 35px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 10px;
}
.qrgenerator .container p{
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 8px;
}
.qrgenerator .container input{
    width: 100%;
    height: 50px;
    border: 1px solid #DC3545;
    outline: 0;
    padding: 10px;
    margin: 10px 0 20px;
    border-radius: 5px;
}
.qrgenerator .container button{
    width: 100%;
    height: 50px;
    background: #DC3545;
    color: #fff;
    border: 0;
    outline: 0;
    border-radius: 5px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    margin: 20px 0;
    font-weight: 500;
}
.qrgenerator #imgBox{
    width: 200px;
    border-radius: 5px;
    max-height: 0;
    overflow: visible;
}
.qrgenerator #imgBox img{
    width: 100%;
    padding: 10px;
}
.qrgenerator #imgBox.show-img{
    max-height: 300px;
    margin: 10px auto;
    border: 1px solid #d1d1d1;
    align-items: center;
    justify-content: center;
}
/*change above to a better animation for reloading the webpage so it looks good, at the moment it is jumpy*/

/*----------------------------password strength indicator and password page----------------------------*/
.indicator {
height: 6px;
display: flex;
align-items: center;
justify-content: space-between;
margin: 10px 0;
display: none;
}
.indicator span {
width: 100%;
height: 100%;
background: rgb(190, 190, 190);
border-radius: 3px;
position: relative;
}
.indicator span.medium {
margin: 0 5px;
}
.indicator span:before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 3px;
}
.indicator span.active.weak:before {
background-color: #f44242;
}
.indicator span.active.medium:before {
background-color: #eaa423;
}
.indicator span.active.strong:before {
background-color: #28c368;
}
.passwordtext {
font-size: 14px;
font-weight: bold;
margin-top: -10px;
text-align: center;
display: none;
}
.passwordtext.weak {
color:#f44242;
}
.passwordtext.medium {
color:#eaa423;
}
.passwordtext.strong {
color:#28c368;
}
.password_entered {
font-size: 30px;
}
#iconEye, #iconEye1, #iconEye2 {
margin-left: -35px;
cursor: pointer;
}

/*----------------------------chart styling----------------------------*/
/* Chart container specifics */
#chartContainer .overall_chart_container {
    width: 600px; /* Size for overall chart */
    margin: auto;
    text-align: center;
}

#chartContainer .module_chart_container {
    width: 250px; /* Smaller size for module charts */
    display: inline-block; /* Align charts side by side */
    margin: 10px;
    text-align: center;
}

/* This ensures no global tag affects your layout inadvertently */
#chartContainer canvas {
    width: 100% !important; /* Full width of their containers */
    max-width: 100%; /* Prevents canvas from overflowing */
}

@media (max-width: 992px) {
    #chartContainer .overall_chart_container {
        width: 400px; /* Size for overall chart */
        margin: auto;
        text-align: center;
    }
    
    #chartContainer .module_chart_container {
        width: 200px; /* Smaller size for module charts */
        display: inline-block; /* Align charts side by side */
        margin: 10px;
        text-align: center;
    }
    
    /* This ensures no global tag affects your layout inadvertently */
    #chartContainer canvas {
        width: 100% !important; /* Full width of their containers */
        max-width: 100%; /* Prevents canvas from overflowing */
    }
}
