body {
    font-family: lato, sans-serif;
    background-color: #dfe5f2;
    margin: 0;
    padding: 0;
    color: #1b2c45;

}

body:not(navbar) {
    margin-top: 15%;
  
  }

  #payment-details table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
/* Basic styling for the payment details table */
#payment-details {
  width: 100%;
  overflow-x: auto; /* Allows horizontal scrolling on small screens */
}

table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 20px;
}

th, td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #4680f4; /* Header background color */
  color: white; /* Header text color */
}

/* Responsive styling for #payment-table */
@media (max-width: 600px) {
    #payment-table {
        display: block; /* Makes the table a block element */
        overflow-x: auto; /* Enables horizontal scrolling for small screens */
        white-space: nowrap; /* Prevents text wrapping */
    }

    #payment-table th, 
    #payment-table td {
        display: inline-block; /* Stacks table cells vertically */
        width: 30%; /* Full width for each cell */
        box-sizing: border-box; /* Prevents padding from affecting width */
    }

    #payment-table th {
        position: relative; /* Allows for proper stacking */
    }

    #payment-table td {
        border: none; /* Remove borders for individual cells */
        border-bottom: 1px solid #ddd; /* Keep bottom border for separation */
        padding-left: 50%; /* Indent for visual alignment */
        text-align: left; /* Align text to the left */
    }

    #payment-table td::before {
        content: attr(data-label); /* Adds labels for each cell */
        position: absolute;
        left: 10px; /* Aligns the label text */
        font-weight: bold;
    }
}

#payment-details th, #payment-details td {
    border: 1px solid #ddd; /* Light border */
    padding: 10px;
    text-align: left;
}

#payment-details th {
    background-color: #2c456b; /* Header color */
    color: white; /* Header text color */
}

#payment-details tr:hover {
    background-color: #e0e0e0; /* Hover effect for rows */
}




  

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #f7f7f7;
    box-shadow: none;
}

#payment-details {
  display: none; /* För att börja dold */
  margin-top: 20px;
  background-color: #f9f9f9;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.payment-row {
  margin: 5px 0;
}


.hidden {
  display: none;
}

#details-dropdown {
  margin-top: 20px;
}

#details-content {
  padding: 10px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-top: 10px;
}

/* Styles for the dropdown button */
.dropdown-button {
  background-color: #f7f7f7; /* Background color */
  color: #2c456b; /* Text color */
  border: 1px solid #2c456b;
  padding: 10px 15px; /* Padding for spacing */
  border-radius: 5px; /* Rounded corners */
  font-size: 16px; /* Font size */
  cursor: pointer; /* Pointer cursor on hover */
  transition: background-color 0.3s, transform 0.2s; /* Transition effects */
  width: 100%; /* Full width for the button */
  text-align: left; /* Align text to the left */
  position: relative; /* Position relative for absolute child */
}

/* Hover effect for the button */
.dropdown-button:hover {
  background-color: #2c456b; /* Darker blue on hover */
  color: #f7f7f7;
}

/* Active effect for the button */
.dropdown-button:active {
  transform: scale(0.98); /* Slightly scale down on click */
}



h1 {
    text-align: center;
}

.card-selection {
    margin-bottom: 20px;
  
}

label[for="card-select"] {
    font-size: 20px;  /* Adjust the font size as needed */
    padding-bottom: 20px;
    
}


label[for="debt"] {
    font-size: 20px;  /* Adjust the font size as needed */
    padding-bottom: 20px;
}

label[for="time"] {
    font-size: 20px;  /* Adjust the font size as needed */
    padding-bottom: 20px;
}



.custom-select {
    position: relative;
    width: 300px;
}

#debt-value
{
    font-size: 24px;
    font-weight: 200;
}

#time-value
{
    font-size: 24px;
    font-weight: 200;
}

#monthly-payment
{
    font-size: 26px;
    font-weight: 400;
}

#total-cost
{
    font-size: 30px;
    font-weight: 800;
    color: #1a2d48;
}

#time
{
    font-size: 30px;
    font-weight: 800;
}

.select-box {
 display: none;
   

}

.select-box img {
    width: 80px;
    height: auto;
    margin-right: 10px;
}

.arrow-down {
    font-size: 18px;
}

.options-container {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    border: 1px solid #ccc;
    border-top: none;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

#search-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-bottom: none;
    box-sizing: border-box;
    
}



.option {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
   
}

.option img {
    width: 70px;
    height: auto;
    margin-right: 10px;
    
}

.option:hover {
    background-color: #f0f0f0;
}

.input-section {
    margin-bottom: 20px;
}

input[type="range"] {
  width: 100%;
  height: 12px; /* More refined height */
  -webkit-appearance: none;
  background: linear-gradient(to right, #4680f4 0%, #63aaff 100%); /* Gradient background for a more dynamic look */
  border-radius: 8px; /* Slightly rounder edges */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  transition: background 0.2s ease; /* Smooth background transition on hover */
}

input[type="range"]:hover {
  background: linear-gradient(to right, #4680f4 0%, #5689e4 100%); /* Slight change on hover for interactive feel */
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px; /* Slightly larger thumb */
  height: 28px; /* Slightly larger thumb */
  background: #4680f4;
  border-radius: 50%; /* Circular thumb */
  border: 3px solid #fff; /* White border for emphasis */
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15); /* Thumb shadow for depth */
  transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transitions */
}

input[type="range"]::-webkit-slider-thumb:hover {
  background-color: #5a94e6; /* Slight change in thumb color on hover */
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.25); /* More prominent shadow on hover */
}

input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  background: #4680f4;
  border-radius: 50%;
  border: 3px solid #fff;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="range"]::-moz-range-thumb:hover {
  background-color: #5a94e6;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
}

input[type="range"]::-ms-thumb {
  width: 28px;
  height: 28px;
  background: #4680f4;
  border-radius: 50%;
  border: 3px solid #fff;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="range"]::-ms-thumb:hover {
  background-color: #5a94e6;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
}




.results {
    margin-top: 20px;
}

.card-details {
    margin-top: 20px;

}

#card-info {
    border-top: 1px solid #ccc;
    padding-top: 100px;


}




.apply-now {
    display: block;
    text-align: center;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #f7f7f7;
    color: #4681f4;
    border: 1px solid #4681f4;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 2px 4px 0 rgba(0,0,0,.2);
    margin-top: 100px;
}

.apply-now:hover {
    background-color: #2f6ae0;
    color: white;
    box-shadow: 0 2px 4px 0 rgba(0,0,0,.2);
    transition: background-color 0.6s ease;
    transform: scale(1.01); 
    }


/* Navbar and menu styles */
#logo-link {
    display: flex;
    align-items: center;
    margin-left: 13%;
}



#logohem {
    width: auto;
    height: 40px; /* Adjust height as needed */
    padding: 0 10px; /* Adjust padding as needed */
}
/* navbar for computer */
@media screen and (min-width: 1000px) {

    /* Image within the logo link */
  #navbaricon {
    width: auto;
    height: 20px; /* Adjust height as needed */
    padding: 0 10px; /* Adjust padding as needed */
    margin-left: -30px;
    margin-top: 0px;
    position: absolute;
  }
  
  #navbaricon:hover {
   color:blue;
  }
  
  /* Image within the logo link */
  #logohem {
    width: auto;
    height: 40px; /* Adjust height as needed */
    padding: 0 10px; /* Adjust padding as needed */
  
  }
  
  
  /* Hover effect for navbar links, excluding the logo link */
#navbar a:hover:not(#logo-link) {
  color: #4681f4; /* Elegant deep blue */
}
  
  
  
  
   /* Style the navbar */
  #navbar {
    background-color: #f7f7f7;
      box-shadow: 0 4px 8px 0 rgba(0,0,0,.2);
      z-index:2; /*Add this*/
      overflow: hidden;
      display: flex;
      align-items: center; /* Vertically center items */
      font-size: 19px;
      z-index: 9999;
      position: sticky;
    top:0;
  
  
    }
  
    /* Specific styles for the logo link */
  #logo-link {
    display: flex;
    align-items: center;
    margin-left: 0;
  }
  
    /* Image within the logo link */
  #logohem {
    width: auto;
    height: 40px; /* Adjust height as needed */
    padding: 0 10px; /* Adjust padding as needed */
  
  }
  
    
    /* Navbar links */
    #navbar a {
      float: left;
      display: block;
      color:#1a2d48;
      text-align: center;
      padding: 24px;
      text-decoration: none;
      overflow: hidden;
    }
  
  
    #navbar a:active {
      background-color: #f7f7f7;
      font-size: 100%;
      background-color: #bdceefab;
      border-radius: 3px;
    }
   
    }
    /* End of navbar for computer*/

.dropdown {
    float: left;
    position: relative;
}

.dropdown .dropbtn {
    font-size: 17px;
    border: none;
    outline: none;
    color: rgb(219, 13, 13);
    padding: 12px 8px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
    cursor: pointer;
}

/* Navbar and menu styles */
.dropdown {
    float: left; /* Float left to align it properly */
    position: relative; /* Ensure relative positioning for absolute children */
}

.dropdown .dropbtn {
    font-size: 17px;
    border: none;
    outline: none;
    color: rgb(219, 13, 13);
    padding: 12px 8px;
    background-color: inherit;
    font-family: inherit; /* Important for vertical align on mobile phones */
    margin: 0; /* Important for vertical align on mobile phones */
    cursor: pointer; /* Add cursor pointer to indicate it's clickable */
}

.dropdown-content {
    display: none; /* Hide dropdown content by default */
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 999; /* Ensure dropdown content is above other content */
    text-align: left; /* Ensure text is left-aligned */
    padding: 0; /* Remove padding from dropdown-content */
}

.dropdown-content a {
    color: black;
    padding: 12px 12px;
    text-decoration: none;
    display: block; /* Display links as block elements */
    background-color: transparent; /* Ensures background color does not spill over */
    text-align: left; /* Ensure text is left-aligned */
    width: 100%; /* Ensure the link takes full width of its container */
    box-sizing: border-box; /* Ensure padding and width work together properly */
}

.dropdown-content a:hover {
    background-color: #4680f4; /* Change to your desired hover color */
    color: #FFFFEB; /* Change text color on hover */
}

.dropdown:hover .dropdown-content {
    display: block;
    overflow: hidden; /* Ensures content does not overflow */
}


.hamburger {
    width: 30px;
    height: 2px;
    background-color: black;
    margin: 4px 0;
    border-radius: 5px;
}

#navbar a {
    float: left;
    display: block;
    color: #1a2d48;
    text-align: center;
    padding: 24px;
    text-decoration: none;
}


#propertytop {
    width: 7%;
    top: 13px;
    position: relative;
    margin-left: 23.3%;
    color: rgb(92, 90, 90);
}

#propertybottom {
    width: 7%;
    top: 13px;
    position: relative;
    margin-left: 20%;
}

#property_text {
    color: rgb(92, 90, 90);
    margin-left: 10%;
    margin-top: -4.5%;
}

.dropdown-content a:hover {
    background-color: #dddddd00; /* Change to your desired hover color */
}

.dropdown:hover .dropdown-content {
    position: fixed !important;
    text-align: left;
}

/* Card styling */
#cardInfo {
    padding: 400px 20px 20px 20px; /* Adjusted padding for the card info section */
    display: flex;
    flex-direction: column;
    align-items: center;
}


.card-info {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
}

#cardnametitle {
   color:#2c456b;
   text-align: center;
}

.card-info img {
    width: 40%;
    border-radius: 8px;
    margin-left: 240px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    
}

.card-info table {
    width: 100%;
    border-collapse: collapse;
}

.card-info th,
.card-info td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.card-info th {
    background-color: #47628b;
    color: #FFFFEB;
}

.card-info tr:nth-child(odd) th {
    background-color: #efeffa;
    color: #2c456b;
}

/* Alternating row colors */
.card-info tr:nth-child(even) th {
    background-color: #2c456b;
    color: #FFFFEB;
}

#colorcard
{
  margin-top: -3%;
  margin-left: -3%;
  width: 7%;
  position: absolute;
}


.card-info td {
    background-color: #2c456b;
    color: #FFFFEB;
}


/* Alternating row colors */
.card-info tr:nth-child(even) td {
    background-color: #2c456b;
    color: #FFFFEB;
}

.card-info tr:nth-child(odd) td {
    background-color: #efeffa;
    color: #2c456b;
}

.card-info .apply-now {
    display: block;
    text-align: center;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #4680f4;
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    font-size: 18px;
}

.card-info .apply-now:hover {
    background-color: #3461c1;
}

/* Footer styles */
/* Footer Styles */
.footer {
    background-color: #1a2d48;
    color: white;
    padding: 20px 0;
    position: relative;
    bottom: 0;
    width: 100%;
  }
  
  .footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
  }
  
  .footer-section {
    flex: 1;
    margin: 10px 20px;
  }
  
  .footer-section h2 {
    margin-bottom: 20px;
    font-size: 20px;
  }
  
  .footer-section p,
  .footer-section ul,
  .footer-section a {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .footer-section a {
    color: white;
    text-decoration: none;
  }
  
  .footer-section a:hover {
    text-decoration: underline;
  }
  
  .footer-section ul {
    list-style: none;
    padding: 0;
  }
  
  .footer-section ul li {
    margin-bottom: 10px;
  }
  
  .footer-section .social a {
    font-size: 20px;
    margin: 0 10px;
    display: inline-block;
  }
  
  .footer-section .social a:hover {
    color: #4681f4;
  }
  
  .footer-bottom {
    background-color: #0d1a2b;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
    font-size: 14px;
  }
  
  #litentext{
    position: relative;
    font-size: 20px;
    font-family: lato, sans-serif;
    color: rgb(84, 96, 115);
    text-decoration: none;


  }

  #litentextfooter{
    position: relative;
    font-size: 15px;
    font-family: lato, sans-serif;
    color: rgb(84, 96, 115);
    text-decoration: none;


  }

#informationcredit_cardinfo{
    background-color: #2c456b;
    width: 70%;
    height: 25%;
    margin-left: 15%;
    border-radius: 10px;
    box-shadow: 0 20px 20px 0 rgba(0,0,0,.2);
    color: #FFFFEB;
    position: absolute;
    margin-top: 10%;

    
  }
  
  #categorytitle
  {
    font-family: lato, sans-serif;
    color:  #FFFFEB;
    text-align: center;
    
  }
  
  #categorytitle2
  {
    font-family: lato, sans-serif;
    color:  #FFFFEB;
    text-align: center;
    font-weight: 200;
  
  }

  /* Navbar and menu styles */
.dropdown {
    float: left; /* Float left to align it properly */
    position: relative; /* Ensure relative positioning for absolute children */
}

.dropdown .dropbtn {
    font-size: 17px;
    border: none;
    outline: none;
    color: rgb(219, 13, 13);
    padding: 12px 8px;
    background-color: inherit;
    font-family: inherit; /* Important for vertical align on mobile phones */
    margin: 0; /* Important for vertical align on mobile phones */
    cursor: pointer; /* Add cursor pointer to indicate it's clickable */
}

#ratingall{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 50%;
    margin-left: 7%;
  }


  #symbolerrating_info{
    box-shadow: none;
    width: 24px; /* Adjust as needed */
    height: 24px; /* Adjust as needed */
    margin-right: -230px; /* Adjust space between stars */
  }

.dropdown-content {
    display: none; /* Hide dropdown content by default */
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 999; /* Ensure dropdown content is above other content */
    text-align: left; /* Ensure text is left-aligned */
    padding: 0; /* Remove padding from dropdown-content */
}

.dropdown-content a {
    color: black;
    padding: 12px 12px;
    text-decoration: none;
    display: block; /* Display links as block elements */
    background-color: transparent; /* Ensures background color does not spill over */
    text-align: left; /* Ensure text is left-aligned */
    width: 100%; /* Ensure the link takes full width of its container */
    box-sizing: border-box; /* Ensure padding and width work together properly */
}



.dropdown:hover .dropdown-content {
    display: block;
    overflow: hidden; /* Ensures content does not overflow */
}

#informationcredit {
    background-image: linear-gradient(to bottom right, #2c456b,#7693bf);
    width: 70%;
    height: 30%;
    margin-left: 15%;
    border-radius: 10px;
    box-shadow: 0 20px 20px 0 rgba(0,0,0,.2);
    color: #FFFFEB;
    padding-bottom: 5px;
    position: absolute; /* If you are using absolute positioning */
    top: 20px; /* Adjust this value to move the element */
}



  #vadarkreditkortbild
{
  margin-top: -3%;
  margin-left: -3%;
  width: 7%;
  position: absolute;
}

#categorytitle
{
  font-family: lato, sans-serif;
  color:  #FFFFEB;
  text-align: center;
  margin-top: 10%;
  
}

#categorytitle2
{
  font-family: lato, sans-serif;
  color:  #FFFFEB;
  text-align: center;

}

#menuname
{
  color:#1b3153;
  font-size: 18px;
  font-family: lato, sans-serif;
  background-color: #f7f7f7;
  font-weight: 400;
  border-radius: 4px;
  margin-top:5px;





}

/* Wrapper for the entire section */
.main-wrapper {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto; /* Center the wrapper on the page */
    padding: 20px;
    gap: 20px; /* Space between left and right columns */
  }
  
  /* Left Column: Card Info */
  .left-column {
    flex: 1; /* Takes up 1 part of the available space */
    max-width: 500px; /* Set max-width to control the size of the card info */
  }
  
  /* Right Column: Slider and Results */
  .right-column {
    flex: 1; /* Takes up 1 part of the available space */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px;
    background-color: #f4f4f9; /* Light background color */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }
  
  .input-section {
    margin-bottom: 20px;
  }
  
  .results {
    margin-top: 20px;
  }
  
  /* Card Info styling */
  #card-info {
    background-color: #f7f7f7;
    padding: 20px;
    border-radius: 8px;
    box-shadow: none;
    border-top: none;
  }
  
  #card-info img {
    display: block;
    margin: 0 auto;

  }
  
  #card-info h3 {
    text-align: center;
  }
  
  /* Ensure the results and the sliders are centered and aligned nicely */
  #monthly-payment, #total-cost {
    font-size: 20px;
    font-weight: bold;
    color: #1a2d48;
    margin-top: 10px;
  }
  



  @media screen and (min-width: 600px) {
     .moveright{
    margin-left: 150px;
    }
}


@media screen and (max-width: 600px) {
    #total-cost{
        font-size: 16px;
        }

        #monthly-payment{
            font-size: 13.5px;
            }
}



