﻿/* Bordered form */
form, html {
    border:0;
    background-color: #F1F1F1;
    height:100%;
}
body {
    margin: 0;
    height:100%;
}

* {
    box-sizing: border-box;
    font-family:Tahoma, Verdana, Arial, sans-serif;
}

.Testo-Centr {
    text-align:center;
    width: 100%;
    font-size:larger;
}

.Testo {
    text-align:center;
    font-size:medium;
}

/* Full-width inputs */
input[type=text], input[type=password] {
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px; 
    box-sizing: border-box;
    resize:vertical;
}

.separ {
    height:30px;
}
.corpo {
    height:inherit;
    width: 80%;
    min-width:300px;
    margin:0 auto;
    background-color:white;
    box-shadow: 0 9px 0px 0px white, 0 -9px 0px 0px white, 12px 0 15px -4px rgba(31, 73, 125, 0.8), -12px 0 15px -4px rgba(31, 73, 125, 0.8);
    overflow:auto;
}
label {
    padding: 12px 12px 12px 0;
    display: inline-block;
}

/* Set a style for all buttons */
.button {
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    height: 45px;
}

.buttonback {
    background-color: rgb(27, 103, 198);
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    height: 45px;
}

/* Add a hover effect for buttons */
.button:hover .buttonback:hover {
    opacity: 0.8;
}

/* Center the avatar image inside this container */
.imgcontainer {
    text-align: center;
/*    margin: 24px 0 12px 0; */
    min-height: 126px;
    max-height: 240px;
    overflow: hidden;
    text-align: center;
}

/* Avatar image */
img.avatar {
    width: 100%;
    max-height: 180px;
    max-width: 470px;
    /*border-radius: 50%; */
}

/* Add padding to containers */
.container {
    padding: 16px;
/* box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);*/ 

}

.col-25 {
    float: left;
    width: 25%;
    margin-top: 6px;
    margin-bottom:6px;
}

.col-50 {
    float: left;
    width: 50%;
    margin-top: 6px;
    margin-bottom:6px;
}

.col-75 {
    float: left;
    width: 75%;
    margin-top: 6px;
}

.col-100 {
    float: left;
    width: 100%;
    margin-top: 6px;
    margin-bottom:6px;
}


.hide {
    display: none;
}

.errore {
    padding: 4px 5px;
    margin: 8px 0;
    display: inline-block;
    color: #D8000C;
    background-color: #FFD2D2;
    box-sizing: border-box;
    vertical-align:middle;
    border-radius: 4px;
    width: 75%;
}

.erroreCentr {
    padding: 4px 5px;
    margin: 8px 0;
    display: inline-block;
    color: #D8000C;
    background-color: #FFD2D2;
    box-sizing: border-box;
    vertical-align:middle;
    border-radius: 4px;
    text-align:center;
    width: 100%;
}

span.errore {
    width:100%;
}

.mess {
    padding: 4px 5px;
    margin: 8px 0;
    display: inline-block;
    color: #FFFFFF;
    background-color: #63c0df;
    box-sizing: border-box;
    vertical-align:middle;
    border-radius: 4px;
    width: 75%;
}

span.mess {
    width:100%;
}

/* Clear floats after the columns */
.row:after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive layout - when the screen is less than 600px wide, make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 768px) {
    .col-25, .col-50, .col-75, input[type=submit] {
        width: 100%;
        margin-top: 0;
    }

    .corpo {
        width: 95%;
        box-shadow: none;
    }

    label {
        padding: 24px 12px 0px 0;
    }
    
}