*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html, body, #mainframe {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

#mainframe {
    display: grid;
    grid-template-rows: 60px 1fr 3rem;
}

#dashboard {
    background-image: url('./FeelsBeachClubHotel.webp');
    background-size: cover;
    overflow: scroll;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    flex-wrap: wrap;
    padding: 20px;
    gap: .5rem
}

#logo {
    height: 50%;
}

.header {
    background-color: gray;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-left: 50px;
    padding-right: 50px;
}

.footer {
    background-color: aqua;
}

.location {
    background-color: rgba(0,0,0,0.7);
    padding: 1rem;
    border-radius: 30px;
    height: fit-content;
    min-width: 30%;
    color: lightcyan;
    display: flex;
    flex-direction: column;
}

.loc1{
    width: 30%;
}
.loc2{
    width: fit-content;
}
.loc3{
    width: fit-content;
}

.istTempIst{
    font-size: 0.7rem;
    align-self: center;
    text-align: center;
    padding: 0;
    margin: 0;
}

.containerhead{
    padding-top: .3rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 0;
}

.location h1 {
    font-size: 1.3rem;
    padding: 0;
    margin: 0;
}
.heatareas {
    display: flex;
    flex-direction: row;
    gap: .2rem;
}
p {
    padding: 0;
    text-align: center;
    margin: 0;
    line-height: 1.2rem;
}
.icon{
    font-size: 30px;
}

.istContainer{
    display: flex;
}


.roomControl{
    background-color: rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    gap: .5rem;
    
    border: 2px solid black;
    border-radius: 20px;
    grid-template-rows: 1rem 1fr;
    padding: .5rem;
    width: 100%;
}

.roomControl h2{
    font-size: 1rem;
    margin: 0
}

.roomControlHead{
    grid-area: head;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem
}

.roomControlBody{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

img {
    height: 30px;
    padding: 0;
    margin: 0;
}

.roomControlElement{
    display: grid;
    grid-template-rows: 1.2rem 2rem 1.2rem;
    justify-content: center;
    align-items: center;
    gap: .3rem;
    padding: 0;
    margin: 0;
    width: 80px;
    justify-self: center;
    align-self: center;
}

.tempDesc{
    font-size: .57em;
}

.safe {
    display: flex;
    flex-direction: column;
    align-self: center;
    justify-self: center;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    padding: 0;
    margin: 0;
    background-color: rgba(0,0,0,0.7);
    width: 100%;
}

.icon{
    justify-self: center;
}

.tempVals{
    justify-self: center;
    align-self: center;
    justify-content: center;
    align-items: center;
    padding-left: 0;
    gap: 0;
    flex-direction: row;
    display: flex;
}
.tempVals p, .window p, .heater p{
    padding-left: 0;
    align-self: center;
    justify-self: center;
    line-height: 1.5;
}

.switch {
    display: flex;
    justify-content: center;
    align-items: center;
}

.toggle {
    display: none;
}

.toggle:checked+.toggleLabel {
    background-color: darkred;
}

.toggle:checked+.toggleLabel .ball{
    animation: slideOn 0.5s linear forwards;
}

.toggleLabel{
    display: inline-block;
    display: flex;
    background-color: blue;
    height: 1.8rem;
    width: 3rem;
    border-radius: 5rem;
    position: relative;
    cursor: pointer;
    border: 2px solid black;
}

.ball {
    height: 1.5rem;
    width: 1.5rem;
    background-color: white;
    position: absolute;
    left: 2px;
    top: .05rem;
    border-radius: 5rem;
    animation: slideOff 0.5s linear forwards;
}

.roomTools {
    display: flex;
    gap: .3rem;
}

.modeButton {
    background-color: rgba(0,0,0,0.7);
    border: 1px solid black;
    border-radius: 10px;
    height: 1.5rem;
    color: lightcyan;
    align-self: center;
    height: 2rem;
    padding-left: .5rem;
    padding-right: .5rem;
}

.maxButton:active{
    background-color: darkred;
}

.minButton:active{
    background-color: darkblue;
}

@keyframes slideOn {
    0% {
        transform: translateX(-.3rem) scale(1);
    }
    50% {
        transform: translateX(1.2rem) scale(1.5);
    }
    100% {
        transform: translateX(1.1rem) scale(1);
    }
}

@keyframes slideOff {
    0% {
        transform: translateX(2rem) scale(1);
    }
    50% {
        transform: translateX(1.5rem) scale(1.5);
    }
    100% {
        transform: translateX(0) scale(1);
    }
}