@font-face {
    font-family: Amazon Ember;
    src: url("../fonts/AmazonEmber_Rg.ttf");
    font-weight: normal;
}
@font-face {
    font-family: Amazon Ember;
    src: url("../fonts/AmazonEmber_Bd.ttf");
    font-weight: bold;
}
@font-face {
    font-family: Amazon Ember;
    src: url("../fonts/AmazonEmber_Lt.ttf");
    font-weight: lighter;
}

body, html {
    color: #000000;
    font-family: "Amazon Ember", Arial, sans-serif;
}

body {
    background-image: url("../imgs/background.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #000000;
    
}

.grid-container {
    display: grid;
    grid-template-columns: 20% 80%;
    grid-template-rows: 20% 80%; /*firefox ok 30% 70%;*/
    grid-template-areas: "logo plant" "login overlay";
  }


.logo {
    grid-area: logo;
    margin: 2rem;

    display: block;
    width: 20vw;
}

.logo img, .plant_logo img {
    width: 100%;
}

.plant_logo {
    grid-area: plant_logo;
    display: block;
    width: 10vw;/*9vw;*/
    padding-left: 2rem;
    padding-top: .3rem;
}

.plant_name {
    grid-area: plant_name;
    font-size: 40px;
    font-size: 2.6vw;
    font-weight: bolder;
    color: rgb(35, 47, 62);
    text-align: center;
    margin: auto 0;
}

.login {
    grid-area: login;
}

.plant {
    grid-area: plant;

    display: grid;
    grid-template-columns: 20% 80%;
    grid-template-rows: none;
    grid-gap: 0 2vw;
    grid-template-areas: "plant_logo plant_name";

    margin: 2rem 4rem auto auto;
    width: 65vw;
    
    background-color: rgba(251, 251, 251, 0.6); /*rgb(35, 47, 62, 0.5);*//*#232f3e;*/
    -webkit-border-radius: 40px;
    -moz-border-radius: 40px;
    border-radius: 40px;
    display: none;
}
/* https://grid.layoutit.com/ */
.overlay {
    grid-area: overlay;
    display: grid;
    grid-template-columns: 35% 45% 20%;
    grid-template-rows: 10% 10% 10% 10% 40%;
    grid-gap: 2vw 0;
    grid-template-areas: "power power_value power_unit" "production production_value production_unit" "co2 co2_value co2_unit" "trees trees_value trees_unit" "graph graph graph";

    /*background-image: url("../imgs/overlay.png");
    background-repeat: no-repeat;
    width: 815px;
    height: 560px;
    */
    /*background-color: rgba(255, 153, 0, 0.6); arancio prima versione*/
    background-color: rgba(13, 168, 225, 0.5);
    -webkit-border-radius: 40px;
    -moz-border-radius: 40px;
    border-radius: 40px;
    width: 65vw;
    height: 38vw;/*36*/
    margin: 0 4rem auto auto;
    padding: 1.5rem 0 2.5rem 0;/*1.5rem 0 1.5rem 0;*/
    display: none;
}

.power {
    grid-area: power;
}

.production {
    grid-area: production;
}

.co2 { 
    grid-area: co2;
}

.trees { 
    grid-area: trees;
}

.power_value {
    grid-area: power_value;
}

.production_value {
    grid-area: production_value;
}

.co2_value {
    grid-area: co2_value;
}

.trees_value {
    grid-area: trees_value;
}

.power_unit {
    grid-area: power_unit;
}

.production_unit {
    grid-area: production_unit;
}

.co2_unit {
    grid-area: co2_unit;
}

.trees_unit {
    grid-area: trees_unit;
}

.types {
    margin: auto auto;
    text-align: center;
    font-size: 26px;
    font-size: 1.5vw;
    font-weight: bold;
}

.values {
    color: #fff;/*#f0e446;*/
    font-size: 50px;
    font-size: 3vw;
    font-weight: bold;
    background-color: rgb(35, 47, 62); /*blu amazon #232f3e;*/ /*grigio #313131;*/
    text-align: right;
    padding: 0 0.5vw;
    
}

.units {
    margin: auto 0 auto 1rem;
    font-size: 46px;
    font-size: 3vw;
    font-weight: bold;
}

.graph {
    grid-area: graph;
    /*height: 400px;
    max-height: 400px;*/
    width:100%;
    height:100%;
    margin: 1rem auto 0 auto;
    
}

/*start login section*/
.login-page {
    width: 360px;
    padding: 25vh 10vw 0 0;/*8% 0 0;*/
    margin: auto;

	top:0;
	bottom: 0;
	left: 0;
	right: 0;
}
.form {
    position: relative;
    z-index: 1;
    background: #FFFFFF;
    max-width: 360px;
    margin: 0 auto 100px;
    padding: 45px;
    text-align: center;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);
}
.form input {
    /*font-family: "Roboto", sans-serif;*/
    outline: 0;
    background: #f2f2f2;
    width: 100%;
    border: 0;
    margin: 0 0 15px;
    padding: 15px;
    box-sizing: border-box;
    font-size: 14px;
}
.form button {
    /*font-family: "Roboto", sans-serif;*/
    text-transform: uppercase;
    outline: 0;
    background: #4CAF50;
    width: 100%;
    border: 0;
    padding: 15px;
    color: #FFFFFF;
    font-size: 14px;
    -webkit-transition: all 0.3 ease;
    transition: all 0.3 ease;
    cursor: pointer;
}
.form button:hover,.form button:active,.form button:focus {
    background: #43A047;
}

.form .message {
    padding: 1rem 0 0;
    color: #ff0000;
}

/*end login section*/
 