@charset "UTF-8";

/***************************************/
/****** Global Configs *****************/
/***************************************/

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* reset css*/
*{          
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
    font-size: min(1rem, 4vw);
}

h1 {
    font-size: min(2rem, 8vw);
}
h2{
    font-size: min(1.5rem, 6vw);
}

body {
    background-image: linear-gradient(
        125deg, 
        var(--regular-blue), 
        var(--dark-blue)
    );
    background-attachment: fixed;
}

:root {
    --contrast-color: #F1A208;
    --light-blue: #9FBBCC;
    --regular-blue: #7A9CC6;
    --dark-blue: #3E5C76;
    --font-title: Verdana, Geneva, Tahoma, sans-serif;
}

/*******************************************
************** Header Styles **************
*******************************************/
header {
    display: flex;
    padding: 10px 20px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
}

header h1, menu, .menu-element{
    text-align: center;
    display: inline;
    color: black;
    text-decoration: none;
}
header h1 {
    font-family: var(--font-title);
    letter-spacing: -2px;
}

header menu {
    display: flex;
    width: 40%;
    min-width: fit-content;
    justify-content: space-around;
}

header menu .menu-element {
    padding: 10px;
    border-radius: 5px;
    overflow: hidden;
    transition: 0.4s ease;
}


header menu .menu-element:hover, .selected {
    font-weight: bold;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.842);
    background-color: black;
}


/*******************************************
************** Main Styles *****************
*******************************************/

main article{
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 20px;
}


.card-summary{
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    justify-content: center;
    padding: 20px;
    margin: 10px;
    border-radius: 10px;
    min-width: 200px;
    width: 30%;
    height: max-content;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: 0.5s ease;
    translate: -100%;
    opacity: 0;

}

.show {
    translate: 0;
    opacity: 1;
}

.card-summary:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
    cursor: pointer;
}
.icons {
    font-size: min(3rem, 12vw);
    border-radius: 50%;
    padding: 1%;
    position: absolute;
    right: 10%;
    top: 20px;
}

span.icons#light {
    background-color: rgba(255, 217, 0, 0.399);
    color: rgb(254, 173, 24);
}

span.icons#water {
    background-color: rgba(0, 162, 255, 0.397);
    color: rgb(0, 94, 255);
}

span.icons#gas {
    background-color: rgba(255, 0, 0, 0.397);
    color: rgb(255, 0, 0);
}

.grafic {
    width: 100%;
    height: auto;
}

.total-summary {
    display: block;
    position: relative;
    width: 90%;
    height: max-content;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    margin: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
}

select#isummary {
    position: absolute;
    right: 2%;
    top: 10px;
    padding: 10px;
    border-radius: 7px;
    margin-top: 10px;
    background-color: rgba(16, 16, 16, 0.907);
    color: white;
    border: none;
    font-size: 1rem;
}