:root {
  --base-width: 400;
  --base-height: 620;
  --vwUnit: calc(100vw / var(--base-width));
  --vhUnit: calc(100vh / var(--base-height));
}

body{
    font-family: sans-serif;
    background-color: rgb(0, 18, 39);
}

.content{
    margin-top: 5%;
    width: 100%;
    height: 100%;
}

.content header{
    position: absolute;
    top: 0;
    width: 100%;
    height: 15%;
    display: flex;
    align-items: flex-end;
    justify-content: space-around; 
}

.content header button{
    background-color: rgba(50, 88, 170, 0.295);
    border: 2px solid rgba(24, 66, 156, 0.493);
    color: rgba(224, 221, 236, 0.658);

    border-radius: calc(3 * var(--vwUnit));
    width: 15%;
    height: calc(25 * var(--vhUnit));
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(1 * var(--vhUnit));

    margin-bottom: calc(10 * var(--vwUnit));

    font-size: calc(16 * var(--vwUnit));

    text-align: center;
}

.content header button.selected{
    background-color: rgba(19, 55, 177, 0.658);
    border: 2px solid  rgba(77, 111, 182, 0.658);
    color: rgba(224, 221, 236, 0.658);

    border-radius: calc(5 * var(--vwUnit));
    width: 15%;
    height: calc(25 * var(--vhUnit));
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(1 * var(--vhUnit));

    margin-bottom: calc(10 * var(--vwUnit));

    font-size: calc(20 * var(--vwUnit));
}

.content header input{
        background-color: rgba(50, 88, 170, 0.295);
    border: 2px solid rgba(24, 66, 156, 0.493);
    color: rgba(224, 221, 236, 0.658);

    border-radius: calc(3 * var(--vwUnit));
    width: 60%;
    height: calc(19.5 * var(--vhUnit));
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(1 * var(--vhUnit));

    margin-bottom: calc(10 * var(--vwUnit));

    font-size: calc(18 * var(--vwUnit));

    text-align: center;
}

.content .calendar{
    position: absolute;

    top: 15%;
    width: 100%;
    padding-bottom: calc(135 * var(--vhUnit));
}
.content .calendar .nextPage{
    position: fixed;
    z-index: 10000;
    right: 0;
    top: 0;
    height: 1000px;
    width: calc(50 * var(--vwUnit));
        background-color: transparent;
    color: transparent;
}

.content .calendar .prevPage{
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    height: 1000px;
    background-color: transparent;
    color: transparent;
    width: calc(50 * var(--vwUnit));
}


.content .calendar .day{
    min-height: 20%;
    width: 100%;

    border-top: 1px solid rgb(166, 186, 207);

    position: relative;
}

.content .calendar .day .top{
    margin-top: calc(-10 * var(--vhUnit));

    font-size: calc(15 * var(--vhUnit));
    color: rgb(166, 186, 207);

    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    width: 85%;
    margin-left: 5%;
    height: 5%;
}

.content .calendar .day .top select{
    background-color: rgba(106, 50, 170, 0.295);
    border: 2px solid rgba(70, 22, 126, 0.493);
    color: rgba(224, 221, 236, 0.658);

    border-radius: calc(12 * var(--vwUnit));
    width: calc(150 * var(--vwUnit));
    height: calc(25 * var(--vhUnit));
    padding: calc(1 * var(--vhUnit));
}

.content .calendar .day .top .day{
    background-color: rgba(54, 170, 50, 0.295);
    border: 2px solid rgba(22, 126, 45, 0.493);
    color: rgba(224, 221, 236, 0.658);

    border-radius: calc(12 * var(--vwUnit));
    width: calc(50 * var(--vwUnit));
    height: calc(20 * var(--vhUnit));
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(1 * var(--vhUnit));
}

.content .calendar .day .people{
    display: flex;
    flex-wrap: wrap;
    margin-left: 5%;
}

.content .calendar .day .people .person{
    background-color: rgba(32, 50, 151, 0.295);
    border: 2px solid rgba(22, 46, 126, 0.493);
    color: rgba(224, 221, 236, 0.658);

    border-radius: calc(12 * var(--vwUnit));

    border-radius: calc(12 * var(--vwUnit));
    width: 40%;
    height: calc(16 * var(--vhUnit));
    font-size: calc(15 * var(--vwUnit));
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(5 * var(--vhUnit));

    margin-right: 2%;
    margin-bottom: 4%;
}

.content .calendar .day .people .person i{
    color: rgb(185, 37, 37);
}

.content .calendar .day .people .add{
    background-color: rgba(255, 255, 255, 0.295);
    border: 2px solid rgba(255, 255, 255, 0.74);
    color: rgba(224, 221, 236, 0.658);

    border-radius: calc(12 * var(--vwUnit));
    width: calc(32* var(--vwUnit));
    height: calc(32 * var(--vhUnit));
    /* padding: calc(3 * var(--vhUnit)); */

    border-radius: 5000px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
    z-index: 100000;
}


.bottomBar {
    position: fixed;
    z-index: 100000;
    bottom: 5%;

    border-radius: 3px;

    width: calc(90% );
    height: 7%;
    margin-left: 5%;

    backdrop-filter: blur(4px);
    background-color: rgba(7, 34, 65, 0.582);

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bottomBar .item {
    height: 100%;
    width: 50%;
    border-radius: 5px;
    text-align: center;
    color: rgb(126, 151, 177);
    /* background-color: rgba(0, 18, 39, 0.199); */

    /* ✅ Center all content inside */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    margin: 0%;

    transition: all 0.2s ease-in;
}

.bottomBar .item i {
    font-size: 25px;

    transition: all 0.2s ease-in;
}

.bottomBar .selected{
    background-color: rgba(2, 24, 49, 0.842);
}

.bottomBar .selected i{
    font-size: 30px;
    color: rgb(198, 217, 238);
}

/* ✅ Perfectly round center button */
.bottomBar .item#new {
    position: absolute;
    z-index: 10002;

    width: calc(60 * var(--vhUnit));
    height: calc(60 * var(--vhUnit));
    border-radius: 50%; /* perfect circle */
    margin-bottom: 15%;
    background-color: rgb(7, 34, 65);

    /* Center icon & text inside */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    left: calc(50% - ((60 * var(--vwUnit))) / 2);
}

.bottomBar .item#new i {
    color: rgb(166, 186, 207);
    font-size: 30px;
}

.content .payment{
    background-color: rgb(0, 18, 39);
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    overflow-y: auto;
}

.content .payment .personInfo{
    position: fixed;
    left: calc(17.5% - 1.5px);
    top: 20%;
    width: 65%;
    height: 50%;

    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-direction: column;
    text-align: center;

    background-color: rgb(6, 38, 75);
    color: rgb(207, 210, 214);
    box-sizing: border-box;
    padding: 3px;

    border-radius: calc(10 * var(--vwUnit));

    -webkit-box-shadow: 5px 5px 34px 17px rgba(0,0,0,0.86); 
    box-shadow: 5px 5px 34px 17px rgba(0,0,0,0.86);
}

.content .payment .personInfo .data{
    height: 50%;
    margin-bottom: 10%;
    font-size: 15px;
    width: 100%;
}

.content .payment .personInfo #cancel{
        background-color: rgb(241, 252, 255);
    border: rgb(204, 204, 204) 2px solid;
    padding: calc(5 * var(--vhUnit));
    width: 94%;
    border-radius: calc(5 * var(--vhUnit));
    
    height: 12%;
    text-align: center;
}

.content .payment .personInfo #delete{
        background-color: rgb(30, 86, 150);
    border: rgb(31, 71, 146) 2px solid;
    color: rgb(241, 252, 255);
    padding: calc(5 * var(--vhUnit));
    width: 94%;
    border-radius: calc(5 * var(--vhUnit));
    
    height: 12%;
    text-align: center;
}

.content .payment .list{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    overflow-y: auto;
}

.content .payment .list .item{
    width: 30%;
    height: calc(75 * var(--vhUnit));
    margin-top: 15%;

    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: column;

    color: rgb(207, 210, 214);

    font-size: calc(15 * var(--vhUnit));

    pointer-events: auto;
}

.content .payment .list .item select{
    background-color: rgba(215, 207, 224, 0.295);
    border: 2px solid rgba(171, 167, 175, 0.493);

    border-radius: calc(8 * var(--vwUnit));
    width: calc(100 * var(--vwUnit));
    height: calc(22 * var(--vhUnit));
    padding: calc(1 * var(--vhUnit));

    text-align: start;

    color: rgb(219, 219, 219);
}

.content .payment .list .item option{
    color: black;
}

.content .payment .list .item p{
    margin: 0;
    padding: 0;
    height: 50%;
}

.content .payment .list .item:nth-child(3n + 1){
    background-color: rgba(106, 50, 170, 0.295);
    border: 2px solid rgba(70, 22, 126, 0.493);
}

.content .payment .list .item:nth-child(3n + 2){
    background-color: rgba(32, 50, 151, 0.295);
    border: 2px solid rgba(22, 46, 126, 0.493);
}

.content .payment .list .item:nth-child(3n + 3){
    background-color: rgba(54, 170, 50, 0.295);
    border: 2px solid rgba(22, 126, 45, 0.493);
}

.content .payment .list .item:nth-child(n+4){
    margin-top: 2.5%;
}

.content .payment .list .empty-spot{
    width: 30%;
    height: calc(75 * var(--vhUnit));
    background-color: rgba(51, 53, 51, 0.295);
    border: 2px solid rgba(70, 73, 71, 0.493);
    margin-top: 2.5%;

    pointer-events: none;
}

.content .addNew{
    position: fixed;
    top: 0;
    left: 0;

    z-index: 10000;

    width: 100%;
    height: 95%;

    background-color: rgb(0, 18, 39);

    display: flex;

    flex-direction: column;
    border-top-left-radius: calc(20 * var(--vwUnit));
    border-top-right-radius: calc(20 * var(--vwUnit));
    border-top: rgb(2, 38, 78) 2px solid;

}

.content .addNew .top h1{
    text-align: center;
}

.content .addNew .top{
    color: rgb(214, 218, 221);
    display: flex;
    flex-direction: column;

    height: 40%;

    border-bottom: rgb(214, 218, 221) 1px solid;
}

.content .addNew .top .inputs{
    width: 100%;
    height: 40%;

    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
}

.content .addNew .top input{
    background-color: rgb(241, 252, 255);
    border: rgb(204, 204, 204) 2px solid;
    padding: calc(5 * var(--vhUnit));
    width: 40%;

    border-radius: calc(5 * var(--vhUnit));
}

.content .addNew .top button{
    background-color: rgb(241, 252, 255);
    border: rgb(204, 204, 204) 2px solid;
    padding: calc(5 * var(--vhUnit));
    width: 94%;

    margin-left: 2.75%;
    border-radius: calc(5 * var(--vhUnit));
    
    height: 15%;
}

.content .addNew .bottom{
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 50%;
}

.content .addNew .bottom .left h1{
    text-align: center;
    font-size: calc(25 * var(--vwUnit));
}

.content .addNew .bottom .left{
    width: 50%;
    min-height: 100%;

        display: flex;
    flex-direction: column;

    color: rgb(214, 218, 221);
    border-right: calc(1 * var(--vwUnit)) solid rgb(241, 252, 255);
}

.content .addNew .bottom .left .inputs{
    width: 100%;
    height: 50%;

    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    flex-direction: column;
}

.content .addNew .bottom .left input{
    background-color: rgb(241, 252, 255);
    border: rgb(204, 204, 204) 2px solid;
    padding: calc(5 * var(--vhUnit));
    width: 87%;

    border-radius: calc(5 * var(--vhUnit));
    margin-bottom: 8.5%;
}

.content .addNew .bottom .left button{
    background-color: rgb(241, 252, 255);
    border: rgb(204, 204, 204) 2px solid;
    padding: calc(5 * var(--vhUnit));
    width: 94%;

    margin-left: 2.75%;
    border-radius: calc(5 * var(--vhUnit));
    
    height: 10%;

    margin-top: 10%;
}

.content .addNew .bottom .right h1{
    text-align: center;
    font-size: calc(25 * var(--vwUnit));
}

.content .addNew .bottom .right{
    width: 50%;
    min-height: 100%;

        display: flex;
    flex-direction: column;

    color: rgb(214, 218, 221);
}

.content .addNew .bottom .right .inputs{
    width: 100%;
    height: 50%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    flex-direction: column;
}

.content .addNew .bottom .right input{
    background-color: rgb(241, 252, 255);
    border: rgb(204, 204, 204) 2px solid;
    padding: calc(5 * var(--vhUnit));
    width: 87%;

    border-radius: calc(5 * var(--vhUnit));
    margin-top: 8.40%;
    margin-bottom: 8.5%;
}

.content .addNew .bottom .right button{
    background-color: rgb(241, 252, 255);
    border: rgb(204, 204, 204) 2px solid;
    padding: calc(5 * var(--vhUnit));
    width: 94%;

    margin-left: 2.75%;
    border-radius: calc(5 * var(--vhUnit));
    
    height: 10%;

    margin-top: 10%;
}

@keyframes right-to-mid{
    0%{
        left: 100%;
    }
    100%{
        left: 0%;
    }
}

@keyframes mid-to-right{
    0%{
        left: 0%;
    }
    100%{
        left: 100%;
    }
}

@keyframes left-to-mid {
    0%{
        left: -100%;
    }
    100%{
        left: 0%;
    }
}

@keyframes mid-to-left {
    0%{
        left: 0%;
    }
    100%{
        left: -100%;
    }
}

@keyframes bottom-to-top {
    0%{
        top: 100%;
    }
    100%{
        top: 5%;
    }
}

@keyframes top-to-bottom {
    0%{
        top: 5%;
    }
    100%{
        top: 100%;
    }
}

@keyframes opac-in {
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}

@keyframes opac-out {
    from{
        opacity: 1;
    }
    to{
        opacity: 0;
    }
}