@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

* {
    font-family: "Ubuntu", sans-serif;
    color: white;
    animation: onload 3s ease-in-out -1s;
}

body{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
}
.main{
    width: 60vw;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 10px;
}
header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}
.bill_amount{
    display: flex;
    align-items: center;
    justify-content: center;
    gap:20px;
}

.inputs{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}
.inputs .contributions{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.splits {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
label {
    font-size: 20px;
}
input {
    font-size: 17px;
    width: 20vw;
    height: 20px;
    border: none;
    border-bottom: 2px solid rgb(250, 250, 250);
    background-color: rgba(0, 0, 0, 0)
}
input:focus{
    outline: none;
}

select {
     border: none;                
  border-bottom: 2px solid #fff;
  background: transparent;     
  color: #fff;                  
  font-size: 16px;   
  padding: 8px 4px;      
  outline: none; 
}
select option {
  background: #4cb6e0;  
  color: #fff;  
  border: 2px solid white;
  border-radius: 10px;        
}

/* Optional: highlight effect when hovering or selected */
select option:hover{
background-color: #43a6f7; 
  color: #fff;
}
select option:checked {
  background: #3aa6ee; 
  color: #fff;
}

#add{
    background-color: transparent;
    border: none;
    width: 40px;
    transform: scale(1,1);
    transition: all 1s ease-out;
    cursor: pointer;
}
#add:hover{
    transform: scale(1.2,1.2);
}
#add:active{
    transform: scale(0.8,0.8);
}

#generate{
    background-color: transparent;
    border: none;
    width: 200px;
    transform: scale(1,1);
    transition: all 1s ease-out;
    font-size: 15px;
    padding: 10px;
    border: 2px solid white;
    border-radius: 10px;
    box-shadow: 3px 3px white;
}
#generate:hover{
    transform: scale(1.1,1.1);
}
#generate:active{
    transform: scale(0.9,0.9);
}
.splits {
    visibility: hidden;
}
#splitTable th,td{
    padding: 10px;
    border: 1px solid white;
    width: 20vw;
}
#splitTable th{
    background-color: white;
    color: #4cb6e0;
}


@media (max-width: 812px) {
    .inputs .contributions{
        flex-direction: column;
        gap: 10px;
    }
}
@media (max-width: 1200px) {
.main {
        width: 80vw;
    }
}

@media screen and (min-width: 1025px), 
       screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  body {
    background-image: url("img/bglandscape.png");
    background-size: cover;
    background-position: center;
  }
}

@media screen and (max-width: 767px) {
  body {
    background-image: url("img/bgportrait.png");
    background-size: cover;
    background-position: center;
  }
    .bill_amount{
        flex-direction: column;
    }
    input {
        width: 75vw;
    }
}
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  body {
    background-image: url("img/bgportrait.png");
    background-size: cover;
    background-position: center;
  }
}

@keyframes onload {
    from {
        filter: blur(4px);
    }
    to {
        filter: blur(0px);
    }
}