/* style normalize */
*,
::before,
::after {
	box-sizing: border-box;
}
html {
	line-height: 1.15; 
	-webkit-text-size-adjust: 100%; 
	-moz-tab-size: 4; 
	tab-size: 4; 
}


button,
input,
optgroup,
select,
textarea {
	font-family: inherit; 
	font-size: 100%; 
	line-height: 1.15; 
	margin: 0; 
}
:root {
--body-background-color: #e4eafa;
--title-text-color: #6551db;
--text-color: #1b0775;
--header-background-color: rgb(0, 48, 80);
--botton-color: #1ab649;
--botton-accent-color: #f599f5;
--footer-backround-color: rgb(0, 48, 80, 0.7);
--white-color: #ffffff;
--table-color-odd: #f1e5f1;
--table-color-even: #e0e2f5;
--transition-dur-func: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
body {
    margin: 0;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    letter-spacing: 0.03em;
    background-color: var(--body-background-color);
    color: var(--text-color);
    }
    
.no-scroll {
    overflow: hidden;
  }

h1,
h2,
h3,
h4,
p {
  margin: 0;
  padding: 10px;
}

section {
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}


.btn {
cursor: pointer;
background-color: var(--botton-color);
color: var(--text-color);
font-size: 24px;
padding: 10px;
border-radius: 8px;
border-color: var(--body-background-color);
transition: background-color var(--transition-dur-func);
margin-left: 10px;
}
 
.btn:hover,
.btn:focus {
    background-color: var(--botton-accent-color);
    font-style: italic;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h2 {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.17;
  color: var(--title-text-color);
}
h3 {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.17;
  color: var(--title-text-color);
  padding: 15px;
}
p {
  font-weight: 500;
  font-size: 18px;
}

/* --------MODAL----------- */
.active-modal {
  overflow-y: hidden;
}

.backdrop {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  opacity: 1;
  visibility: visible;
  transition: opacity var(--transition-dur-func), visibility var(--transition-dur-func);
  overflow-y: auto;
}


.is-hidden { 
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.modal-container {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 40px;
  transform: translate(-50%, -50%);
  min-width: 328px;
  background-color: var(--white-color);
  border-color: var(--white-color);
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.12), 0px 1px 1px rgba(0, 0, 0, 0.14), 0px 2px 1px rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}
/* close modal button wiht animation */
.close-btn {
  border: none;
  display: flex;
  position: absolute;
  top: 8px;
  right: 8px;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background-color: transparent;
  background-color: transparent;
  cursor: pointer;
  align-items: center;
  }

.close-btn-inner {
    width: inherit;
  text-align: center;
}

.close-btn-text {
  font-size: 10px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--botton-color);
  transition: all 0.3s ease-in;
  opacity: 0;
  cursor: pointer;
}
.close-btn:hover,
.close-btn:focus {
  border-color: var(--botton-color);
  background-color: transparent;
}

.close-btn-normal-state {
  border: none;
  display: flex;
  position: absolute;
  top: 8px;
  right: 8px;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background-color: transparent;
  background-color: transparent;
  cursor: pointer;
  align-items: center;
}

.close-btn-inner::before,
.close-btn-inner::after {
  position: absolute;
  content: '';
  height: 1px;
  width: inherit;
  background: var(--botton-accent-color);
  left: 0;
  transition: all 0.3s ease-in;
}

.close-btn-inner::before {
  top: 50%;
  transform: rotate(45deg);
}

.close-btn-inner::after {
  bottom: 50%;
  transform: rotate(-45deg);
}

.close-btn:hover .close-btn-text {
  opacity: 1;
}

.close-btn:hover .close-btn-inner::before,
.close-btn:hover .close-btn-inner::after {
  transform: rotate(0);
}

.close-btn:hover .close-btn-inner:before {
  top: 0;
}

.close-btn:hover .close-btn-inner:after {
  bottom: 0;
}
/* end close modal button wiht animation */

.modal-form {
    display: flex;
  flex-direction: column;
  justify-content: center;
}


.modal-form-call {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--title-text-color);
  margin-bottom: 12px;
}
.modal-form-field {
  margin-bottom: 10px;
  position: relative;
}
.modal-form-input-descr {
  display: block;
  font-size: 14px;
  line-height: 1.17;
  margin-bottom: 4px;
  color: var(--text-color);
}
.modal-form-input {
  width: 100%;
  height: 40px;
  border-radius: 4px;
  border: 1px solid rgba(33, 33, 33, 0.2);
  padding-left: 12px;
  transition: border-color var(--transition-dur-func);
}

.modal-form-input:focus, .modal-form-input:hover {
  outline: none;
  border-color: var(--botton-accent-color);
}

.modal-form-submit {
  margin-left: 0px;
  }

  /* --------End  MODAL----------- */

  /* --------HEADER  ---------*/
.page-header {
    background-color: var(--header-background-color);
    color: var(--white-color);
    display: flex;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
    position: relative;
}

.center-position {
  position: absolute;
  left: 45%;
}
.close-out {
    margin-right: 10px;
}

.img-wallet {
    margin-left: auto;
    margin-right: 10px;
}

.not-show {
  display: none;
}

/* --------End   HEADER  ---------*/
.about-wallet {
  padding: 30px 30px;
  text-align: center;
  background-image: linear-gradient(rgba(204, 204, 207, 0.4), rgba(168, 169, 172, 0.2)), url("../image/music.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* -------- FOOTER --------*/
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}
.footer-text {
    color: var(--text-color);
}
.icon-heart {
  display: inline-block;
  fill: var(--title-text-color);
}
.intive {
  font-weight: 600;
  font-style: italic;
  font-size: 18px;
  line-height: 1.17;
  color: var(--title-text-color);
}

/* -------- End FOOTER --------*/

.sing-in-open,
.sing-up-open {
    display: flex;
    justify-content: center;
}

.main-window {
    display: flex;
    justify-content: end;
    display: block;
}

.user-name {
  align-self: center;
  padding-left: 10px;
  padding-right: 10px;
}
.user-name-text {
    font-weight: 600;
  font-size: 26px;
  line-height: 1.17;
  color: var(--title-text-color);
}

.main-window-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px auto;
  }



/* -------- TABLE --------*/
table {
    table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
  border: 3px solid purple;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.transaction-history {
    text-align: center;
    margin-top: 15px;
}
.title-struct {
  font-weight: 600;
  font-size: 26px;
  line-height: 1.17;
  color: var(--title-text-color);
  text-align: center;
}
.title-transaction {
    font-weight: 600;
  font-size: 26px;
  line-height: 1.17;
  color: var(--title-text-color);
}
.statistic-table {
    color: var(--text-color);
}
th {
  padding: 15px;
}

td {
    padding: 10px;
}

tbody td {
  text-align: center;
}
tbody tr:nth-child(odd) {
  background-color: var(--table-color-odd);
}

tbody tr:nth-child(even) {
  background-color: var(--table-color-even);
}

.desc-type-table {
  font-style: italic;
}

.spending {
  fill: var(--botton-accent-color);
}

.receipts {
  fill: var(--botton-color);
}
/* -------- End TABLE --------*/
.charts {
  height: 300px;
  width: 350px;
  margin: 20px;
display: inline-flex;
justify-content: space-around;
min-height: 50%;
}


.pop-chart {
background-color: rgb(253, 241, 252);
padding: 10px;
margin-right: 20px;
}
.bar-chart {
  background-color: rgb(253, 241, 252);
  padding: 10px;
height: 340px;
}

@media (min-width:769px) {
  .on-mobile {
    display: none;
  }
.about-wallet {
  padding: 40px 90px;
}
.not-show {
  display: none;
}

}
/* --------Mobile------ */
@media (max-width:768px) {
body {
max-width: 768px;
}

.charts {
  background-color: rgb(214, 233, 233);
  top: 20px;
}

.pop-chart {
margin-left: 100px;
}
.bar-chart {
 margin-left: 40px;
}

  .desktop {
  display: none;
}
.not-show {
  display: none;
}
} 

/* // ----------- slider */

.slider {
  position: relative;
  width: 680px;
  height: auto;
  margin: auto;
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.45);
}

.slider input[name="switch"] {
  display: none;
}

.switch {
  position: absolute;
  left: 0;
  bottom: -40px;
  text-align: center;
  width: 100%;
}

.switch label {
  display: inline-block;
  width: 10px;
  height: 10px;
  cursor: pointer;
  margin: 0 3px;
  box-shadow: 0 0 2px 0 rgba(0, 0, 0, .6);
  border-radius: 50%;
  border: 1px solid var(--text-color);
  background-color: var(--text-color);
}

#btn1:checked~.switch label[for="btn1"] {
  background-color: white;
}

#btn2:checked~.switch label[for="btn2"] {
  background-color: white;
}

.slider-inner {
  overflow: hidden;
}

.slides {
  width: 100%;
  display: flex;
  transition: all 0.5s;
}

.slides canvas {
  width: 100%;
  height: 240px;
  float: left;

  max-width: 500px;
  max-height: 300px;
}

#btn1:checked~slider-inner .slides {
  transform: translate(0);
}

#btn2:checked~.slider-inner .slides {
  transform: translate(-550px);
}

/* ----FORm validation */
input:invalid {
  border-color: #900;
  background-color: #fdd;
}

input:focus:invalid {
  outline: none;
}

.error {
  padding: 0;
}
.error.active {
  width: 100%;
  padding: 5px;

  font-size: 10px;
  color: white;
  background-color: rgb(216, 108, 108);
  border-radius: 0 0 5px 5px;

  box-sizing: border-box;
}

input.active {
  border-color: #900;
  background-color: #fdd;
  box-shadow: 0 0 15px #1b0775;
}


