root {
    --bg-gray: rgba(0, 0, 0, .5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: System-ui;
}

body {
    max-width: 100vw;
    width: 100%;
    /* background: linear-gradient(0deg, #9c9feb, #595ef5); */
    /* background: linear-gradient(0deg, #f0a274, #f37126); */
    /* background: linear-gradient(0deg, #463d63, #140644); */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #111;
    color: #eee;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

header img {
    position: absolute;
    border-radius: 50%;
    height: 50px;
    width: 50px;
    padding: 5px;
    left: 30px;
    /* filter: invert(1); */
    cursor: pointer;
}

header img:hover {
    transition: box-shadow .5s;
    box-shadow: 0px 0px 10px #222 inset, 0px 0px 2px #222;
}

header ul {
    position: absolute;
    display: none;
    top: 70px;
    left: 30px;
    padding: 10px 30px;
    background: rgba(0, 0, 0, .8);
    z-index: 1;
    width: 30ch;
    box-shadow: 3px 3px 20px #000;
}

li>img {
    height: 30px;
    width: 30px;
    padding: 2px;
}

header ul li {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;

    list-style: none;

    padding: 15px 30px;
    text-transform: uppercase;
    cursor: pointer;
    height: 50px;
    width: 100%;
    transition: background .5s ease-in-out;
}

header ul li:hover {
    background: rgba(255, 255, 255, .2);
}

header ul li span {
    position: absolute;
    right: 30px;
    display: inline;
    font-size: 1rem;
    font-weight: 300;
    color: #eee;
    text-shadow: 1px 1px 5px #111;
    padding: 10px;
}

.showMenu {
    display: block;
    transition: showMenu .5s ease-in-out;
    animation-fill-mode: forwards;
}


@keyframes showMenu {
    0% {
        opacity: 0;
        height: 0;
    }

    100% {
        opacity: 1;
        height: 300px;
    }
}

header div.fechas {
    position: absolute;
    right: 50px;
    width: 50%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: end;
    gap: 20px;
}

header label input[id="fecha2"],
header label input[id="fecha"] {
    font-size: 1.5rem;
    padding: 10px 15px;
    color: #eee;
    border: none;
    background: rgba(255, 255, 255, .1);
    border-radius: 15px;
}

header label input[id="fecha"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

header label input[id="fecha2"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

header label input[id="fecha2"]:hover,
header label input[id="fecha"]:hover {
    transition: box-shadow .5s;
    box-shadow: 1px 1px 10px #eee inset;
}

main {
    margin-top: 100px;
    margin-bottom: 50px;
    width: 80vw;
    max-width: 900px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;

    border-radius: 25px;
    box-shadow: 2px 2px 20px #000;
}

main div[id="superior"] {
    color: #eee;
    width: 100%;
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: 1px 1px 10px #111 inset;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    padding-bottom: 50px;
}

main div[id="superior"] div[id="localizacion"] {
    display: flex;
    align-items: center;
    justify-content: center;
}

main div[id="superior"] div[id="localizacion"] p {
    width: 10ch;
    position: relative;
    top: -20%;
    padding-bottom: 10px;
    border-bottom: 5px solid #eee;
    border-top: 5px solid #eee;
    color: rgba(255, 255, 255, .8);
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin: 0;
}


main div[id="superior"] div[id="datos"] {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}


main div[id="superior"] div[id="datos"] div[id="temperatura"] {
    color: #fff;
    width: 100%;
    font-size: 8em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 1px 1px 5px #111;
}

main #masDatos {
    width: 100%;
    height: 100px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 35px;
}

.marcador {
    display: flex;
    height: 125px;
    width: 125px;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    border-radius: 50%;
    box-shadow: 1px 1px 3px #eee inset, -2px -2px 5px #000 inset;
}

.marcador p {
    color: rgba(255, 255, 255, .8);
    font-size: 1em;
    font-weight: 400;
    text-align: center;
    margin: 0;
    text-shadow: 1px 1px 5px #111;
}

#divDireccion {
    background-color: rgba(0, 0, 0, .5);
}

.marcador h3 {
    text-transform: uppercase;
    font-size: 1em;
    font-weight: 600;
    color: rgba(255, 255, 255, .8);
    text-shadow: 1px 1px 5px #111;
}

main div[id="inferior"] {
    background: #222;
    width: 100%;
    height: 50%;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
}

main div[id="inferior"] canvas {
    width: 100%;
    height: 100%;
    padding: 10px;
    margin: auto;
}

div[id="central"] {
    height: 50px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 1px 1px 10px #111 inset;
    padding: 20px 0px;
    width: 100%;
    height: 50px;
}

div[id="central"] span {
    white-space: nowrap;

    width: 100%;
    z-index: -1;
    font-size: 1.1em;
    font-weight: 300;
    color: rgba(255, 255, 255, .8);
    transform: translateX(110ch);
    animation: moverTexto 20s linear infinite;
    max-height: 24px;
}

@keyframes moverTexto {
    0% {
        transform: translateX(110ch);
    }

    100% {
        transform: translateX(-130ch);
    }
}


footer {
    width: 100%;
    height: 150px;
    background: #111;
    color: #eee;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0px 30px;
}

footer p {
    font-weight: 400;
    letter-spacing: .1em;
}

footer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: space-between;
    gap: 10px;
}

footer ul li a {
    color: #eee;
    text-decoration: none;
    font-weight: 300;
    text-shadow: 1px 1px 5px #111;
}

footer ul li a:hover {
    transition: color .5s ease;
    color: green;
}


@media screen and (min-width:600px) and (max-width: 1050px) {

    main {
        border-radius: 0;
    }

    main div[id="inferior"],
    main div[id="superior"] {
        border-radius: 0;
    }

    main div[id="superior"] div[id="datos"] {
        height: 100%;
    }

    main div[id="superior"] div[id="localizacion"] {
        display: none;
    }

    main div[id="superior"] div[id="datos"] div[id="temperatura"] {
        font-size: 7em;
    }

    main div[id="superior"] div[id="datos"] div[id="estado"] p {
        position: relative;
        top: 0px;
    }

    #divDireccion img {
        width: 50px;
        height: 50px;
    }

}

@media screen and (max-width: 600px) {

    main {
        border-radius: 0;
        width: 100vw;
        box-shadow: none;
        margin-top: 70px;
    }

    body {
        justify-content: start;
    }

    header img {
        position: absolute;
        border-radius: 50%;
        height: 35px;
        width: 35px;
        padding: 5px;
        left: 10px;
        /* filter: invert(1); */
        cursor: pointer;
    }

    header div.fechas {
        right: 5px;
        width: 80%;
        flex-direction: row;
        align-items: end;
        justify-content: center;
        gap: 2px;
    }

    header label input[id="fecha2"],
    header label input[id="fecha"] {
        right: 2px;
        font-size: .8rem;
        padding: 2px 5px;
        border-radius: 10px;
    }

    main div[id="superior"] {
        border-radius: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-bottom: 10px;
    }

    main div[id="inferior"] {
        border-radius: 0;
        height: auto;
    }

    main div[id="superior"] div[id="datos"] {
        height: 100%;
    }

    main div[id="superior"] div[id="localizacion"] {
        display: none;
    }

    main div[id="superior"] div[id="datos"] div[id="temperatura"] {
        padding-top: 20px;
        font-size: 15vw;
    }

    main div[id="superior"] div[id="datos"] div[id="estado"] p {
        font-size: 1em;
    }

    main div[id="superior"] div[id="datos"] div[id="estado"] p {
        position: relative;
        top: 0px;
    }

    header p {
        position: absolute;
        right: 0px;
        font-size: 1.5rem;
        width: 10ch;
    }

    main div[id="inferior"] {
        padding-top: 20px;
        width: 100%;
        height: 100%;
    }

    main div[id="inferior"] canvas {
        padding: 0px;
        margin: auto;
    }

    div #masDatos {
        gap: 5px;
        margin-top: 25px;
    }

    #masDatos h3 {
        font-weight: 400;
        font-size: .7em;
    }

    .marcador p {
        font-size: .8em;
        font-weight: 400;
    }

    footer {
        display: none;
    }

    .marcador {
        height: 90px;
        width: 90px;
        border-radius: 10px;

    }

    #divDireccion img {
        width: 50px;
        height: 50px;
    }

}

@media only screen and (max-height: 600px) and (orientation: landscape) {

    body {
        justify-content: start;
    }

    main {
        position: absolute;
        top: 0px;
        width: 100vw;
        box-shadow: none;
    }

    main div[id="superior"] {
        border-radius: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-bottom: 10px;
    }

    main div[id="inferior"] {
        border-radius: 0;
        height: auto;
    }


    main div[id="superior"] div[id="datos"] {
        height: 100%;
    }

    main div[id="superior"] div[id="localizacion"] {
        display: none;
    }

    main div[id="superior"] div[id="datos"] div[id="temperatura"] {
        padding-top: 20px;
        font-size: 15vw;
    }

    main div[id="superior"] div[id="datos"] div[id="estado"] p {
        font-size: 1em;
    }

    main div[id="superior"] div[id="datos"] div[id="estado"] p {
        position: relative;
        top: 0px;
    }

    header p {
        position: absolute;
        right: 0px;
        font-size: 1.5rem;
        width: 10ch;
    }

    main div[id="inferior"] {
        padding-top: 20px;
        width: 100%;
        height: 100%;
    }

    main div[id="inferior"] canvas {
        padding: 0px;
        width: 100%;
        height: auto;
        margin: auto;
    }

    div[id="central"] {
        background: transparent;
    }

    div[id="central"] span {
        color: #EEE;
        transform: translateX(110%);
        animation: moverTexto 15s linear infinite;
    }

    @keyframes moverTexto {
        0% {
            transform: translateX(110%);
        }

        100% {
            transform: translateX(-135%);
        }
    }

    footer {
        display: none;
    }

}