body, html {
    padding: 0;
    margin: 0;
    color: white;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    overflow-y: hidden;
    height: 100vh;
    width: 100vw;
}

body {
    background: radial-gradient(circle at 73% 66%, #130a04 15%, transparent 60%), radial-gradient(circle at 15% 40%, #140a04 15%, transparent 32%), radial-gradient(circle at 40% 40%, #221306 15%, transparent 32%), #070301;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    backdrop-filter: blur(1.5px);
    z-index: -1;
}

.tabs-container {
    box-sizing: border-box;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    height: 40px;
    background-color: var(--primary-color-transparent);
    align-items: center;
    padding: 0 5px;
    overflow: hidden;
    margin: 3px 0;
}

#tabs {
    height: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.tab {
    display: flex;
    width: 240px;
    min-width: 50px;
    font-size: 16px;
    /* flex-shrink: 1; */
    background-color: #00000000;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    margin: 0 10px;
    cursor: default;
    height: 90%;
    align-items: center;
    border-radius: 12px;
    margin: auto 2px;
    transition: 0.09s all;
    color: var(--text-color);
    padding: 0 1px;
}

.open-tab {
    animation: openTab 0.14s;
}

.tab:hover {
    /* background-color: ; */
    background-color: #1f1a14b6;
}

.close-tab {
    position: absolute;
    right: 3px;
    margin: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64%;
    border-radius: 5px;
    padding: 0 2px 4px;
    aspect-ratio: 1 / 1;
    transition: 0.09s all;

    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.close-tab:hover {
    background-color: #2e261e98;
}

.tab.selected .close-tab:hover {
    background-color: #382f25;
}

.tab-title {
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
    flex: 1;
    margin-right: 35px;
    text-align: left;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    mask-image: linear-gradient(to right, black 80%, transparent 100%);
}

.tab.selected {
    background-color: #2B241D;
    box-shadow: 0 0 5px var(--shadow-color);
    border-left: 1px solid #3f342b;
    border-right: 1px solid #3f342b;
    padding: 0;
}

#new-tab {
    cursor: default;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    height: 80%;
    margin-left: 2px;

    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#new-tab:hover {
    background-color: #2e261e98;
}

.search-bar-top {
    box-sizing: border-box;
    width: 100%;
    height: 42px;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 8px;
    border-bottom: 2px solid #1f1712;
}

#search-bar-top {
    font-family: "M PLUS Rounded 1c", sans-serif;
    height: 100%;
    border: none;
    outline: none;
    background-color: var();
    color: var(--text-color);
    padding: 10px 10px 10px 7px;
    width: 98%;
    background-color: #18100800;
}

.top-search-bar:has(#search-bar-top:focus) {
    outline: 2px solid var(--third-color);
}

.top-search-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    height: 30px;
    border: none;
    outline: none;
    background-color: var(--primary-color-transparent);
    color: var(--text-color);
    padding: 6px;
    border-radius: 5px;
    width: 88%;
    margin-right: 20px;
    overflow: hidden;
    background-color: #18100863;
    outline: 1px solid #291e17;
}

.search-bar-icon-top {
    width: 18px;
    margin-right: 0;
}

.search-bar-icon-top-loading {
    width: 22px;
    margin-right: 0;
}

.closing {
    animation: closeTab 0.14s;
}

.search-icon {
    width: 23px;
    transition: 0.12s all;
    will-change: transform;
}

#home {
    width: 21px;
}

#reload {
    width: 24px;
}

.search-icon:hover {
    color: var(--hover-color);
    transform: scale(1.17);
}

.search-icons {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 12%;
}

.page {
    box-sizing: border-box;
    width: 100%;
    height: calc(100vh - 88px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.inactive-tab {
    display: none;
}

.search-logo {
    width: 425px;
    margin-top: 10vh
}

.search-bar-container {
    color: currentColor;
    width: 650px;
    height: 60px;
    background-color: #18100863;
    border: none;
    outline: none;
    color: var(--text-color);
    border-radius: 12px;
    box-shadow: 0 0 2px var(--third-color);
    transition: 0.15s box-shadow ease-out;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    outline: 1px solid #291e17;
    box-shadow: 0 16px 20px rgba(0, 0, 0, 0.548);
    margin-bottom: 20px;
}

.search-bar {
    color: rgb(209, 209, 209);
    font-size: 18px;
    font-family: "M PLUS Rounded 1c", sans-serif;
    width: 95%;
    height: 100%;
    margin: 0;
    padding: 10px 10px 10px 0;
    outline: none;
    border: none;
    background-color: #18100863;
    font-weight: 500;
}

.search-bar-icon {
    width: 5%;
    margin: 14px;
}

.search-bar-container:has(.search-bar:focus) {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.548);
}

.common-pages {
    margin-top: 25px;
    display: flex;
    justify-content: space-evenly;
    width: 600px;
}

.common-page-img {
    width: 25px;
    height: 25px;
    padding: 15px;
    border-radius: 10px;
    background-color: #18100863;
    outline: 1px solid #291e17;
    box-shadow: 0 25px 45px #0000009d;
    margin-bottom: 5px;
}

.common-page p {
    margin: 2px 0;
    font-size: 13px;
}

.common-page {
    cursor: default;
    padding: 8px 16px;
    border-radius: 7px;
    transition: 0.15s background-color, 0.25s transform;
    will-change: background-color, transform;
    text-align: center;
}

.common-page:hover {
    transform: scale(1.1);
}

#search-bar-icon-top-container {
    width: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.orange {
    color: #FF8904;
}

.title-text {
    font-size: clamp(70px, 4.7vw, 6vw);
    font-weight: 700;
    margin: 19vh 0 20px 0;
}

@keyframes closeTab {
    0% {
        width: 200px;
        min-width: 50px;
        overflow-x: hidden;
        box-sizing: border-box;
    } 20% {
        color: #00000000;
        opacity: 0.8;
        box-sizing: border-box;
    } 100% {
        color: #00000000;
        width: 0;
        opacity: 0;
        min-width: 0;
    }
}

@keyframes openTab {
    0% {
        color: #00000000;
        width: 0;
        opacity: 0;
        min-width: 0;
        overflow-x: hidden;
        box-sizing: border-box;
    } 20% {
        color: #00000000;
        opacity: 0.2;
        box-sizing: border-box;
    } 100% {
        width: 200px;
        min-width: 50px;
    }
}

.page iframe {
    border: none;
    outline: none;
    width: 100%;
    height: 100%;
    margin: 0;
}