@import url('https://fonts.googleapis.com/css2?family=Michroma&display=swap');

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;

    font-family: "Michroma", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* Settings */
#settingsBtn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,.7);
    color: white;
    cursor: pointer;
    font-size: 22px;
}

#settingsMenu {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 320px;
    padding: 20px;
    background: rgba(30,30,30,.95);
    color: white;
    border-radius: 12px;
    z-index: 1002;

    display: none;
}

#settingsMenu.open {
    display: block;
}

#settingsMenu input {
    width: 100%;
    margin-top: 5px;
    margin-bottom: 15px;
    padding: 8px;
    box-sizing: border-box;
}

.location-wrapper {
    position: relative;
    display: block;
}

#locationResults {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;

    display: none;

    background: rgba(40,40,40,.98);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 8px;

    max-height: 220px;
    overflow-y: auto;

    z-index: 2000;
}

#locationResults .result {
    padding: 10px 12px;
    cursor: pointer;
    transition: background .15s;
}

#locationResults .result:hover,
#locationResults .selected {
    background: rgba(255,255,255,.12);
}

#locationResults .city {
    font-weight: bold;
}

#locationResults .country {
    opacity: .7;
    font-size: .9em;
}

/* Slideshow */
#slideshow {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

}

.slide {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0;

    transition: opacity 2s ease;
}

.slide.active {
    opacity: 1;
}

/* Weather */
#weather {
    position: fixed;
    top: 20px;
    right: 60px;

    z-index: 1000;

    color: white;
    text-align: center;

    text-shadow: 2px 2px 6px rgba(0,0,0,.8);

    user-select: none;
}

#temperature {
    font-size: 48px;
    font-weight: bold;
    line-height: 1;
}

#icon {
    font-size: 38px;
    line-height: 1;
}
#humidity {
    font-size: 18px;
    margin-top: 5px;
    opacity: .9;
}
