/* Reset */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    }
    
    input, button {
        all: unset;
    }
    
    body {
        position: relative;
        height: 100vh;
        max-width: 100vw;
    }
    
    /* General */
    
    nav {
    display: flex;
    align-items: center;
    justify-content: end;
    margin: 1rem 2rem;
    gap: 1rem;
    
    & span {
        font-size: .875rem;
    line-height: 1.75rem;
        cursor: pointer;
    
        &:hover {
            text-decoration: underline;
                }
    
    }
    
    & figure {
        cursor: pointer;
    position: relative;
    border-radius: 999px;
    display: grid;
    align-items: center;
    justify-content: center;
    padding: .5rem;
    transition: background-color 200ms ease-in-out;
    
        & svg {
    width: 1.5rem;
    color: #5f6368;
    
    & path { 
    fill: currentColor;
    }
        }
    
    & figcaption {
        position: absolute;
        visibility: hidden;
        top: 2.75rem;
        left: -1.5rem;
        width: max-content;
        background-color: rgba(60, 64, 67, .9);
        color: #fff;
        font-size: .75rem;
        font-weight: 500;
        padding: .25rem .5rem;
        border-radius: .25rem;
        letter-spacing: .8px;
        line-height: 1rem;
        
    }
    
    
    &:hover {
        background-color: rgba(60, 64, 67, .08);
        
        & figcaption {
            transition: all 500ms 600ms ease;
            visibility: visible;
        }
    
        }
    }
        div {
            cursor: pointer;
            background-color: #0b57d0;
            color: #fff;
            padding: .675rem .75rem;
            border-radius: 100px;
            font-weight: 500;
            line-height: 1.1rem;
            transition: all 100ms linear;
    
    &:hover {
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .3), 0 1px 3px 1px rgba(0, 0, 0, .15);
    }
    
        }
    
    
    
    }
    
    main {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    gap: 1.5rem;
    & img {
        margin-top: 3rem;
    }
    
    & div#search-bar {
    border: 1px solid #dfe1e5;
    width: 36rem;
    border-radius: 1.75rem;
    padding: .75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #fff;
    box-shadow: -1px 1px 10px #dfe1e5f8;
    cursor: pointer;
    transition: all 200ms ease;
    
    & img {
        width: 1.25rem;
       margin-block: auto;
    }
    
    & input {
        width: 100%;
    }
    
    &:hover {
        box-shadow: -1px 1px 10px #00000039;
    }
    
    }
    
    & #buttons {
        display: flex;
        align-items: center;
    gap: 1rem;
    
        & button {
            background-color: #f8f9fa;
            height: 2.5rem;
            padding: 0 1rem;
            border-radius: .25rem;
            cursor: pointer;
            color: #3c4043;
            font-size: .875rem;
            border: 1px solid #f8f9fa;
    transition: all 200ms ease;
    
            &:hover {
    border: 1px solid #dadce0;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .1);
            }
    
        }
    }
    
    }
    
    div#night {
       position: absolute;
       bottom: 6rem;
       left: 2.75rem;
    }
    
    div#check {
        position: absolute;
        bottom: 2.5rem;
        left: 2.5rem;
    width: 6rem;
    height: 3rem;
    border-radius: 2rem;
    background-color: #d6e3ff;
    padding: .15rem;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 1px 2px;
    
    & input {
        background-color: rgb(0, 0, 0);
        width: 2.75rem;
        height: 100%;
        border-radius: inherit;
        cursor: pointer;
        transition: transform 300ms ease-in-out;
    
        &:checked {
            transform: translateX(2.9rem);
        }
    
    }
    
    }
    
    div#button {
    position: absolute;
    bottom: 2.5rem;
    right: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    background-color: #d6e3ff;
    padding: 1rem;
    border-radius: 2rem;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 1px 2px;
    transition: all 200ms ease;
    cursor: pointer;
        & img {
            width: 1rem;
        }
    
        &:hover {
            filter: brightness(0.95);
        }
    
    }
    
    @media (700px < width < 1024px) {
        body {
            height: clamp(40rem, 60vh, 60vh);
        }
    }
    
    @media (width <= 700px) {
        body {
            height: 90vh;
        }
        main {
            & div#search-bar {
                width: 90vw;
            }
        }
    }
    
    @media (width < 360px) {
    body {
        height: 30rem;
    }
    
    nav {
        & div {
            text-wrap: nowrap;
        }
    }
    
    
    }