:root {
    --Turqoise: #21CFBD;
    --Light-Sea-Green: #1DB1A8;
    --Prussian-Blue: #0A2D4A;
    --Space-Cadet-Dark: #1A173D;
    --Space-Cadet-Light: #2F2C4F;
    --Seasalt: #FAFAFA;
    --Silver: #C9C8C8;
    --Battleship-Gray: #9B9B9B;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.menu {
    display: none;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    width: 100%;
    height: 100vh;
}

body::-webkit-scrollbar {
    display: none;
}

.pop-up {
    position: fixed;
    background-color: white;
    padding: 15px 30px;
    color: var(--Space-Cadet-Dark);
    top: 50px;
    z-index: 2;
}

.cross-icon {
    margin-left: 32px;
    cursor: pointer;
}

nav {
    width: 100vw;
    display: flex;
    background-color: var(--Space-Cadet-Dark);
    justify-content: space-between;
    align-items: center;
    color:  var(--Seasalt);
}

.logo {
    font-size: 1.7em;
    font-weight: bold;
    letter-spacing: 1px;
    margin-left: 20px;
    width: 50%;
    height: 100%;
}

.logo a {
    text-decoration: none;
    color: var(--Seasalt);
}

.nav-btn-container {
    display: flex;
    list-style: none;
    width: 70%;
    justify-content: space-evenly;
    align-items: center;
}

.nav-btn-container li {
    font-size: 1.1em;
    transition: 0.2s;
    cursor: pointer;
}

.nav-btn-container .active, .nav-btn-container li:hover, .read-option-container > li:hover, .menu:hover {
    background-color: var(--Space-Cadet-Light);
}

.nav-btn-container li a {
    display: block;
    padding: 15px 30px;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: var(--Seasalt);
}

.read-btn {
    position: relative;
}

.read-option-container {
    display:  none;
    position: absolute;
    left: -50%;
    background-color: var(--Space-Cadet-Light);
    padding: 10px;
    z-index: 1;
}

.read-option-container li {
    list-style: none;
    cursor: auto;
    padding: 10px 20px;
    transition: 0.2s;
}

.read-option-container li:hover {
    background-color: var(--Space-Cadet-Dark);
    border-radius: 10px;
}

.read-btn:hover .read-option-container {
    display: block;
}

.search-box {
    position: relative;
    width: 400px;
    background-color: var(--Seasalt);
    border-radius: 12px;
}

.row {
    display: flex;
    align-items: center;
}

#input-box {
    border-radius: 12px;
    font-size: 1.1em;
    background-color: var(--Seasalt);
    width: 400px;
    border: none;
    outline: none;
    padding: 10px;
}

label {
    position: absolute;
    right: 10px;
    top: 10px;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
}

.result-box {
    max-height: 300px;
    overflow-y: scroll;
    position: absolute;
    width: 400px;
    color: black;
    background-color: var(--Seasalt);
    box-shadow: 5px 5px 10px var(--Battleship-Gray);
    border-radius: 10px;
}

.result-box ul li {
    list-style: none;
    border-radius: 5px;
    color: var(--Space-Cadet-Dark);
    transition: 0.2s;
}

.result-box ul li a {
    color: var(--Space-Cadet-Dark);
}

.result-box ul li:hover {
    color: var(--Seasalt);
}

.result-box ul li:hover a {
    color: var(--Seasalt);
}

.search-icon {
    width: 25px;
    color: var(--Space-Cadet-Dark);
    font-size: 1.3em;
}

@media (max-width: 1190px) {
    .logo {
        font-size: 1.5rem;
        width: 16%;
    }

    .nav-btn-container {
        width: 89%;
    }

    .nav-btn-container li {
        font-size: 0.9rem;
    }

    .read-btn:hover .read-option-container {
        display: none;
    }

    .search-box {
        width: 300px;
    }

    #input-box {
        font-size: 0.9rem;
    }

    label {
        height: 16px;
    }

    .result-box {
        width: 300px;
    }
}

@media (max-width: 1024px) {
    .logo {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    nav {
        height: 40px;
    }

    .menu {
        display: block;
        margin-right: 20px;
        padding: 10px 15px;
    }
    
    .nav-btn-container {
        position: absolute;
        flex-direction: column;
        background-color: var(--Space-Cadet-Light);
        color: var(--Seasalt);
        width: 200px;
        top: 40px;
        right: 0;
        padding: 10px;
        transform: translateX(400px);
    }

    .search-box {
        max-width: 190px;
    }

    #input-box {
        max-width: 190px;
    }

    label {
        right: 0;
        top: 10px;
    }
}

@media (max-width: 375px) {
    .pop-up {
        max-width: 300px;
        font-size: 0.7rem;
    }
}