/* Width of the scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

/* Background of the scrollbar */
::-webkit-scrollbar-track {
    background-color: rgba(200, 200, 200, 0.2);
    border-radius: 5px;
}

/* Color of the scrollbar thumb */
::-webkit-scrollbar-thumb {
    background-color: rgba(200, 200, 200, 0.4);
    ;
    border-radius: 5px;

}

/* Hover color of the scrollbar thumb */
::-webkit-scrollbar-thumb:hover {
    background-color: #555;
    border-radius: 5px;
}

#overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 50px;
    /* Adjust width as needed */
    height: 50px;
    /* Adjust height as needed */
    background-color: rgba(0, 60, 255, 0.5);
    /* Semi-transparent red */
    border-radius: 10px;
    z-index: 999;
    /* Ensure it appears above other content */
    cursor: pointer;
    display: flex;
    font-size: 35px;
}

#overlay span {
    margin: auto;
}

#overlay:hover {
    background-color: rgba(20, 75, 255, 0.8);
    /* Darker red on hover */
}

body {
    background: black;
}

a {
    text-decoration: none;
    /* I hate underlines */
}

.header {
    height: 10vh;
    background-color: rgba(50, 50, 50, 0.3);
    backdrop-filter: blur(10px);
    border: 5px;
    border-radius: 10px;
    margin: 1vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding-left: 1vw;
    padding-right: 1vw;
}

.search-bar {
    height: 8vh;
    font-size: 4vh;
    width: 30vw;
    background-color: #00000027;
    border-style: solid;
    color: white;
    padding-left: 15px;
}

.search-bar::-moz-selection {
    background: rgba(255, 255, 255, 0.151);
}

.search-bar::selection {
    background: rgba(255, 255, 255, 0.151);
}

.time-container {
    width: 24vw;
    overflow: hidden;
    text-align: center;
}

.time {
    font-size: 4vw;
    font-family: Poppins;
    color: white;
    text-shadow: 1px 1px 0 #000,
        -1px 1px 0 #000,
        1px -1px 0 #000,
        -1px -1px 0 #000,
        0px 1px 0 #000,
        0px -1px 0 #000,
        -1px 0px 0 #000,
        1px 0px 0 #000,
        2px 2px 0 #000,
        -2px 2px 0 #000,
        2px -2px 0 #000,
        -2px -2px 0 #000,
        0px 2px 0 #000,
        0px -2px 0 #000,
        -2px 0px 0 #000,
        2px 0px 0 #000,
        1px 2px 0 #000,
        -1px 2px 0 #000,
        1px -2px 0 #000,
        -1px -2px 0 #000,
        2px 1px 0 #000,
        -2px 1px 0 #000,
        2px -1px 0 #000,
        -2px -1px 0 #000;
}

#settings-icon {
    height: 4vh;
    cursor: pointer;

}

#settings-icon:hover {
    height: 4vh;
    border: 3px;
    border-radius: 20px;
    background-color: rgba(255, 250, 250, 0.3);
}

.date {
    font-size: 3.5vh;
    font-family: Poppins;
    color: white;
    margin-left: auto;
    text-shadow: 1px 1px 0 #000,
        -1px 1px 0 #000,
        1px -1px 0 #000,
        -1px -1px 0 #000,
        0px 1px 0 #000,
        0px -1px 0 #000,
        -1px 0px 0 #000,
        1px 0px 0 #000,
        2px 2px 0 #000,
        -2px 2px 0 #000,
        2px -2px 0 #000,
        -2px -2px 0 #000,
        0px 2px 0 #000,
        0px -2px 0 #000,
        -2px 0px 0 #000,
        2px 0px 0 #000,
        1px 2px 0 #000,
        -1px 2px 0 #000,
        1px -2px 0 #000,
        -1px -2px 0 #000,
        2px 1px 0 #000,
        -2px 1px 0 #000,
        2px -1px 0 #000,
        -2px -1px 0 #000;
}



#news {
    background-color: rgba(50, 50, 50, 0.5);
    color: white;
    backdrop-filter: blur(10px);
    border: 5px;
    border-radius: 10px;
    margin: 1vh;
    margin-left: 0;
    padding: 1%;
    float: right;
    clear: right;
    width: 40vw;
    height: 37vh;
    line-height: 25px;
    overflow: auto;
    font-size: 1.8vh;
    font-family: Inter, Verdana, sans-serif;
}

#news p {
    margin-bottom: 5px;
    margin-top: 5px;
}


.news-header {
    display: flex;
    height: 42px;
    align-items: center;
}

.news-time {
    width: 10vh;
    display: inline-block;
}

.news-title {
    overflow: hidden;
}

.news-header img {
    width: 42px;
    height: 42px;
    float: left;
    margin-left: 1%;
    margin-right: 1%;

}

.news-header p {
    /* font-weight: none; */
    font-size: 3vh;
    margin-left: 10px;
    font-family: Inter, Verdana, sans-serif;
    text-decoration: none;

}

.feed-panel-wrapper {
    height: 50%;
    display: flex;
    gap: 15px;
    margin: 15px 0px 15px 0px;

}

.feed-panel-wrapper a {
    color: white;
    border-radius: 15px;
    padding: 10px;
    background-repeat: no-repeat;
    background-size: cover;
    font-size: 2vh;
    flex: 1;
    display: flex;
}

.feed-panel-background {
    background: linear-gradient(100deg,
            rgba(255, 255, 255, 0) 20%,
            rgba(255, 255, 255, 0.226) 50%,
            rgba(255, 255, 255, 0) 70%) rgba(200, 200, 200, 0.1);
    animation: 2s loading ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 50rem;
    }

    100% {
        background-position: -50rem;
    }
}

#source1-feed p a {
    text-decoration: none;
    color: white;
    font-family: Inter, Verdana, sans-serif;
    line-height: 25px;
}

#source1-feed p a:visited {
    color: rgb(168, 168, 168);
}

#source2-feed p a {
    text-decoration: none;
    color: white;
    font-family: Inter, Verdana, sans-serif;
    line-height: 25px;
}

#source2-feed p a:visited {
    color: rgb(168, 168, 168);
}


#apps-display {
    background-color: rgba(50, 50, 50, 0.5);
    color: white;
    backdrop-filter: blur(10px);
    border: 5px;
    border-radius: 10px;
    margin: 1vh;
    margin-top: 2vh;
    margin-right: 0vw;
    float: top;
    width: 55%;
    height: 84vh;
    line-height: 15px;
    overflow: auto;
    font-size: 1.8vh;
    font-family: Inter, Verdana, sans-serif;
    text-align: center;
}

.app {
    width: 15vh;
    margin: 1vh;
    margin-top: 1.2vh;
    border: 1px;
    height: 18.7vh;
    display: inline-block;
}

.app:hover {
    background-color: rgba(50, 50, 50, 0.7);
    cursor: pointer;
    border-radius: 10px;
}

.app-image {
    aspect-ratio: 1 / 1;
    background-color: rgba(250, 250, 250, 0.1);
    border-radius: 10px;
}

.app-image img {
    width: 80%;
    height: 80%;
    margin-top: 10%;
    border-radius: 10px;
}

.app-title {
    margin-top: 5%;
    color: white;
    text-decoration: underline;
    display: block;
    white-space: nowrap;
    text-overflow: ellipsis;
    word-break: break-all;
    overflow: hidden;
    max-height: 1.1em;
    line-height: 1.1em;
    font-family: Inter;
}

.dialog {

    font-size: 2vh;
    background-color: black;
    color: white;
    font-family: Poppins;
}

.dialog h1 {
    margin-top: 0vh;
    margin-bottom: 1vh;
}

.dialog p {
    font-size: 4vh;

}

#closeDialog {
    color: white;
    font-family: Poppins;
    background-color: #555;
    border: none;
    padding: 5%;
    margin-top: 2vh;
    margin-left: auto;
    margin-right: auto;
}

#searchDialog {
    font-family: "Inter", 'Courier New', Courier, monospace;
    background-color: #000000d5;
    backdrop-filter: blur(10px);
    color: white;
    outline: none;
    top: -30vh;
    border-radius: 10px;
}

#search-result-container {
    display: flex;
    flex-direction: column;
    width: 30vw;
    align-self: center;
    height: 40vh;
    margin-top: 20px;
    gap: 20px;

}

.search-result {
    background-color: rgba(255, 255, 255, 0.11);
    border-radius: 5px;
    width: 100%;
    height: 30%;
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-result p {
    font-family: "Inter", 'Courier New', Courier, monospace;
    font-size: 32px;
}

.search-result-image {
    aspect-ratio: 1 / 1;
    border-radius: 10px;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.search-result-title {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 20vw;
}

.search-result-title :nth-child(1) {
    font-size: 32px;
    max-height: 50px;
    white-space: nowrap;
    text-overflow: ellipsis;
    word-break: break-all;
    overflow: hidden;
}

.search-result-title :nth-child(2) {
    color: gray;
    white-space: nowrap;
    text-overflow: ellipsis;
    word-break: break-all;
    overflow: hidden;
}

#selected {
    background-color: rgba(200, 200, 200, 0.4);
    transform: scale(1.01);
    transform-origin: center;
}

#confirmed {
    background-color: rgba(200, 200, 200, 0.1);
}