html,
body {
    background-color: #000033;
    background-image: linear-gradient(to bottom right, #000033, #333399);
    background-attachment: fixed;
    font-family: "Roboto", sans-serif;
	font-weight: 400;
	font-style: normal;
}

* {
    box-sizing: border-box;
}

.column {
    float: left;
    width: 46%;
}

.row:after {
    content: "";
    display: table;
    clear: both;
}

.currentrate {
    color: red;
    font-size: large;
}

.insidebox {
    border: 3px solid black;
    background: paleturquoise;
}

.chartContainer {
	background-color: #FFF;
	padding: 20px;
	border-radius: 20px;
	text-align: center;
    margin: auto;
    max-width: 1200px;
    max-height: 800px;
}

/* Style the tab */
.tab {
  overflow: hidden;
  display: flex;
}

/* Style the buttons that are used to open the tab content */
.tab button {
  background-color: purple;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  margin-right: 5px;
  transition: 0.3s;
  border-radius: 15px 15px 0px 0px;
  font-size: 16px;
  color: white;
  font-weight: bold;
}

.tab .tab-text {
    color: #dddddd;
    margin-left: 10px;
    font-size: 24px;
    font-weight: bold;
    align-self: center;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: darkblue;
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: violet;
  color: black;
}

/* Style the tab content */
.tabcontent {
  background-color: violet;
  display: none;
  padding: 6px 12px;
  border-top: none;
  border-radius: 0px 15px 15px 15px;
  padding-top: 20px;
}

/* Price pills */
.priceOuter {
	display: inline-block;
	border-radius: 100px;
	padding-left: 10px;
	color: white;
}
.priceInner {
	display: inline-block;
	border-radius: 100px;
	margin-left: 10px;
	padding: 5px 10px;
	color: white;
	font-weight: bold;
}
.priceOuterNow {
    filter: brightness(125%);
}
.priceOuterRed {
	background-color: darkred;
}
.priceInnerRed {
	background-color: red;
}
.priceOuterOrange {
	background-color: darkorange;
}
.priceInnerOrange {
	background-color: orange;
}
.priceOuterGreen {
	background-color: seagreen;
}
.priceInnerGreen {
	background-color: green;
}
.priceOuterBlue {
	background-color: darkblue;
}
.priceInnerBlue {
	background-color: skyblue;
}
.priceOuterGrey {
    background-color: grey;
}
.priceInnerGrey {
    background-color: darkgrey;
}
.withSC.lowest,
.withoutSC.lowest,
.withSCelec.lowest,
.withoutSCelec.lowest,
.withSCgas.lowest,
.withoutSCgas.lowest,
.withSCexport.lowest,
.withoutSCexport.lowest {
	font-weight: bold;
    background-color: rgba(0, 128, 0); /* Green with 50% transparency */
}

/* Toast popup for status messages */
#toast {
  visibility: hidden;
  min-width: 250px;
  margin-left: -125px;
  color: #fff;
  text-align: center;
  border-radius: 2px;
  padding: 16px;
  position: fixed;
  z-index: 1;
  left: 50%;
  top: 30px;
  font-size: 17px;
  white-space: pre-line;
}

#toast.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
  from {top: 0; opacity: 0;} 
  to {top: 30px; opacity: 1;}
}

@keyframes fadein {
  from {top: 0; opacity: 0;}
  to {top: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
  from {top: 30px; opacity: 1;} 
  to {top: 0; opacity: 0;}
}

@keyframes fadeout {
  from {top: 30px; opacity: 1;}
  to {top: 0; opacity: 0;}
}

/* Fancy sliders instead of checkboxes */
.toggle {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 17px;
}

.toggle input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: gray;
    transition: .4s;
    border-radius: 17px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 13px;
    width: 13px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: green;
}

input:checked+.slider:before {
    transform: translateX(13px);
}

.tab-container-elec, .tab-container-gas, .tab-container-export {
    text-align: center;
    padding-bottom: 10px;
}
.tab-container-settings, .tab-container-predict, .tab-container-rightnow {
    text-align: center;
}
.smalltab-elec, .smalltab-gas, .smalltab-export, .smalltab-settings, .smalltab-predict, .smalltab-rightnow {
    display: inline-block;
    color: #FFF;
    text-align: center;
    padding: 5px 10px;
    cursor: pointer;
}
.smalltab-elec.active, .smalltab-gas.active, .smalltab-export.active, .smalltab-settings.active, .smalltab-predict.active, .smalltab-rightnow.active {
    font-weight: bold;
    background-color: rebeccapurple;
}
.smalltab-content-elec, .smalltab-content-gas, .smalltab-content-export, .smalltab-content-settings, .smalltab-content-predict, .smalltab-content-rightnow {
    display: none;
    text-align: center;
    margin-top: 5px;
}
.smalltab-content-elec.active, .smalltab-content-gas.active, .smalltab-content-export.active, .smalltab-content-settings.active, .smalltab-content-predict.active, .smalltab-content-rightnow.active {
    display: block;
}
.date-links-elec, .date-links-gas, .date-links-export {
    color: #FFF;
}

/* Make things spin (for loading animations) */
.spinfox {
    display: inline-block;
    animation-name: spin;
    animation-duration: 1000ms;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}
@keyframes spin {
    from {
        transform:rotate(0deg);
    }
    to {
        transform:rotate(360deg);
    }
}

.pulsefox {
    display: inline-block;
    animation-name: pulse;
    animation-duration: 1500ms;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    top: 150%;
    left: 50%;
    margin-left: -60px;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent black transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
}

h1 {
    color: white;
}

.slider-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 1em 0;
}

.round-button {
    width: 48px;
    height: 48px;
    font-size: 24px;
    border-radius: 50%;
    border: none;
    background-color: rebeccapurple;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    font-weight: bold;
}

.round-button:active {
    background-color: mediumpurple;
}

input[type="range"] {
    flex-grow: 1;
    height: 30px;
    accent-color: green;
}

.rightNowBox {
    display: inline-block;
    color: #FFF;
    background-color: purple;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    margin: 0 20px;
    min-width: 300px;
}

.rightNowMain,
.rightNowComingUp {
    display: inline-block;
    text-align: center;
}

.rightNowTitle,
.rightNowComingTitle {
    display: inline-block;
    font-size: 24px;
}

.rightNowRate {
    display: inline-block;
    font-size: 72px;
    font-weight: bold;
}

.rightNowUnit {
    display: inline-block;
    font-size: 32px;
}

.rightNowComingRate {
    display: inline-block;
    font-size: 16px;
}

.rightNowTariffName {
    padding-top: 10px;
    font-size: smaller;
    font-weight: bold;
}

.unknownRate {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 86px;
    min-width: 100px;

    vertical-align: middle;
    line-height: 0;
}

.unknownRateImage {
    height: 80px;
    width: auto;
    display: block;
}

.unknownRateQuestion {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    font-size: 48px;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 6px black;

    line-height: 1;
}

input[type="text"]:read-only {
    color: #64748b;
}

.live-button {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 0;
    background: #fff;
    color: #000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    font-size: 12px;
    line-height: 1;
    user-select: none;
    flex-shrink: 0;
}