html {
  scroll-behavior: myooth;
}

* {
  box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/*================== NAVIGATION ==================*/
.navigation {
	background: linear-gradient(45deg, #069fba, #00c57b);
	padding: 5px;
	color: #ffffff;
	box-shadow: 0 1px 9px 2px rgb(1 1 1 / 9%);
}

.logo {
	/*ORANGE*/background-image: url("../../lib/img/AIPayStub-LOGO.png");
	background-repeat: no-repeat;
    background-size: 180px auto;
    height: 70px;
	width: 180px;
	float: left;
	margin-left: 50px;
}

.site-title img {
    width: 210px;
    height: 70px;
}

.site-title a {
  text-align: left;
	font-size: 30px;
	color: #ffffff;
	text-decoration: none;
	font-family: times;
	float: left;
	margin-left: 20px;
  margin-top: 10px;
  text-shadow: 0 5px 5px #187065;
}
.site-title a hover{
    text-decoration:none
}

.menu {
	text-align: right;
	padding: 5px;
	font-family: sans-serif
}

.menu-icon {
	margin-bottom: 0px;
}

.menu-btn {
	display: none
}

.menu-btn:checked~.menu-links {
	display: block;
	padding-top: 30px;
}

.menu-links a {
	text-align: left;
	display: block;
	margin: 20px;
	cursor: pointer;
	text-decoration: none;
	color: #ffffff;
}

.menu-links a:hover {
  color: #0004ff
}

.menu-links {
	padding-inline-start: 5px;
	display: none
}

.menu span {
	padding: 5px 20px;
	font-size: 30px;
	cursor: pointer
}
/*================== NAVIGATION ==================*/



/*================== ROW & COLUMNS ==================*/
/* Remove extra left and right margins, due to padding */
.row {
	margin: auto;
}

/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}
.container-column {
	display: flow-root;
    margin: 20px;
}

/* left-Right Columns */
.leftcolumn {   
  float: left;
  width: 70%;
  padding: 20px;
  padding-left: 40px;
}

.rightcolumn {
  float: left;
  width: 30%;
  padding: 20px;
}
/* left-Right Columns */

/* Column 50% */
.column-2 {
    float: left;
    width: 50%;
    padding: 20px 20px;
}
/* Column 50% */

/* Column 33.33% */
.column-3 {
    float: left;
    width: 33.33%;
    padding: 20px 20px;
}
/* Column 33.33% */

/* Column 25% */
.column-4 {
    float: left;
    width: 25%;
    padding: 20px 20px;
}
/* Column 25% */
/*================== ROW & COLUMNS ==================*/

/*================== CARDS ==================*/
.card {
  font-family: sans-serif;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #dadce0;
  box-shadow: none;
}

/* Container for the two inner cards */
.inner-card-container {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

/* Individual inner cards */
.inner-card {
  width: 50%;
  background-color: #fff;
  padding: 10px;
}

.card-2,.card-3,.card-4 {
	font-size: 18px;
  color: #393939;
	box-shadow: 0 0 20px 5px #cbffde;
    padding: 20px;
    text-align: center;
    background-color: #ffffff;
    width: 100%;
    height: 105px;
	border-radius: 100px;
}
.card-2:hover, .card-3:hover, .card-4:hover {
  box-shadow: 0 0 20px 5px rgb(117 255 130);
  color: #18704f;
  background-color: #fff;
  transition: 0.3s ease, fill 0.3s ease;
}
.card-4:hover .cardicon {
    color: #18704f;
    fill: #18704f;
}
.cardicon {
	font-size: 40px;
	color: #00e;
	fill: #00e;
	vertical-align: middle;
	float: left;
    padding: 10px;
    margin-right: 10px;
}
/*.card-2:hover, .card-3:hover, .card-4:hover i, ic {
    color: #18704f;
	fill: #18704f;
    transition: color 0.3s ease, fill 0.3s ease;
}*/
.cardtitle {
	/*font-size: 20px;*/
	/*font-weight: 700;*/
	margin: 20px;
	text-align: center;
	text-shadow: 2px 3px 2px rgba(174,174,174,0.3);
}
/*================== CARDS ==================*/

/*================== ADBOX ==================*/
.adbox {
	margin: 10px;
}
/*================== ADBOX ==================*/

/*================== MAIN ==================*/
main {
	max-width: 100%;
	overflow: hidden;
	margin: 20px auto;
	padding: 20px;
	background-color: #fff;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.main-container {
	max-width: 80%;
  margin: auto;
}

label {
	display: block;
	font-weight: bold;
	margin-bottom: 10px;
}

input {
	padding: 10px;
	border: none;
	border-radius: 5px;
	background-color: #c7ffd05e;
	width: 100%;
}

button {
	padding: 10px 15px;
    border: none;
    border-radius: 5px;
    background-color: #069fba;
    color: #fff;
    cursor: pointer;
}

button:hover {
cursor: pointer;
background-color: #0006be;
color: #fff;
}


textarea {
    padding: 10px;
    font-size: 18px;
    min-height: 300px;
    max-height: 999px;
    width: 100%;
    background: #fff;
    cursor: pointer;
    color: #000;
    border: 1px solid #abababa1;
    border-radius: 1px;
    outline: 0;
    font-family: Cardo, Arial;
    resize: none;
    border-style: solid;
}		
/*================== MAIN ==================*/

/*================ PayStub MAIN CONTAINER ================*/
		#resultTitle {
    color: blue;
    text-align: center;
    font-size: 24px;
	font-weight: 700;
		}
		
        form {
            display: flex;
            flex-direction: column;
        }

/*    .form-sections {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }*/
	
  .input-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    box-sizing: border-box;
  }

  .input-section h2 {
    grid-column: span 2;
  }

  .input-section label {
    margin-bottom: 4px;
    font-weight: bold;
  }

  .input-group {
    display: flex;
    flex-direction: column;
  }

  .input-group input,
  .input-group select {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    margin-top: 4px;
  }

  .input-group input[type="checkbox"] {
    width: auto;
    margin-top: 8px;
  }

  .input-group input[type="file"] {
    padding: 0;
    margin-top: 8px;
  }
  
  /* Responsive adjustments for smaller screens */
  @media (max-width: 600px) {
    .input-section {
      grid-template-columns: 1fr; /* Stacks inputs vertically on smaller screens */
    }

    .input-section h2 {
      grid-column: span 1; /* Adjust heading to span one column on small screens */
    }
  }

        .line-item {
            display: flex;
            gap: 10px;
            margin-bottom: 10px;
        }

        .line-item input {
            flex: 1;
        }

        #addLineItem, #addOtherIncome {
            background-color: #007bff;
            color: #fff;
            margin-top: 10px;
            padding: 10px;
            border-radius: 5px;
            cursor: pointer;
            text-align: center;
        }

        #addLineItem:hover, #addOtherIncome:hover {
            background-color: #0056b3;
        }

       
/* Section Styling */
section {
    margin-bottom: 20px;
}

h2 {
    border-bottom: 2px solid #00ff3b;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Line Item Styling */
.line-item {
    display: flex;
    margin-bottom: 10px;
}

.line-item input {
    margin-right: 10px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    flex: 1;
}

.line-item input[type="number"] {
    text-align: right;
}

/* Deduction and Other Income Sections */
#deductionsSection, #otherIncomeSection {
    
}

#deductionsContainer, #otherIncomeContainer {
    margin-bottom: 10px;
}
.other-income-item, .deduction-item {
	display: flex;
    gap: 10px;
}
.remove-item {
	background-color: #ffccac;
    color: red;
}

/* Preview Section Styling */
.professional-header {
    background-color: #069fba;
    color: #fff;
    text-align: center;
    padding: 10px;
    font-size: 24px;
    margin-bottom: 20px;
}

.result {
  margin-top: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#payStubPreview {
	font-size: 12px;
  padding: 20px;
  background-color: #fff;
  border: 5px dashed #555;
}

#payStubPreview h2 {
    font-size: 1.2em;
    color: #333;
}

.totalling-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.totalling-table th,
.totalling-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.preview-table th,
.preview-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.preview-table th {
    background-color: #f2f2f2;
}

.company-logo,
.employee-photo {
    width: 100px;
    height: 100px;
}

.preview-container {
    /*display: flex;*/
    justify-content: space-between;
}

.preview-table-container {
    width: 100%;
}

.employee-photo {
    /*float: right;*/
}

#payStubPreview .line-item {
    margin-bottom: 5px;
}

#payStubPreview .line-item input {
    padding: 3px;
    font-size: 13px;
}

#payStubPreview .line-item input[type="number"] {
    text-align: right;
}
#previewNetPay {font-size:18px;color:green;}

@media (max-width: 768px) {
        .form-sections {
            grid-template-columns: 1fr;
        }
    } 
/*================ PayStub MAIN CONTAINER ================*/

/*================== TABLE ==================*/ 
  table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    border: 1px solid #555; /* Add border around the table */
  }

  th, td {
    padding: 10px;
    text-align: left;
    border: 1px solid #555;
  }

  /*tr:nth-child(even) {
    background-color: #f2f2f2;
  }*/
/*================== TABLE ==================*/ 

/*======= RELATED TOOLS  =======*/
.related {    
  color: #393b3a;
  text-align: left;
  width: 100%;
  border: 1px solid #2a5941;
  border-radius: 5px;
}

.relatedtitle {
  padding: 10px 15px;
  font-size: 20px;
  font-weight: 600;
  border-bottom: 1px solid #2a5941;
}

.relatedlinks {
  display: flex;
  flex-wrap: wrap;
}

.relatedlinks a {
  display: block;
  width: 50%; /* Adjust this value to change the number of columns */
  padding: 10px 15px;
  color: #393b3a;
  border-bottom: 1px solid #2a5941;
  text-decoration: none;
}

.relatedlinks a:nth-child(odd) {
  border-right: 1px solid #2a5941; /* Add a border between columns */
}

.relatedlinks a:hover {
  color: #0004ff;
}
/*======= RELATED TOOLS  =======*/

/* =================== OTHER LINKS ==================== */ 
/*===== HOT LINKS =====*/
.hotlinks {
    clear: both;
    padding: 5px;
    color: #777;
    text-align: center;
}
.hotlinks a {
    text-decoration: none;
    padding: 9px;
	font-weight: 700;
    display: inline-block;
    color: #000;
    background: #ffc000;
    border-radius: 4px;
    margin: 5px;
	box-shadow: 0 8px 16px 0 rgb(255 217 150);
}
.hotlinks a:hover {
  background-color: #fc0303;
  box-shadow: 0 8px 16px 0 rgba(252, 114, 114);
  color: #fff;
}
/*===== HOT LINKS =====*/
/* =================== X LINKS ==================== */
.xtoolstitle {
  color: #1b0add;
  font-size: 20px;
  font-weight: 700;
  padding: 15px;
  margin-top: 20px;
}
.xlinks {
  text-align: center;
  margin: auto;
  max-width: 1000px;
}
.xlinks a {
  text-decoration: none;
  background-color: #503b9e;
  border: 1px solid #a9ecff;
  color: #fff;
  font-size: 14px;
  padding: 9px;
  display: inline-block;
  border-radius: 5px 15px;
  margin: 5px;
width: 150px;
  box-shadow: 0 8px 16px 0 rgb(26 45 112 / 70%);
}
.xlinks a:hover {
color: #fff;
background-color: #f25b5b;
border: 1px solid red;
box-shadow: 0 8px 16px 0 rgb(255 131 131);
}
/* =================== X LINKS ==================== */
/* =================== OTHER LINKS ==================== */ 

/* =================== SHARER =================== */
    .sharer {
	  display: inline-flex;
	  flex-wrap: wrap;
      margin: 5px;
	}
/*============= SHARER - SVG =============*/ 
	.share-buttons {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
      margin: 5px;
    }
    
    .fa.fa-share-alt {
		margin-right: 5px;
		color: #00c57b;
	}
	
	.share-text {
		padding: 9px;
	}
    
    .share-button {
      display: flex;
      align-items: center;
      text-decoration: none;
      color: #fff;
      border-radius: 2px;
      transition: background-color 0.3s;
    }
    
    .share-button:hover {
      opacity: 0.8;
    }
    
    .share-button i {
      font-size: 14px;
    }
    
    /* Facebook */
    .share-button.facebook {
      background-color: #3b5998;
      padding: 10px;
    }
    
    /* Twitter */
    .share-button.twitter {
      background-color: #1da1f2;
	  padding: 10px;
    }
    
    /* LinkedIn */
    .share-button.linkedin {
      background-color: #0077b5;
	  padding: 10px;
    }
    
    /* Pinterest */
    .share-button.pinterest {
      background-color: #bd081c;
	  padding: 10px;
    }
    
    /* Instagram */
    .share-button.instagram {
      background-color: #e1306c;
	  padding: 10px;
    }
    
    /* Reddit */
    .share-button.reddit {
      background-color: #ff4500;
	  padding: 10px;
    }
    
    /* WhatsApp */
    .share-button.whatsapp {
      background-color: #25d366;
	  padding: 10px;
    }
    
    /* Telegram */
    .share-button.telegram {
      background-color: #0088cc;
	  padding: 10px;
    }
/*============= SHARER - SVG =============*/

/* ======== SHARER - FontAwesome ======== */
.share-button,
.svg-icon {
    display: inline-block; border-radius: 2px;
}

.share-icon {
    color: #fff;
    padding: 12px 0px;
    font-size: larger;
}

.share-text {
    padding: 12px 3px;
    padding-right: 10px;
}

.share-button {
    margin: 3px 3px;
    border-radius: 2px;
	cursor: pointer;
}

@media only screen and (max-width:500px) {}

.svg-icon svg {
    width: 1em;
    height: 1em;
    margin: 0
}

.svg-icon {
    fill: #fff;
    stroke: none;
    transition: 25ms ease-out;
}

.share-svg {
    fill: #00c57b;
}

.facebook-svg {
    padding: 9px;
    background-color: #3b5998
}

.facebook-svg:hover {
    background-color: #2d4373
}

.twitter-svg {
    padding: 9px;
    background-color: #55acee
}

.twitter-svg:hover {
    background-color: #2795e9
}

.reddit-svg {
    padding: 9px;
    background-color: #ff4500
}

.reddit-svg:hover {
    background-color: #d45324
}

.whatsapp-svg {
    padding: 9px;
    background-color: #25d366
}

.whatsapp-svg:hover {
    background-color: #1da851
}

.telegram-svg {
    padding: 9px;
    background-color: #1394d4
}

.telegram-svg:hover {
    background-color: #016293
}
/* COPY URL */
.link-svg {
    fill: blue;
    padding: 9px;
    border: 1px solid blue;
}

.link-svg:hover {
    fill: #18704f;
    border: 1px solid #18704f;
}

.tooltip {
    position: absolute;
    z-index: 1;
    visibility: hidden;
    padding: 10px;
    background-color: #3d0980;
    color: white;
    border-radius: 5px;
    font-size: 12px;
}
/* COPY URL */
/* ======== SHARER - FontAwesome ======== */
/* =================== SHARER =================== */

/*======= FOOTER  =======*/
.privacy-note {
	font-size: 14px;
	color: #18704f;
	background-color: #ecf6ff;
	padding: 10px;
	text-align:center; 
	margin-top: 10px;
	margin-bottom: 10px;
}

.info {
    font-family: sans-serif;
	text-align: justify;
    margin: 10px auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 88%;
    box-shadow: 0 1px 9px 2px rgb(1 1 1 / 9%);
}

.footer {
  padding: 20px;
  text-align: center;
  background: #18704f;
  margin-top: 20px;
  color: #fff
}
.footer a {
	color: #45d6ff;
	text-decoration: none;
}
.footer a:hover {
	color: #ff9f9f;
}
/*======= FOOTER  =======*/

#scrolltop {
	display: none;
	position: fixed;
	bottom: 17%;
	right: 15px;
	font-size: 18px;
	background-color: #84d8a3;
	color: #fff;
	cursor: pointer;
	padding: 10px;
	border-radius: 5px
}

#scrolltop:hover {
	background-color: #18704f;
	border: 2px solid #fff
}

/* ================== COPY MESSAGE ================== */
#copymsg {
  visibility: hidden;
  min-width: 250px;
  margin-top: -50px;
  background: linear-gradient(45deg,#18704f,#ff0063);
  box-shadow: 0 2px 4px -1px #5494f4, 0 4px 5px 0 rgb(111 111 111 / 14%), 0 1px 10px 0 rgb(133 133 133 / 12%);
  color: #fff;
  text-align: center;
  border-radius: 2px;
  padding: 16px;
  position: fixed;
  z-index: 1;
  top: 50%;
  left: 30px;
  font-size: 17px;
}

#copymsg.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
  from {left: 0; opacity: 0;} 
  to {left: 30px; opacity: 1;}
}

@keyframes fadein {
  from {left: 0; opacity: 0;}
  to {left: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
  from {left: 30px; opacity: 1;} 
  to {left: 0; opacity: 0;}
}

@keyframes fadeout {
  from {left: 30px; opacity: 1;}
  to {left: 0; opacity: 0;}
}
/* ================== COPY MESSAGE ================== */

@media only screen and (max-width:800px) {
	.navigation {
    /*padding-bottom: 25px;*/
	}
	
	.logo {
	margin-left: 20px;
	background-size: 180px auto;
	}
	
	.leftcolumn, .rightcolumn {   
    width: 100%;
    padding: 0;
    }

	.column-2, .column-3, .column-4 {
    width: 100%;
    display: block;
    margin-bottom: 20px;
	}
	
	.inner-card-container {
        flex-direction: column;
    }
	
	.inner-card {
        width: 100%;
        margin-bottom: 10px;
    }
	
	.mytools {
    width: 100%;
	}
}
	
@media only screen and (min-width:800px) {
	.site-title a {
		margin-left: 50px;
	}

	.menu span {
		display: none
	}

	.menu-links a {
		display: inline-block;
		color: #ffffff
	}

	.menu-links a:hover {
		color: #0004ff
	}

	.menu-links {
		display: block
	}
	
	.main-container {
	max-width: 80%;
	}

	.info {
    width: 70%;
	}

	.fancytext {
	width: 90%
	}

	input {
	font-size: 16px
	}

}