@import url("_variables.css");

.content{
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 50vh;
    margin: 2vh;
}

.title_content{
    position: relative;
    width: 100%;
    height: 5vh;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.title_content h1{
    align-self: center;
    justify-self: center;
}

form{
    margin-top: 2vh;
    align-self: center;
    justify-self: center;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

form > p:has(label){
    height: 7vh;
    display: flex;
    justify-content: center;
}

form > p:has(textarea){
    min-height: 18vh;
    display: flex;
    justify-content: center;
}

label{
    flex-basis: 0.5;
    align-self: center;
    width: 20vw;
    text-align: start;
}

input:not(#submit_btn, .form_control, .totinput), select, textarea{
    flex-basis: 0.5;
    margin: 10px;
    width: 40vw;
    border-radius: 10px;
    background: var(--metalgrey-50);
    border: 2px solid var(--metalgrey);
    backdrop-filter: blur(20px);
    box-shadow: 10px 10px 20px -5px var(--black-32);
    font-family: 'Rubik';
    caret-color: var(--black);
}

textarea{
    min-height: 15vh;
    resize: none;
}

input:focus:not(.totinput), select:focus, textarea:focus{
    border: 2px solid var(--seafoam);
    box-shadow: 10px 10px 20px -5px var(--bluelight);
    outline: none;
}

ul > li{
    align-self: center;
    text-align: center;
    font-size: 14px;
}

input[type="checkbox"]{
    accent-color: var(--bluelight);
    height: 1.5rem;
    width: 1.5rem;
    border-radius: 15px;
    opacity: 1;
    box-shadow: 0px 0px 0px !important;
}

input[type="checkbox"]:checked{
    opacity: 1;
    box-shadow: 0px 0px 0px !important;
}

#id_date_day, #id_date_month, #id_date_year, #id_dateNV_day, #id_dateNV_month, #id_dateNV_year{
    max-width: 30vh;
}

.form_date_class{
    position: relative;
    width: 80%;
    left: 10%;
}

.btn_container_1, .btn_container_2{
    position: fixed;
    bottom: 10vh;
    right: 2.5%;
    width: 9vh;
    height: 9vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--seafoam);
    border: 4px solid var(--bluelight);
    border-radius: 25px;
    transition: background 0.5s ease-in-out, border 0.5s ease-in-out;
    overflow: hidden;
    padding: 1vh;
}

.btn_container_2{
    bottom: 20vh;
}

.btn_container_1:hover, .btn_container_2:hover{
    background: var(--bluelight);
    border: 4px solid var(--seafoam);
    cursor: pointer;
    transition: background 0.5s ease-in-out, border 0.5s ease-in-out;
}

.add_btn{
    position: relative;
    width: 80%;
    left: 10%;
    border-radius: 20px;
    padding: 0.6rem 1rem;
    background-color: var(--metalgrey);
    box-shadow: 10px 10px 20px -5px var(--black-32);
    font-size: 18px;
    text-transform: uppercase;
    text-decoration: none;
    font-family: 'Rubik';
    border: 4px solid var(--seafoam);
    margin-bottom: 2vh;
    margin-top: 5vh;
    transition: background 0.5s ease-in-out, border 0.5s ease-in-out;
}

.add_btn:hover{
    background: var(--bluelight);
    border: 4px solid var(--seafoam);
    cursor: pointer;
    transition: background 0.5s ease-in-out, border 0.5s ease-in-out;
}

.nothover{
    background: var(--metalgrey);
    border: 4px solid var(--metalgrey);
    cursor: default;
}

.nothover:hover{
    background: var(--metalgrey);
    border: 4px solid var(--metalgrey);
    cursor: default;
}


.line_container{
    position: relative;
    width: 80%;
    left: 10%;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-between;
    border-radius: 20px;
    padding: 0.6rem 1rem;
    background-color: var(--metalgrey-50);
    box-shadow: 10px 10px 20px -5px var(--black-32);
    margin-bottom: 2vh;
}

.line_container > p{
    flex-basis: 0.5;
    min-width: 100px;
    text-align: center;
    align-self: center;
    overflow: hidden;
    text-overflow: ellipsis;
}

.line_container > img{
    flex-basis: 0.5;
    transform: scale(0.8);
    max-width: 50px;
    max-height: 50px;
    align-self: center;
    justify-self: center;
}

.line_container > img:hover{
    cursor: pointer;
}

.add_input{
    flex-basis: 0.5;
    margin: 10px;
    width: 40vw;
    height: 4vh;
    border-radius: 10px;
    background: var(--metalgrey-50);
    border: 2px solid var(--metalgrey-10);
    backdrop-filter: blur(20px);
    box-shadow: none;
    font-family: 'Rubik';
    caret-color: var(--seafoam);
}

.add_div{
    justify-self: center;
    align-self: center;
    text-align: center;
}

.city_container{
    display: flex;
    width: 100%;
}

.city_container > input{
    flex-basis: 0.5;
    width: 50%;
    justify-self: center;
    align-self: center;
    overflow: hidden;
    cursor: pointer;
}

.city_container > label {
    flex-basis: 0.5;
    width: 60%;
    text-align: center;
    justify-self: center;
    align-self: center;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.form_choice{
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 80%;
    left: 10%;
}

.form_choicea{
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    background: var(--metalgrey-50);
    backdrop-filter: blur(20px);
    box-shadow: 10px 10px 20px -5px var(--black-32);
    border: 4px solid var(--metalgrey);
    cursor: pointer;
    transition: background 0.5s ease-in-out, border 0.5s ease-in-out;
}

.form_choice a:hover, .form_choice_active{
    background: var(--bluelight);
    border: 4px solid var(--seafoam);
    cursor: pointer;
    transition: background 0.5s ease-in-out, border 0.5s ease-in-out;
}

.link-center{
    align-self: center;
    justify-self: center;
    text-align: center;
}

.link-center:hover{
    color: var(--seafoam);
}

.link_data{
    align-self: center;
    justify-self: center;
}

.errorlist{
    color: var(--red);
    font-weight: 600;
}


#econtent{
    position: relative;
    width: 80%;
    left: 10%;
    height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

#econtent > h1{
    font-size: 54px;
    color: var(--red);
    margin-bottom: 2vh;
}

#econtent > p{
    font-size: 24px;
}

/* Smartphones (portrait and landscape) ----------- */
@media only screen and (min-device-width : 250px) and (max-device-width : 768px) {
    .btn_container_1, .btn_container_2{
        width: 8vh;
        height: 8vh;
    }

    form > p:has(label){
        display: flex;
        justify-content: space-between;
    }

    label{
        width: 35vw;
    }

    form > p:has(label){
        span{
            display: none;
        }
    }

    .city_container{
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .form_choice{
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 90%;
        left: 5%;
        min-height: 15vh;
    }

    .to_column{
        flex-direction: column;
        height: 30vh;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .to_column > select{
        min-height: 5vh;
    }
}

/* iPads (portrait and landscape) ----------- */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {
    .btn_container_1, .btn_container_2{
        width: 8vh;
        height: 8vh;
    }
}
