@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Libre+Barcode+128+Text&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lora&display=swap');

/* Intro video overlay */
.intro-video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#introVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fade out animation */
@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

body {
    background-color: #121212;
    color: white;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    display: flex;
    flex-direction: row;
    height: 100vh;
}

.sidebar {
    width: 25%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid #333;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.wordmark {
    font-size: 2rem;
    font-family: 'Libre Barcode 128 Text', cursive;
}

.categories-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.nav-arrow {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    display: none;
}

.categories-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.categories {
    display: flex;
    flex-direction: column;
    width: 80%;
    transition: transform 0.3s ease-in-out;
}

.category-btn {
    background: none;
    border: none;
    color: white;
    padding: 20px;
    cursor: pointer;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.category-btn:hover {
    background-color: #333;
}

.content {
    width: 75%;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.item {
    width: 200px;
    height: 240px;
    background-color: #1e1e1e;
    margin: 10px;
    padding: 10px;
    border-radius: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-in-out;
    cursor: pointer;
}
.item:hover{
  scale:1.1;
  transition: 0.2s;
  background-color: #333;
}
.item:active{
  scale:0.9;
  transition: 0.1s;
  background-color: #ff0a45;
}

.item.visible {
    opacity: 1;
    transform: translateY(0);
}

.item img {
    width: 100%;
    height: 60%;
    border-radius: 10px;
    object-fit: cover;
}

.item h3 {
    margin: 10px 0 5px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.item p {
    font-family: 'Lora', serif;
    font-size: 14px;
}

.popup {
    display: none;
    position: fixed;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    background: #121212;
    z-index: 1000;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    padding: 10px;
}

.popup iframe {
    width: 100%;
    height: calc(100% - 30px);
    border: none;
    border-radius: 10px;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: 5px;
    border-color: #000;
    color: white;
    font-size: 20px;
    cursor: pointer;
}
.popup-container {
  position: fixed;
  top: 5%;
  left: 5%;
  width: 90%;
  height: 90%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.popup-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.popup-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: 5px;
  border-color: #000;
  color: #fe0b0b;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 768px) {
  /* Mobile-friendly layout */
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        align-items: center;
        border-right: none;
        border-bottom: 1px solid #333;
    }

    .logo-container {
        margin-bottom: 0;
    }

    .categories-nav {
        flex-direction: row;
    }

    .nav-arrow {
        display: block;
        font-size: 16px;
        opacity: 0.5;
    }

    .categories-container {
        width: 80%;
    }

    .categories {
        flex-direction: row;
    }

    .category-btn {
        flex: 1;
        text-align: center;
        border-right: 1px solid #333;
        padding: 10px;
    }

    .content {
        width: 100%;
    }

  .articles-iframe {
      height: 100vh;
  }
/* End of Mobile-friendly layout */
}

.view-more-btn {
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  margin-top: 10px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.view-more-btn i {
  margin-right: 10px;
}

.view-more-btn:hover {
  background-color: #0056b3;
}

.articles-iframe {
    width: 100%;
    height: 95vh;
    border: none;
}

.about-panel {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 15px;
    border-radius: 5px;
    color: #fff;
    font-size: 12px;
    z-index: 1000;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    max-width: 200px;
}

.about-panel:hover {
    padding-right: 25px;
    background: rgba(0, 0, 0, 0.8);
}

.about-panel:hover::after {
    content: ' - Social Links';
    color: #aaa;
}

.about-panel.expanded {
    max-width: 400px;
    white-space: normal;
    padding: 20px;
}

.about-panel.expanded::after {
    content: '';
}

.about-panel a {
    color: #0aff45;
    text-decoration: none;
    transition: color 0.3s;
}

.about-panel a:hover {
    color: #fff;
}
.socials {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.4;
  font-size: 1.6rem;
  padding: 0.1rem;
}
.socials:hover {
  opacity: 0.8;
}
.fa-brands,.fa-solid, .fa-regular {
  scale: 4rem;
  position:relative;
}
