/**
  Rui Santos
  Complete project details at https://RandomNerdTutorials.com/cloud-weather-station-esp32-esp8266/

  Permission is hereby granted, free of charge, to any person obtaining a copy
  of this software and associated documentation files.

  The above copyright notice and this permission notice shall be included in all
  copies or substantial portions of the Software.
**/

body {
    width: 60%;
    margin: auto;
    text-align: center;
    font-family: Arial;
    top: 50%;
    left: 50%;
    background-color: #181A1B;
    color: #e1e1ff;
}

@media screen and (max-width: 800px) {
    body {
        width: 100%;
    }
}

table {
    margin-left: auto;
    margin-right: auto;
}

div {
    margin-left: auto;
    margin-right: auto;
}

h2 {
    font-size: 2.5rem;
    color: #e1e1ff;
}

.header {
    padding: 1rem;
    margin: 0 0 2rem 0;
    background: #1C1E1F;
    color: #e1e1ff;
}

h1 {
    font-size: 2rem;
    font-family: Arial, sans-serif;
    text-align: center;
    text-transform: uppercase;
    color: #e1e1ff;
}

.content {
    display: flex;
}

@media screen and (max-width: 500px)
/* Mobile */

    {
    .content {
        flex-direction: column;
    }
}

.mask {
    position: relative;
    overflow: hidden;
    display: block;
    width: 12.5rem;
    height: 6.25rem;
    margin: 1.25rem;
}

.semi-circle {
    position: relative;
    display: block;
    width: 12.5rem;
    height: 6.25rem;
    background: linear-gradient(to right, #3498db 0%, #05b027 33%, #f1c40f 70%, #c0392b 100%);
    border-radius: 50% 50% 50% 50% / 100% 100% 0% 0%;
}

.semi-circle::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    z-index: 2;
    display: block;
    width: 8.75rem;
    height: 4.375rem;
    margin-left: -4.375rem;
    background: #181A1B;
    border-radius: 50% 50% 50% 50% / 100% 100% 0% 0%;
}

.semi-circle--mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 12.5rem;
    height: 12.5rem;
    background: transparent;
    transform: rotate(120deg) translate3d(0, 0, 0);
    transform-origin: center center;
    backface-visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.semi-circle--mask::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0%;
    z-index: 2;
    display: block;
    width: 12.625rem;
    height: 6.375rem;
    margin: -1px 0 0 -1px;
    background: #181A1B;
    border-radius: 50% 50% 50% 50% / 100% 100% 0% 0%;
}

.gauge--2 .semi-circle {
    background: #3498db;
}

.gauge--2 .semi-circle--mask {
    transform: rotate(20deg) translate3d(0, 0, 0);
}

#tableReadings {
    border-collapse: collapse;
    border-color: #5D6468;
}

#tableReadings td, #tableReadings th {
    border: 1px solid #181A1B;
    padding: 10px;
    border-color: #5D6468
}

#tableReadings tr:nth-child(even) {
    background-color: #1C1E1F;
    border-color: #5D6468
}

#tableReadings tr:hover {
    background-color: #486581
}

#tableReadings th {
    padding: 10px;
    background-color: #102a43;
    color: white;
    border-color: #5D6468;
}

select {
    width: relative;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    background-color: #515151;
    color: #e1e1ff;
    text-align: center;
}

input[type=button], input[type=submit], input[type=reset], input[type=number]{
    border: none;
    padding: 8px 15px;
    text-decoration: none;
    margin: 4px 2px;
    border-radius: 4px;
    cursor: pointer;
    background-color: #515151;
    color: #e1e1ff;
}

input[type=text], input[type=password]  {
    background-color: #515151; 
    color: #e1e1ff;
    border-radius: 4px;
    text-align: center;
}

.form-group {
    margin-bottom: 1rem
}

.form-control {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #e1e1ff;
    background-color: #515151;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out
}

.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out
}

.btn:focus, .btn:hover {
    text-decoration: none
}



.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, .075)
}