.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
}


/* Styles for the logo text */
.log .logo-text {
    font-size: 24px;
    color: var(--text);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

/* Hover effect for the logo text */
.log .logo-text:hover {
    color: #FFFFFF;
}

.links {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 20px;
}

.searchButton {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--bg);
    color: var(--text);
    border-color: #888;
    padding: 5px;
    border-radius: 10px;
    cursor: pointer;
}


.spanSearch {
    padding-left: 0;
}


.toggle {
    width: 40px;
    height: 20px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: var(--bgSoft);
    border: 0.5px solid var(--textSoft);
    padding: 5px;
    position: relative;
}


.ball {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    position: absolute;
    left: 0;
    background-color: var(--textSoft);
    border: 1px solid var(--bgSoft);
    transition: transform 0.3s ease, background-color 0.3s, border-color 0.3s;
}


.light .ball {
    transform: translateX(20px); 
}


.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 60px;
}

.modal-content {
    background-color: var(--bg);
    color: var(--text);
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    position: relative;
}


.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#search {
    width: calc(100% - 40px); /* Adjust width considering padding */
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

#results {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
    transition: background-color 0.3s;
}

.result-item:hover {
    background-color: #f1f1f1;
}

.result-thumbnail {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    object-fit: cover;
    border-radius: 4px;
}

.result-text {
    flex: 1;
}

.result-title {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .links {
        font-size: 14px;
    }

    .searchButton span {
        display: none;
    }

    .modal-content {
        width: 90%;
        padding: 10px;
    }

    .close {
        font-size: 24px;
    }

    #search {
        font-size: 14px;
        padding: 8px;
    }

    .result-thumbnail {
        width: 40px;
        height: 40px;
        margin-right: 8px;
    }

    .result-title {
        font-size: 14px;
    }

    .log .logo-text {
        font-size: 15px;
    }
}