/* CSS file */

.dark-mode {
  --bg-color: #fff;
  --text-color: #333;
}

:root {
  --bg-color: #333;
  --text-color: #fff;
}


/* Set body font and background, center the main container */
 body {
  font-family: 'Poppins', sans-serif;
  background-color: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
/*   remove wiggle */
    overflow-x: hidden; 

} 


/* Style main container */
 .container {
  width: 90%;
  max-width: 600px;
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1);
  text-align: center;
} 

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-container {
  width: 100%;
}



/* Style headings */
h1 {
/*   font-size: 30px; */
  font-weight: 500;
  margin-bottom: 10px;
 font-family: 'Bangers', cursive;
    text-align: center;
    font-size: 3em;
/*     color: #ffffff; */
}

h2 {
  font-size: 16px;
  font-weight: 300;
  margin-bottom: 12px; /* used to be 20*/
  font-style: italic;
  color: #757575;
}

h3 {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 14px;
}

/* Style input-container and input elements */
.input-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-bottom: 5px;
}

input {
  font-size: 16px;
  padding: 12px;
  border: 1px solid #ced4da;
  border-radius: 5px;
  outline: none;
  text-align: center;
}

.input-label {
      display: block;
      font-weight: 500;
      font-size: 0.9rem;
      margin-bottom: -10px;
      color: #777;
    }

/* Style buttons */
.btn {
  font-size: 18px;
  padding: 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  outline: none;
}

/* Style Calculate button */
.btn-calculate {
  background-color: #007bff; /* Changed from pink to blue */
  color: white;
  margin-bottom: 20px;
  width: 30%;
}

/* Style Send Text button */
.btn-text {
  background-color: #25D366;
  color: white;
  width: 45%;
}

/* Style Venmo button */
.btn-venmo {
  background-color: #82bce8;
  color: white;
  width: 45%;
}

/* Style results container */
.results {
  margin-bottom: 20px;
  padding: 20px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  font-size: 16px;
  color: #757575;
  text-align: center;
}


/* Hide Venmo button by default */
#venmo-button {
  display: none;
}
/* Hide Reset button by default */
.btn-refresh {
  display: none;
}

/* Style person-container and remove-person button */
.person-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.remove-person {
  background-color: #f44336;
  color: white;
  font-size: 12px;
  padding: 5px;
  margin-left: 5px;
  border-radius: 15px;
  transition: background-color 0.2s;
}

.remove-person:hover {
  background-color: #d62d20;
}

/* Style the toggle switch */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
transition: 0.4s;
border-radius: 34px;
}

.slider:before {
position: absolute;
content: "";
height: 26px;
width: 26px;
left: 4px;
bottom: 4px;
background-color: white;
transition: 0.4s;
border-radius: 50%;
}

input:checked + .slider {
background-color: #4caf50;
}

input:checked + .slider:before {
transform: translateX(26px);
}

/* Style dark mode */
body.dark-mode {
background-color: #242424;
color: #f5f5f5;
}

body.dark-mode .container {
background-color: #333333;
color: #f5f5f5;
}

body.dark-mode input,
body.dark-mode .results {
background-color: #444444;
color: #f5f5f5;
border-color: #555555;
}

body.dark-mode .qt1i7c.Cwjo6c i {
  color: #fff;
}

/* Style the sun and moon icons */
.dark-mode-toggle {
font-size: 24px;
cursor: pointer;
display: inline-block;
}

.dark-mode-toggle i {
transition: 0.3s;
}

/* Add transition for the input fields */
input {
transition: border-color 0.2s;
}

input:focus {
border-color: #007bff; /* Changed from pink to blue */
}

/* Add a media query for mobile devices */
@media (max-width: 600px) {
  /* Adjust container padding */
  .container {
    padding: 20px;
  }

  /* Adjust font sizes for mobile */
  h1 {
    font-size: 2em;
    margin-top: 0;
  }

  h3 {
    font-size: 1em;
    margin-top: 20px;
  }

  input {
    font-size: 14px;
  }

  .btn {
    font-size: 16px;
  }
  
  .btn-calculate {
    width: 60%;
  }
  
  .btn-venmo {
    width: 55%;
  }
  
  .btn-text {
    width: 55%;
  }
  
  .btn-refresh {
    width: 55%;
  }

}



/* Add this to your CSS */
.input-with-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
}

.qt1i7c.Cwjo6c {
  float: left;
  height: 34px;
  min-width: 34px;
  padding: 0;
  width: 34px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  transition: background-color 0.2s;
}

.qt1i7c.Cwjo6c:hover {
/*   background-color: #f5f5f5; */
   background-color: transparent;

}

.qt1i7c.Cwjo6c i {
  font-size: 18px;
  padding-left: 3px;
  padding-top: 3px;
  display: block;
}

input {
  font-size: 16px;
  padding: 5px;
  border: 1px solid #ced4da;
  border-radius: 5px;
  outline: none;
  text-align: center;
  width: 100%;
  height: 34px;
}


.currency-input-container {
  position: relative;
  display: inline-block;
}

.currency-symbol {
  position: absolute;
  left: 5px;
  top: 2px;
  color: #666;
  pointer-events: none;
}

.currency-input {
  padding-left: 15px;
}

.results-title {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 10px;
  text-align: center;
}

.result-item {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-bottom: 8px;
}


/* Style Refresh button */
.btn-refresh {
/*  background-color: #ffefea;*/
/*  color: white;*/
  width: 45%;
/*   height: 34px; */
}

#add-exception {
  margin-bottom: 16px; /* Adjust this value to your preference */
}

#send-text-button {
  margin-bottom: 5px; /* Adjust this value to your preference */
  width: 45%;
}

#venmo-button {
  margin-bottom: 5px; /* Adjust this value to your preference */
  width: 45%;
}

#refresh-me {
  margin-bottom: 46px; 
}
  
  
body.dark-mode .input-label {
  color: #ffffff;
}

body.dark-mode .exception-label {
  color: #ffffff;
}

body.dark-mode .split-items-h2 {
  color: #ffffff;
}

/* custom input */
.custom-input {
  width: 85%;
  margin-left: auto;
  margin-right: auto;
}



/* remove all button + or - shadows */
.qt1i7c:focus,
.qt1i7c:hover {
  box-shadow: none !important;
}


/* hide exception section */

.hidden {
  display: none;
}

.visible {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.5s linear;
}

.dismiss-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-color); /* Update the icon color */
}

/*new feedback portion*/

.iframe-container {
    display: none;
    width: 100%;
    max-width: 640px; /* Set a maximum width for larger screens */
    height: 190px; /* this is half of the original height of 554px */
    overflow: hidden;
    position: relative;
    margin-top: 20px;
}

.iframe-container iframe {
    width: 100%;
    height: 554px;
    position: absolute;
    top: -165px; /* negative half of the height to "shift" it up */
    bottom: -200px;
    left: 0;
}

#iframe-container #close-button {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
}

.hidden {
  display: none;
}

@media screen and (min-width: 1024px) {
    .iframe-container, .iframe-container iframe, #iframe-container #close-button {
        display: none;
    }
}

/* halfsheet */
#half-sheet {
  position: fixed;
  z-index: 1000;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  height: 35%; /* Smaller Size */
  width: 90%; /* Reduced width */
  background-color: #ff5722; /* Fun Orange */
  color: #ffffff; /* White Text */
  padding: 20px;
  display: none; /* The half-sheet will be hidden by default */
  box-shadow: 0 0 10px rgba(0,0,0,0.25);
  transition: transform 0.3s ease-in-out; /* Added transition */
  font-family: 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', sans-serif; /* Fun Font */
  border-radius: 30px; /* Increased border radius */
}

#half-sheet-content {
  margin: auto;
  padding: 20px;
  width: 90%;
  text-align: center;
  height: calc(100% - 40px); /* calculate height subtracting padding */
  overflow: hidden; /* hide overflow content */
}

#half-sheet-close {
  display: inline-block;
  padding: 6px 12px;
  margin: 15px 0;
  font-size: 14px;
  font-weight: 700; /* Bolder Text */
  line-height: 1.42857143;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  background-color: #673ab7; /* Purple Button */
  border: none;
  color: #ffffff; /* White Text */
  transition: background-color 0.3s ease; /* Button Color Transition */
  border-radius: 50px; /* Circular Edges */
}

#half-sheet-close:hover {
  background-color: #9575cd; /* Lighten on Hover */
}

.split-items-label {
  margin-bottom: 20px;
}

}
.btn-primary {
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #004080;
    color: #fff;
}

.btn-primary:focus,
.btn-primary.active {
    box-shadow: 0 0 0 0.2rem rgba(38,143,255,.5);
    background-color: #0056b3;
    border-color: #004080;
    color: #fff;
}

.add-friend-button {
  margin-bottom: 20px;
}

#table-container {
    display: none;
}

/* This sets styles for a table, making it 100% wide, collapsing borders,
applying a shadow for a 3D effect, and giving it a fixed layout. */
.item-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
/*     font-size: 0.9em; */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    overflow: hidden;
    table-layout: fixed;
}

/* This sets the color and alignment of text in the table header. */
.item-table thead tr {
    background-color: #009879;
    color: #ffffff;
    text-align: center;
}

/* This provides uniform padding for table headers and table cells. */
.item-table th,
.item-table td {
    padding: 10px 10px;
}

/* This sets a border at the bottom of each table row. */
.item-table tbody tr {
/*     border-bottom: 1px solid #dddddd; */
}

/* This changes the background color of every other row in the table body. */
.item-table tbody tr:nth-of-type(even) {
/*     background-color: #f3f3f3; */
}

/* This gives a distinct bottom border to the last row of the table body. */
.item-table tbody tr:last-of-type {
    border-bottom: 2px solid #009879;
}

/* This styles the 'active' rows in the table body, making them bold and a different color. */
.item-table tbody tr.active-row {
    font-weight: bold;
    color: #009879;
}

/* This sets up the layout for an input field, centering items and setting the direction to row. */
.input-field {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row; 
}

/* This sets up a container for participants, allowing items to wrap as needed. */
.participant-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* This sets up the layout for a checkbox wrapper, centering items and setting the direction to column. */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column; 
    margin: 4px;
    
}

/* adjust checkbox size */
input[type='checkbox'] {
    transform: scale(1.5); /* Your desired scaling factor, 1.5 means 150% of the original size */
  

}

/* This is a media query for screens with a max width of 600px, providing different styles for smaller screens. */
@media screen and (max-width: 600px) {
    .item-table {
        border: 0;
    }

    .item-table caption {
        font-size: 1.3em;
    }

    /* The header of the table is hidden for small screens. */
/*     .item-table thead {
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    } */

    /* Each row now has a shadow, a border radius, and larger padding for small screens. */
    .item-table tr {
        border: none;
        border-radius: 10px;
/*         box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); */
        margin: 10px 0;
        padding: 20px;
/*         background-color: white; */
    }

    /* Each cell is now a block, centered, and with a smaller font size for small screens. */
/*     .item-table td {
        border-bottom: 1px solid #ddd;
        display: block;
        font-size: 0.8em;
        text-align: center;
    } */

    /* Pseudo-element used to add a label for each cell. */
    .item-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
    }

    /* Last cell doesn't have a bottom border */
    .item-table td:last-child {
        border-bottom: 0;
    }

    /* The layout for input field is a row, with some margin-bottom. */
    .input-field {
        display: flex;
        flex-direction: row;
        margin-bottom: 10px;
    }

    /* The layout for checkbox wrapper is a column. */
    .checkbox-wrapper {
        display: flex;
        flex-direction: column;
    }
}


.row-container {
  position: relative;
}

.delete-button {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  background: red;
  color: white;
  border: none;
  cursor: pointer;
  text-align: center;
}
