@font-face {
    font-family: 'BasicallyAMono-SemiBold';
    src: url('fonts/BasicallyAMono-SemiBold.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
  }

  @font-face {
    font-family: 'BasicallyAMono-Medium';
    src: url('fonts/BasicallyAMono-Medium.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
  }

  @font-face {
    font-family: 'BasicallyAMono-Regular';
    src: url('fonts/BasicallyAMono-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
  }

  a, abbr, acronym, address, applet, article, aside, audio, b, big, blockquote, body, canvas, caption, center, cite, code, dd, del, details, dfn, dialog, div, dl, dt, em, embed, fieldset, figcaption, figure, font, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, hr, html, i, iframe, img, ins, kbd, label, legend, li, mark, menu, meter, nav, object, ol, output, p, pre, progress, q, rp, rt, ruby, s, samp, section, small, span, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, time, tr, tt, u, ul, var, video, xmp {
	border: 0;
	margin: 0;
	padding: 0;
	font-size: 100%;
	zoom: 1;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
	display: block;
}

html, body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, textarea, blockquote {
	list-style: none;
}

a, a:visited {
	text-decoration: none;
	outline: none;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0; /* bottom = footer height */
    background-repeat: no-repeat;
    background-size: cover;
    background-color: white;
    font-family: 'BasicallyAMono-Regular', monospace;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

a {
    color: #0054ff;
}

#top {
    padding-left: 16px;
    position: relative;
    padding-right: 16px;
    margin-top: 32px;
    margin-left: 260px;
    text-align: left;
}

#top a {
    font-family: 'BasicallyAMono-Medium', monospace;
}

#top a:hover {
    text-decoration: underline;
}

#loadMoreBtn {
    margin-left: auto;
    margin-right: auto;
    display: block;
    width: 100px;
    font-family: 'BasicallyAMono-Regular', monospace;
    height: 28px;
    border: 1px solid rgba(170,170,170,.6);
    border-radius: 4px;
    background-color: transparent;
    margin-top: 12px;
    color: black;
}

#loadMoreBtn:hover {
    cursor: pointer;
}

select:hover {
    cursor: pointer;
}

#container {
    position: relative;
    top: 0;
    left: 0;
    margin-left: 250px; 
    margin-top: 30px;
    padding: 15px;
}

#sidebar {
    width: 220px;
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    background-color: #f4f4f4;
    padding: 16px;
    margin-top: 50px;
    z-index: 1;
}

#sidebar ul {
    list-style: none;
    padding: 0;
}

#sidebar li {
    padding: 3px;
    cursor: pointer;
    display: block;
}

#sidebar li a {
    color: black;
    display: block;
}

#sidebar li:hover {
    background-color: rgba(177,177,177,.2);
}

#spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #767676;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;
  }

  .ad {
    position: absolute;
    top: 8px;
    right: 8px;
    color: rgba(255,255,255,.9);
    padding: 3px 6px 3px 6px;
    font-size: 11px;
    border-radius: 4px;
    background-color: rgba(0,0,0,.2);
  }
  
  /* CSS for the spinner animation */
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

#tweets {
    margin: 0 auto;
    display: none;
}

#tweets li img {
    width: 100%;
    height: auto;
    border-radius: 11px;
}

#tweets li {
    position: relative;
    margin-bottom: 9px;
}

#tweets li video {
    width: 100%;
    height: auto;
    border-radius: 11px;
}

#header {
    height: 50px;
    width: 252px;
    background-color: #e5e5e5;
    position: fixed;
    top: 0px;
    z-index: 1;
}

#header > a > span {
    color: black;
    cursor: pointer;
}

#header > a:hover {
    cursor: pointer;
}

#logoSpan {
    cursor: pointer !important;
}

#logo2 {
    background-image: url(images/logo.png);
    width: 30px;
    background-size: cover;
    height: 17px;
    margin-left: 16px;
    margin-top: 17px;
    margin-bottom: 11px;
    display: inline-block;
}

#logoSpan {
    position: relative;
    top: -14px;
    font-size: 15px;
    left: 11px;
    font-family: 'BasicallyAMono-Medium', monospace;
}

body.dark-mode {
        background-color: black;
        color: white;
}

body.dark-mode #darkModeToggle {
    background-image: url(images/light.png);
}

body.dark-mode #menuToggle {
    background-image: url(images/menu-dark.png);
}

body.dark-mode #logo {
    background-image: url(images/logo-light.png);
}

body.dark-mode #logo2 {
    background-image: url(images/logo-light.png);
}

body.dark-mode .tweetInfo {
    background-color: rgba(0,0,0,.7);
}

body.dark-mode #tagFilter {
    color: white;    
}

body.dark-mode #loadMoreBtn {
    color: white;
}

body.dark-mode #sidebar {
    background-color: #111;
}

body.dark-mode #sidebar li a {
    color: white;
    display: block;
}

body.dark-mode .modal-content {
    background-color: black;
}

body.dark-mode .modal-content a {
    color: white;
}

body.dark-mode #tagFilter {
    background: url(images/arrow-light.png) 96% / 15% no-repeat;
    background-size: 10%;
}

body.dark-mode #header {
    background-color: #1a1a1a;
}

body.dark-mode #header > a > span {
    color: white;
    cursor: pointer;
}

.grid-sizer,
.grid-item {
    width: 24%;
}

.grid-item--width2 {
    width: 49%; 
}

#logo {
    background-image: url(images/logo.png);
    width: 30px;
    background-size: cover;
    height: 17px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
    margin-bottom: 11px;
    display: inline-block;
}

select:focus {
    outline: none;
    border: none;
  }

#darkModeToggle {
    background-image: url(images/dark.png);
    width: 24px;
    height: 24px;
    background-size: cover;
    position: fixed;
    right: 15px;
    top: 15px;
    opacity: .5;
    z-index: 999;
}

#darkModeToggle:hover {
    cursor: pointer;
}

#menuToggle {
    background-image: url(images/menu-light.png);
    width: 24px;
    height: 21px;
    background-size: cover;
    position: fixed;
    left: 15px;
    top: 15px;
    z-index: 999;
    display: none;
}

#menuToggle:hover {
    cursor: pointer;
}

h1 {
    text-align: center;
    font-size: 15px;
    margin-bottom: 7px;
    display: inline;
    top: -13px;
    position: relative;
    font-family: 'BasicallyAMono-Medium';
}

h2 {
    text-align: left;
    font-size: 14px;
    opacity: 60%;
    margin-bottom: 7px;
    margin-left: auto;
    margin-right: auto;
    margin-top: -6px;
}

h3 {
    font-size: 13px;
    font-family: 'BasicallyAMono-SemiBold', monospace;
    margin-bottom: 4px;
}

.filter-option {
    font-size: 14px;
}

.filter-option.selected {
    color: #0054ff !important; /* Blue color for the selected option */
    font-family: 'BasicallyAMono-SemiBold', monospace;
}

.filter-option.selected > a {
    color: #0054ff !important; /* Blue color for the selected option */
    font-family: 'BasicallyAMono-SemiBold', monospace;
}

.tweetInfo {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: rgba(255,255,255,.9);
    padding: 8px;
    font-size: 14px;
}

.tweetInfo img {
    width: 26px !important;
    height: 26px !important;
    margin-right: 8px;
    border-radius: 20px !important;
}

.tweetInfo span {
    position: relative;
    top: -8px;
}

.tweetInfo {
    opacity: 0%;
    transition: 0.3s ease;
  }
  
 #tweets li:hover .tweetInfo {
    opacity: 100%;
  }

span:hover {
    cursor: default !important;
}

#tweets li img {
    transition: 0.3s ease;  
}

#tweets li video {
    transition: 0.3s ease;  
}

#tweets li:hover img {
    opacity: .9;
}

#tweets li:hover video {
    opacity: .9;
}

#footer {
    width: 350px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 15px;
    margin-bottom: 30px;
    text-align: center;
    font-size: 15px;
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    padding-top: 100px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(150,150,150,0.5); 
}

.modal-content {
    background-color: white;
    margin: auto;
    padding: 20px;
    border-radius: 8px;
    max-width: 450px;
    min-width: 300px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-content h3 {
    font-family: 'BasicallyAMono-SemiBold';
    margin-bottom: 10px;
}

.modal-content p {
    margin-bottom: 14px;
    line-height: 1.4;
}

.modal-content a {
    border: 1px solid rgba(170,170,170,.5);
    padding: 6px 11px 6px 11px;
    color: black;
    font-weight: bold;
    border-radius: 4px;
    font-size: 14px;
    display: inline-block;
}

.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    top: -5px;
    position: relative;
}

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


@media only screen 
and (max-width : 1280px) {
    .grid-sizer,
    .grid-item {
        width: 32%;
    }
    
    .grid-item--width2 {
        width: 65%; 
    }
}

@media only screen 
and (max-width : 760px) {
    .grid-sizer,
    .grid-item {
        width: 49%;
    }
    
    .grid-item--width2 {
        width: 99%; 
    }
    
    #sidebar {
        display: none;
    }

    #container {
        margin-left: 0;
    }

    #header {
        width: 100%;
        text-align: center;
    }

    #top {
        margin-top: 92px;
        margin-left: 0;
    }

    #darkModeToggle {
        top: 13px;
    }

    #menuToggle {
        display: block;
    }
}

@media only screen 
and (max-width : 550px) {
    .grid-sizer,
    .grid-item {
        width: 99%;
    }
    
    .grid-item--width2 {
        width: 99%; 
    }
}