:root {
    --searchbar-border-radius: 25px;
    --scrollbarWidthSlim: 8px;
    --scrollbarBgColourGradient: linear-gradient(180deg, #667eea 0%, #764ba2 100%);

    --bg-color: #1a1a1a;
    --text-color: #ecf0f1;
    --header-bg: #2c2c2c;
    --search-bg: #3a3a3a;
    --button-bg: #5dade2;
    --button-text: #ffffff;
    --link-color: #85c1e9;
    --border-color: #5d6d7e;
    --shadow: rgba(0, 0, 0, 0.3);
    --hover-bg: #34495e;
    --accent-color: #3c94e7;
    --secondary-bg: #2c2c2c;
    --nav-bg: #1a1a1a;
    --footer-bg: #2c2c2c;

    --slogan-font: "BBH Bogle", sans-serif;
}

.glow {
    -webkit-animation: glow 1s ease-in-out infinite alternate;
    -moz-animation: glow 1s ease-in-out infinite alternate;
    animation: glow 1s ease-in-out infinite alternate;
}

.oxanium_400 {
  font-family: "Oxanium", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.nova-square-regular {
  font-family: "Nova Square", sans-serif;
  font-weight: 400;
  font-style: normal;
}


.lilex {
  font-family: "Lilex", monospace;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}

.bbh-bogle-regular {
    font-family: "BBH Bogle", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.bbh-hegarty-regular {
    font-family: "BBH Hegarty", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.electrolize-regular {
    font-family: "Electrolize", sans-serif;
    font-weight: 400;
    font-style: normal;
}

* {
      font-family: "Lilex", monospace;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
	max-height: 100vh;
    color: var(--text-color);
    background-color: transparent;
    transition: background-color 0.3s, color 0.3s;
}

html,
body {
    margin: 0;
    height: 100%;
    background-color: var(--bg-color);
    background-image: url('/assets/images/background.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    scroll-behavior: smooth;
}

h1, h2, h3 {
    font: "BBH Hegarty", sans-serif;
}

.wrapper {
    display: flex;
    flex-direction: column;
    max-width: 100vw;
    min-height: 84vh;
}

.wrapper.indexPage {
    justify-content: center;
}

.mainSection {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mainSection .searchContainer {
    margin-top: 20px;
    width: 100%;
}

.mainSection .searchContainer form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.searchContainer .searchButton {
    color: var(--text-color);
    background-color: var(--button-bg);
    border: none;
    height: 36px;
    width: 125px;
    border-radius: 2px;
    font-size: 13px;
    font-weight: bold;
    margin-top: 20px;
    cursor: pointer;
    outline: none;
    border-radius: 25px;
}

.mainSection .searchContainer .searchBox {
    border: none;
    background-color: var(--search-bg);
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.08);
    height: 44px;
    border-radius: var(--searchbar-border-radius);
    outline: none;
    padding: 10px;
    box-sizing: border-box;
    font-size: 16px;
    width: 70%;
    max-width: 630px;
    color: var(--text-color);
    padding-left: 25px;
}

.mainSection .searchContainer .searchBox:hover {
    border: aqua;
}

.mainSection .logoContainer {
    width: 220px;
    text-align: center;
}

.logoContainer img {
    width: 100%;
}

/*
* Search Page Styling
*/
.header {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
}

.wrapper .headerContent {
    display: flex;
    align-items: center;
}

.headerContent .logoContainer {
    width: 150px;
    padding: 5px 20px;
    box-sizing: border-box;
}

.headerContent .searchContainer {
    flex: 1;
}

.headerContent .searchContainer form {
    margin: 15px 0 28px 0;
}

.headerContent .searchBarContainer {
    height: 44px;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.08);
    width: 70%;
    max-width: 630px;
    box-sizing: border-box;
    display: flex;
    border-radius: var(--searchbar-border-radius);
}

.headerContent .searchBarContainer .searchBox {
    flex: 1;
    border: none;
    background-color: transparent;
    padding: 14px;
    font-size: 16px;
    color: var(--text-color);
    outline: none;
}

.headerContent .searchBarContainer .searchButton {
    background-color: var(--search-bg);
    height: 48px;
    margin-top: 0;
    width: 48px;
    padding-right: 20px;
    display: flex;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.headerContent .searchBarContainer .searchButton:hover {
    background-color: var(--hover-bg);
}

.headerContent .searchBarContainer .searchButton img {
    width: 22px;
    padding: 10px;
}

.tabsContainer {
    margin-left: 150px;
}

.tabsContainer .tabList {
    padding: 0;
    margin: 0;
}

.tabsContainer .tabList li {
    display: inline-block;
    padding: 0 16px 12px 16px;
    color: #777;
    font-size: 13px;
}

.tabsContainer .tabList li a {
    text-decoration: none;
}

.tabsContainer .tabList li.active {
    border-bottom: 3px solid var(--link-color);
}

.tabsContainer .tabList li.active a {
    font-weight: bold;
    color: var(--link-color);
}

/*
*Results styling
*/
.mainResultsSection {
    flex: 1;
}

.mainResultsSection .resultsCount {
    font-size: 13px;
    color: #808080;
    margin-left: 150px;
}

.mainResultsSection .siteResults {
    margin-left: 150px;
}

.resultContainer {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--secondary-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow);
    transition: box-shadow 0.3s ease;
}

.resultContainer:hover {
    box-shadow: 0 4px 8px var(--shadow);
}

.resultContainer .title {
    margin: 0 0 8px 0;
}

.resultContainer .title a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 20px;
    transition: color 0.3s ease;
}

.resultContainer .title a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.resultContainer .url {
    color: var(--link-color);
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.resultContainer .description {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-color);
    opacity: 0.9;
}

/********************
Pagination styling
********************/
.paginationContainer {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.pageButtons {
    display: flex;
}

.pageNumberContainer img {
    height: 37px;
}

#pageEndContainer img {
    height: 43px;
}

.pageNumberContainer,
.pageNumberContainer a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.pageNumber {
    color: #000;
    font-size: 13px;
}

a .pageNumber {
    color: #4285f4;
}

/*
* Image styling
*/
.mainResultsSection .imageResults {
    margin: 20px;
}

.gridItem {
    position: relative;
}

.gridItem img {
    max-width: 200px;
    min-width: 50px;
    visibility: hidden;
}

.gridItem .details {
    visibility: hidden;
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 11px;
    padding: 3px;
    box-sizing: border-box;
    white-space: nowrap;
}

.gridItem:hover .details {
    visibility: visible;
}

/*********
Crawl form
**********/
#crawl-wrapper {
    text-align: center;
    padding-top: 100px;
}

#crawl-input {
    width: 400px;
}

.nav-container {
    max-width: 1200px;
    background-color: transparent;
    margin: 0;
    display: flex;
    justify-content: center;
}

.nav-link {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: background-color 0.3s, color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--hover-bg);
    color: var(--accent-color);
}

/*
* Footer Styling
*/


.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-link {
    color: var(--link-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/*
Mobile responsive design -- Overrides
*/
@media only screen and (max-width: 700px) {
    .resultContainer .url {
        color: var(--link-color);
        font-size: 19px;
        opacity: 0.7;
    }

    .tabsContainer {
        text-align: center;
    }

    .mainResultsSection .resultsCount {
        margin-left: 15px;
    }

    .mainResultsSection .siteResults {
        margin-left: 15px;
    }

    .mainResultsSection .resultsCount {
        margin-left: 15px;
    }
}

.search-engine-intro p {
    margin: 20px 0;
    line-height: 1.6;
    max-width: 70vw;
    font-size: 16px;
    color: var(--text-color);
}

.navLink {
    text-align: center;
    margin: 20px 0;
}

.navLink a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.navLink a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.slogan1 {
    font-family: var(--slogan-font);
    font-size: x-large;
    text-decoration: underline;
}


.top-nav {
    background-color: rgba(26, 26, 26, 0.7);
    border-bottom: 1px solid var(--border-color);
    padding: 5px 10px;
    position: sticky;
    top: 0;
    z-index: 1000;
    max-height: 8vh;
    border-radius: 15px;
    width: 60vw;
    margin: auto;
}

.site-footer {
    background-color: rgba(44, 44, 44, 0.7);
    border-top: 1px solid var(--border-color);
    padding: 10px;
    margin-top: auto;
    border-radius: 15px;
    width: 80vw;
    margin: auto;
}

body {
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: 0;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
}

@-webkit-keyframes glow {
  from {
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #e60073, 0 0 40px #e60073, 0 0 50px #e60073, 0 0 60px #e60073, 0 0 70px #e60073;
  }
  to {
    text-shadow: 0 0 20px #fff, 0 0 30px #ff4da6, 0 0 40px #ff4da6, 0 0 50px #ff4da6, 0 0 60px #ff4da6, 0 0 70px #ff4da6, 0 0 80px #ff4da6;
  }
}

.logo-text {
    font-size: 70px;
}

text-small {
    font-size: xx-small;
}

.boxes-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    width: 100%;
    max-width: 600px;
}

.box {
    display: flex;
    align-items: center;
    background-color: var(--secondary-bg);
    border-radius: 15px;
    box-shadow: 0 4px 8px var(--shadow);
    padding: 20px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px var(--shadow);
}

.box:nth-child(odd) {
    flex-direction: row;
}

.box:nth-child(even) {
    flex-direction: row-reverse;
}

.box img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    margin: 0 20px;
}

.box p {
    flex: 1;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-color);
    margin: 0;
}
