/*
Author: Jacob Jose
Date: May 15, 2023, 15:49.
Description: CSS stylesheet for 'Edition Tracker'.
*/

/*Styles for the body.*/
body {
    background-color: #fffff0; /* Set background color */
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0;
    height: 100vh;
}

 /*Defining constants for CSS.*/
:root {
    --knob-translate-x: 37px;
    --button-height-in-pixels: 20px;
    --button-width-in-pixels: 20px;
}

body div {
    padding-left: 10px;
    padding-right: 10px;
}

/* Style the main */
main {
    flex-grow: 1; /* Grow to fill remaining space */
    /*padding: 20px;*/
    /*overflow-y: auto; !* Add scrollbars if content overflows *!*/
}

.divBodyHeader {
    display: flex; /* Use flexbox */
    justify-content: space-between; /* Distribute space evenly between child divs */
}

.divTablesUserInput {
    display: flex;
    justify-content: space-between; /* Distribute items evenly, with space in between */
}

#tableUserInput {
    border: 1px solid black;
    /*background-color: #f2f2f2;*/
    padding-right: 10px;
    margin-right: 10px;
    text-align: right;
    background: #efe4b0;
    border-radius: 10px;
}

#tableSummaryHoldingAdvanced {
    text-align: left;
}

.tableHeader {
    text-align: center;
}


.divUpdatesForUser {
    text-align: right;
}

.divUpdatesForUser ul {
    list-style-type: none;
}

.divUpdatesForUser li {
    margin-bottom: 10px;
}

/*Following is for loading spiner animation.*/
#divUserInteractionArea {
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    width: 120px;
    height: 120px;
    -webkit-animation: spin 100s linear infinite; /* Safari */
    animation: spin .5s linear infinite;
}

/* Safari (loading spinner animation)*/
@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}
/*Other Browsers loading spinner animation.*/
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#divBodyAbout {
    display: none;
    text-align: center;
}

#divMatrix {
    padding-top: 1%;
    padding-bottom: 5%;
}

#matrixTable {
}

/* Style for the footer */
.containerFooter {
    background-color: #efe4b0; /* Change this to your desired background color */
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 0.5%;
    position: relative;
    clear: both;
}

/* Adjust this selector to match your Google reCaptcha tag */
.grecaptcha-badge {
    bottom: 100px !important;
}

footer div {
    flex: 1;
    text-align: center;
    vertical-align: bottom;
}

#divUserGuideText {
    display: none;
}

/* Common styles for toggle buttons */
.btnToggleRowsOrColumns {
    height: var(--button-height-in-pixels);
    width: var(--button-width-in-pixels);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    text-align: center;
}

/* Styles for increase button. */
.btnIncrease {
    background: #C1E1C1;
    margin-left: 15px;
    margin-right: 5px;
}

/* Styles for decrease button. */
.btnDecrease {
    background: #F8C8DC;
}

/* Custom styles for headings. */
.headingsCustom {
    color: inherit;
    text-decoration: none;
    font-family: "Verdana", serif;
    font-weight: normal;
    cursor: pointer;
}

/* Remove underline and blue color from HTML anchor-tag text. */
.urlLIkeNormalText {
    color: inherit;
    text-decoration: none;
    font-weight: normal;
    cursor: pointer;
}

/*Style for divs that need left-justification.*/
.left {
    text-align: left;
    flex: 1;
}

.middle {
    text-align: right;
    flex: 1;
}

/*Style for divs that need right-justification.*/
.right {
    display: flex;
    justify-content: flex-end; /* Right-align the content horizontally */
    align-items: flex-end; /* Align the content to the bottom vertically */
}

/* Apply a specific width to all text input fields */
#divMatrix input[type="text"]{
    width: 70px; /* Set your desired width here */
}

/*Styles for labels whose id starts with "labelEdition".*/
label[id^="labelEdition"] {
    color: #144879;
}

 /*For individual issue buttons.*/
.button-label{
    display: inline-block;
    text-align: center; /* Center text horizontally */
    height: 20px;
    width: 20px;
    margin: 1px;
    background-color: #f5f5f5; /* Background color for the button */
    color: #000000; /* Text color */
    border: 1px solid #8B0000; /* Border for button appearance */
    border-radius: 4px; /* Round the corners */
    cursor: pointer;
    user-select: none;
}

/* Change button appearance when checkbox is checked */
input[type="checkbox"]:checked + .button-label {
    background-color: #FAA0A0; /* Change background color when checked */
}


/* Hide the default checkbox */
input[type="checkbox"] {
    display: none;
}

 /************ START: Toggle Switch *******************/
/* Style for the switch container */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 20px;
}

/* Hide the default HTML checkbox */
.switch input {
    display: none;
}

/* Style for the slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 34px;
}

/* Style for the knob (sphere) inside the toggle switch */
.slider::before {
    position: absolute;
    content: "";
    height:15px;
    width: 15px;
    left: 4px;
    bottom: 2px;
    background-color: #301934;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
}

/* Style for the checked (on) state */
.switch input:checked + .slider {
    background-color: #efe4b0;
}

/* Style for the knob when it's in the "on" position */
.switch input:checked + .slider::before {
    -webkit-transform: translateX(var(--knob-translate-x));
    -ms-transform: translateX(var(--knob-translate-x));
    transform: translateX(var(--knob-translate-x));
}

/************ END: Toggle Switch *******************/

/************ START: About *******************/

#divBodyAbout {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9ffe3;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.divBodyAboutSides {
    display: flex;
    align-items: center;
}

.divBodyAboutSideLeft {
    flex: 1;
    width: 50%;
}

.divBodyAboutSideRight {
    flex: 1;
    width: 50%;
}

#divBodyAbout h3, h5, h6 {
    color: #144879;
}

#divBodyAbout p {
    font-size: 16px;
    line-height: 1.5;
}

#divBodyAbout ul {
    list-style: square;
    padding-left: 20px;
}

#divBodyAbout h2 {
    font-family: "Comic Sans MS", sans-serif;
    color: black;
    font-size: 50px;
    font-weight: normal;
    text-align: center;
}

#divBodyAbout h3 {
    font-family: "Comic Sans MS", sans-serif;
    color: black;
    font-size: 30px;
    font-weight: normal;
}

/************ END: About *******************/

/************ START: Images in About *******************/

/* Style for thumbnail images */
.thumbnail {
    width: 100px; /* Adjust the size of your thumbnails */
    height: 100px;
    cursor: pointer;
    transition: transform 0.2s;
}

.thumbnail:hover {
    transform: scale(1.1); /* Add a hover effect to make them slightly larger */
}

/* Style for the modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

/* Style for the modal's close button */
.close {
    position: absolute;
    top: 15px;
    right: 150px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

/* Style for the expanded image */
#expanded-image {
    display: block;
    margin: 0 auto;
    max-width: 90%;
    max-height: 90%;
}

/* Style for the container of thumbnail images */
.image-container {
    display: flex;
    justify-content: center; /* Adjust this to your layout preference */
    padding: 10px;
    flex-wrap: wrap;
}

.image-container img {
    margin: 5px; /* Adjust the margin between thumbnails */
}


/************ END: Images in About *******************/

/************ START: Server Response TextArea *******************/
.textarea-container {
    position: relative;
}


button#copyButton {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
}

button#copyButton i {
    color: #007bff; /* Change the icon color as needed */
}

/************ END: Server Response TextArea *******************/