
@font-face {
    font-family: Roboto;
    src: url('fonts/Roboto/Roboto-Light.ttf');
}
@font-face {
    font-family: OpenSans;
    src: url('fonts/OpenSans/OpenSans-Medium.ttf');
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Helvetica, sans-serif;
    font-family: Roboto, sans-serif;
    min-height: 100%;
}

body {
  background: #FFF;
  color: #222;
}

.alerts * {
    color: #333;
}

li {
    list-style: none;;
}

li > * {
    padding: 0;
}

#container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#locations-container {
    min-height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    width: fit-content;
    margin: 0 auto;
    padding: 0;
}

#root {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.location-box {
    height: 250px;
    width: 300px;
    border: 2px transparent solid;
    border-radius:  32px;
    padding: 32px;
    background-color: #0068ff10;
    transition: all 0.2s;
    margin: 5px;
    cursor: pointer;
    position: relative;
}

.location-box h2 {
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    font-size: 18px;
}

.location-box:hover {
    border-radius:  16px;
    background-color: #0068ff20;
}

.location-box span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 2px 0;
}

.location-box > span{
    display: block;
}

.location-box .name {
    font-weight: bold;
    margin-bottom: 16px;
    font-size: 28px;
    padding: 0;
    color: #0068ffDD;
    font-family: OpenSans, sans-serif;
}

span.icon {
    padding-left: 28px !important;
    position: relative;
}

span.icon::before {
    position: absolute;
    content: "";
    width: 18px;
    height: 18px;
    overflow: hidden;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-size: contain;
}

span.icon-lightnings::before {
    background-image: url('icons/lightning.svg');
    width: 22px;
    height: 22px;
}

span.icon-radar::before {
    background-image: url('icons/radar.svg');
}

span.icon-distance::before {
    background-image: url('icons/near_me.svg');
}

span.icon-direction::before {
    background-image: url('icons/explore.svg');
}

span.icon-time::before {
    background-image: url('icons/schedule.svg');
}

span.icon-timer::before {
    background-image: url('icons/timer.svg');
}

/* .header {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    margin: 10px 0;
}

.header > * {
    padding: 0 20px;
} */

.img-icon {
    cursor: pointer;
    opacity: 0.7;
    margin-bottom: 20px;
}

.links {
    box-sizing: border-box;
    width: calc(100% - 64px);
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 0 40px;
    position: absolute;
    bottom: 10px;
}

.links .link {
    width: 25px;
    height: 25px;
    transition: all 0.3s;
    padding: 10px 20px;

}

.links .link:hover {
    opacity: 0.7;
    transform: scale(1.3);
}

.info {
    position: relative;
}

.info .alertMessage {
    position: absolute;
}

.lightningsData > span {
    display: block;
}

.alerts {
    position: absolute;
    right: 32px;
    top: 32px;
    display: flex;
    flex-direction: column;
}

.alert {
    display: block;
    margin: 3px 0;
    padding: 3px 6px;
    padding-right: 8px;
    border-radius: 16px;
    font-size: 15px;
    overflow: hidden;
}

.alert span.icon {
    padding-left: 22px !important;
    text-align: right;
    width: 100%;
    display: block;
    box-sizing: border-box;
}

.alert span.icon::before {
    margin-left: 4px !important;
}

.lvl1 {
    background-color: #ffe042;
}

.lvl2 {
    background-color: #ff9340;
}

.lvl3 {
    background-color: #ff1919;
}

span.icon-frost::before {
    background-image: url('icons/frost.svg');
}

span.icon-heat::before {
    background-image: url('icons/heat.svg');
}

span.icon-wind::before {
    background-image: url('icons/wind.svg');
}

span.icon-water-drop::before {
    background-image: url('icons/water_drop.svg');
}

span.icon-storm::before {
    background-image: url('icons/thunderstorm.svg');
}

span.icon-tornado::before {
    background-image: url('icons/tornado.svg');
}

/* @media (prefers-color-scheme: dark) {
    body {
        background: #222;
        color: #ddd;
    }

    .img-icon {
        filter: invert(1);
    }

    .lightningsData .icon:before {
        filter: invert(1);
    }

    
    .location-box {   
        background-color: #0068ff20;
    }
    .location-box:hover {
        background-color: #0068ff30;
    }
} */

.eggy {
    z-index: 10000;
}

.user-panel {
    font-size: 38px;
}

.user-panel {
    align-items: center;
}

.user-panel a {
    font-size: 28px;
}