
body {
  font-family: 'Iskoola Pota', 'Noto Sans Sinhala', 'FM Abhaya', sans-serif;
  font-size: 15px;
  background: #eee;
  color: #454645;
  margin: 0;
  line-height: 1.6;
}

  
  a:active,a:visited{color:#404951;}a:link {color : #222;text-decoration : none;outline:0}a:focus,a:hover{color:#0B2CF9;outline:0}.container{margin:0 10px}
* {
  box-sizing: border-box;
}

.menu {
  float: left;
  width: 20%;
  text-align: center;
}

.menu a {
  background-color: #e5e5e5;
  padding: 8px;
  margin-top: 7px;
  display: block;
  width: 100%;
  color: black;
}

.main {
  float: left;
  width: 75%;
  padding: 0 10px;
}

.right {
  float: left;
  width: 24%;
  text-align: left;
}

@media only screen and (max-width: 620px) {
  /* For mobile phones: */
  .menu, .main, .right {
    width: 100%;
  }
}


.tab {
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
}
.tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  font-size: 17px;
}

.tab button:hover {
  background-color: #ddd;
}

.tab button.active {
  background-color: #ccc;
}

.tabcontent {
  display: none;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-top: none;
}

/* Layout for Larger Screens */
@media screen and (min-width: 800px) {
  .maindata {
    width: 75%;
    float: left;
  }

  .sidebar {
    width: 24%;
    float: right;
  }
}

/* Clearfix Utility */
.clearDiv {
  clear: both;
  height: 10px;
  line-height: 10px;
}

/* Content Box Styling */
.contents {
  background: #FCFCFC;
  border: 1px solid #ddd;
  margin-top: -1px;
  padding: 10px;
  box-shadow: 1px 1px 10px 2px rgba(0, 0, 0, 0.67);
}

/* Werbung (Ad) Height Adjustments */
@media (max-width: 599px) {
  .werbung {
    height: 200px;
  }
}

@media (min-width: 600px) {
  .werbung {
    height: 280px;
  }
}

/* Werbung1 Height — Unified and Validated */
.werbung1 {
  height: 50px;
} 
/* Typography */
.smalltext {
  font-size: 12px;
}

/* Section Titles */
.titel1 {
  background: #dedede;
  padding: 4px;
  margin-top: 2px;
  font-weight: bold;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Breadcrumbs */
.bread {
  background-color: #FCFCFC;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 7px;
  margin: 10px 0;
  font-weight: 700;
  font-size: small;
}

/* Tags & Headers */
.tag,
.hed {
  background-color: #FCFCFC;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 7px;
  line-height: 1.5;
  margin-bottom: 8px;
  text-align: justify;
}

.tag {
  font-size: 12px;
}

.hed {
  font-size: 13px;
}

/* Footer */
.footer {
  background-color: red;
  background-image: linear-gradient(to right, #000, #f93f00, #000, #ec6e00, #000);
  color: #FCFCFC;
  text-align: center;
  padding: 5px;
  line-height: 20px;
  border-bottom: 2px solid red;
  margin-bottom: 20px;
}

.footer a {
  color: #ccc;
}

/* Button */
.morebtn {
  text-align: center;
  background: #000;
  padding: 5px 15px;
  border-radius: 5px;
  margin-bottom: 5px;
  display: inline-block;
  font-weight: 700;
  color: #FCFCFC;
}

/* Buttons */
.morebtn {
  text-align: center;
  background: #000;
  padding: 5px 15px;
  border-radius: 5px;
  margin-bottom: 5px;
  display: inline-block;
  font-weight: 700;
  color: #FCFCFC;
  transition: background-color 0.3s ease;
}

.morebtn:hover {
  background: red;
}

.morebtn a {
  color: #FCFCFC;
}

/* Pagination Area */
.pa {
  text-align: center;
  padding: 8px;
  background: #dde7f1;
}

.pa a {
  padding: 5px 8px;
  margin: 5px;
  display: inline-block;
  background: #FCFCFC;
  border: 1px solid #ccc;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.pa a:hover {
  background: red;
  color: #FCFCFC;
}

/* Alignment Utility */
.aligncenter {
  text-align: center;
}

/* Container Styling */
#sn {
  width: 1280px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background-color: #FCFCFC;
  box-shadow: 0 0 18px -4px rgba(0, 0, 0, 0.75);
}

/* Responsive Layout */
@media screen and (min-width: 700px) {
  #mainData {
    float: left;
    width: 69%;
  }

  #sidebar {
    float: right;
    width: 30%;
  }
}

@media screen and (min-width: 1080px) {
  #container {
    margin: auto;
    max-width: 1250px;
  }
}

/* Movie Item Components */
.movie-item {
  margin-bottom: 20px;
}

.movie-title {
  margin: 0.35rem 0;
  position: relative;
  font-size: 1.5rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  text-align: center;
}

.movie-title a {
  font-size: 14px;
  font-weight: 400;
  display: block;
  margin-bottom: 0;
}

.movie-title h1 {
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
  white-space: normal;
  margin-bottom: 7px;
}

/* Typography & Layout */
.movie-title {
  text-align: center;
  padding: 0 3px;
}

.movie-title a,
.grid-thumb .movie-original {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cardname {
  font-size: 15px;
}

/* Responsive Images */
.responsive {
  width: 100%;
  height: auto;
}

.post-thumb img {
  width: 170px;
  height: 190px;
}

.img-box {
  overflow: hidden;
  position: relative;
}

.img-box img {
  width: 100%;
  height: 180px;
}

/* Hover Overlay */
.movie-img-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  z-index: 100;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0.6);
  transition: opacity 0.5s ease;
}

.movie-img-inner:hover {
  opacity: 1;
}

.movie-img-inner > i {
  padding: 40% 0;
  color: #FCFCFC;
  font-size: 2rem;
}

/* Movie Text */
.movie-text {
  float: right;
  width: 100%;
  padding-left: 20px;
  max-height: 335px;
  overflow: hidden;
}

.movie-full .movie-text {
  max-height: none;
  overflow: auto;
}

/* Movie Image */
.movie-img {
  width: 300px;
  margin: 0 auto;
  float: none;
}

.movie-full .movie-img {
  height: auto;
  margin: 0 auto 30px;
}

/* Grid Layout */
.grid-thumb {
  margin: 0 -3px;
}

.grid-thumb .movie-item {
  width: 14.6%;
  margin: 0 1% 20px;
  float: left;
  position: relative;
  padding-bottom: 2rem;
  background: #FCFCFC;
  box-shadow: 0 0 16px -2px #000000b5;
  border-radius: 0.35rem;
}

.grid-thumb .movie-cols {
  padding-left: 0;
}

.grid-thumb .movie-img {
  width: 100%;
  float: none;
  margin-left: 0;
  border-radius: 0.35rem;
}

.grid-thumb .movie-text {
  float: none;
  padding-left: 0;
  position: absolute;
  left: 0;
}

.grid-thumb .movie-meta {
  display: none;
}

/* Utility */
.pseudo-link {
  cursor: pointer;
}

a,
.movie-img img,
.carou-title {
  transition: color 0.3s, background-color 0.3s, opacity 0.3s;
}

@media screen and (max-width: 950px) {
  #sn {
    width: auto;
  }

  .grid-thumb .movie-item,
  #dle-content .movie-item1 {
    width: 31%;
    margin: 0 1% 20px;
  }

  .movie-title a,
  .movie-title {
    padding: 2px 3px;
  }

  .albumInfo,
  .albumCover {
    float: none;
    text-align: center;
  }
}

@media screen and (max-width: 760px) {
  #sn {
    width: auto;
  }

  .movie-title h1 {
    font-size: 1.2rem;
  }

  .movie-item:not(.movie-full) .movie-desc {
    display: none;
  }

  .albumInfo,
  .albumCover {
    float: none;
    text-align: center;
  }
}

@media screen and (max-width: 470px) {
  .grid-thumb .movie-item,
  #dle-content .movie-item1 {
    width: 48%;
    margin: 0 1% 20px;
    padding-bottom: 40px;
  }

  .albumInfo,
  .albumCover {
    float: none;
    text-align: center;
  }
}

.btn {
  background-color: DodgerBlue;
  border: none;
  color: white;
  padding: 12px 30px;
  cursor: pointer;
  font-size: 20px;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: RoyalBlue;
}

.search button {
  background-color: #ed1c57;
  color: #FCFCFC;
  border: none;
  border-radius: 4px;
  padding: 7px;
  margin-left: 10px;
  font-weight: 700;
  transition: background-color 0.3s ease;
}

.search button:hover {
  background: #0a0a0a;
}

.search {
  background: #eee;
  text-align: center;
  padding: 5px;
}

.search input {
  padding: 8px;
  width: 45%;
}

.search input:focus {
  border: 1px solid red;
  color: red;
  font-weight: 700;
}

.content,
.content2,
.list-group-item,
.copy,
.de {
  position: relative;
  display: block;
  padding: 6px 8px;
  margin-bottom: -1px;
  border: 1px solid #ddd;
  background-color: #FCFCFC;
}

.copy {
  background-color: #E4FBCD;
}

.list-group,
.all {
  margin-bottom: 10px;
  padding-left: 0;
  font-size: 14px;
  box-shadow: 1px 1px 10px 2px rgba(0, 0, 0, 0.67);
}

.listcat {
  background: #FCFCFC;
  padding: 6px;
  border: 1px solid #eee;
  font-weight: bold;
  color: #325d81;
  margin: 3px;
  transition: background-color 0.4s ease;
}

.listcat a {
  color: #396a93;
  text-transform: none;
}

.listcat:hover {
  background: rgba(70, 130, 180, 0.2);
  text-transform: none;
}

.List {
  background: #fff;
  padding: 9px;
  border-radius: 4px;
  box-shadow: 0 0 16px -2px #000000b5;
}

/* Base nav styles */
.topnav {
  background-color: #111;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.topnav a {
  color: #ccc;
  text-align: center;
  padding: 12px 16px;
  text-decoration: none;
  font-size: 16px;
}

.icon {
  background: none;
  border: none;
  font-size: 24px;
  color: #ccc;
  cursor: pointer;
}
.icon:hover {
  color: #fff;
}

.topnav a:hover {
  background-color: #333;
  color: #fff;
}

.topnav .logo {
  font-weight: bold;
  color: #ffcc00;
}

.topnav .icon {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
  .topnav a {
    display: none;
  }

  .topnav a.logo {
    display: block;
  }

  .topnav .icon {
    display: block;
    margin-left: auto;
  }

  .topnav.responsive {
    flex-direction: column;
    align-items: flex-start;
  }

  .topnav.responsive a {
    display: block;
    width: 100%;
    text-align: left;
  }
}

/* Layout Wrapper */
.main-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
}

/* Main Content */
.content-area {
  flex: 1 1 70%;
  min-width: 300px;
}

/* 🌟 Sidebar Container */
.sidebar-section {
  background-color: #f9f9f9; /* Light background for contrast */
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 0 4px rgba(0,0,0,0.1);
}

/* 🧠 Sidebar Title */
.sidebar-title {
  color: #222222;
  font-size: 1.2em;
  margin-bottom: 10px;
}

/* 📎 Sidebar List */
.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 🎧 Sidebar Links */
.sidebar-list a {
  display: block;
  color: #003366; /* Dark blue for strong contrast */
  background-color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 12px;
  margin-bottom: 6px;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* 🖱️ Hover State */
.sidebar-list a:hover {
  background-color: #e0e0e0;
  color: #000000;
}

/* Download Button Styles */
a.dl-button {
  text-align: center;
  padding: 10px 40px;
  border-radius: 5px;
  margin-bottom: 10px;
  display: inline-block;
  font-weight: 700;
  color: #fff;
  width: 150px;
  background-color: #022BF7; /* Default background */
  transition: background 0.3s ease;
}

a.dl-button:hover {
  background: #021683;
}

/* Background Color Variants */
.bgcolor1 {
  background-color: #dc143c;
}

.bgcolor2 {
  background-color: #022BF7;
}

/* Utility Classes */
.hidden {
  display: none;
}

.ali {
  text-align: center;
}

/* Title Styling */
.title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 18px;
  padding: 7px 30px 9px 8px;
  display: inline-block;
  position: relative;
  background-image: linear-gradient(30deg, #261619, #190C0F 30%, #000);
  background-image: -webkit-linear-gradient(30deg, #261619, #190C0F 30%, #000000);
}

.article-header .title::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-top: 35px solid #000;
  border-right: 20px solid #fff;
}

/* Responsive Image */
.responsive {
  width: 100%;
  height: auto;
}

/* Container Box */
.cont {
  background: #fff;
  border: 1px solid #ddd;
  margin-top: -1px;
  padding: 10px;
  box-shadow: 1px 1px 10px 2px rgba(0, 0, 0, 0.67);
}

/* Tone Box Layout */
.rtone {
  display: flex;
  justify-content: center;
}

.rtone > div {
  background-color: #f1f1f1;
  width: 100px;
  margin: 10px;
  text-align: center;
  line-height: 40px;
  font-size: 16px; /* Adjusted from 'auto' */
}
  
  
  /* Image Container with Gradient Border */
.showimage {
  padding: 2px;
  margin: 6px auto 4px;
  text-align: left;
  position: relative;
  display: table;
  justify-content: center;
  border-width: 1px;
  border-radius: var(--border-width);
}

/* Image Styling */
.showimage img {
  vertical-align: middle;
  box-shadow: 8px 8px 12px 0 #848181;
}

/* Gradient Border Effect */
.showimage::after {
  content: "";
  position: absolute;
  top: calc(-1 * var(--border-width));
  left: calc(-1 * var(--border-width));
  z-index: -1;
  width: calc(100% + var(--border-width) * 2);
  height: calc(100% + var(--border-width) * 2);
  border-radius: calc(2 * var(--border-width));
  background: linear-gradient(
    60deg,
    #5f86f2,
    #a65ff2,
    #f25fd0,
    #f25f61,
    #f2cb5f,
    #abf25f,
    #5ff281,
    #5ff2f0
  );
  background-size: 300% 300%;
  background-position: 0 50%;
  animation: moveGradient 4s alternate infinite;
}

/* Gradient Animation */
@keyframes moveGradient {
  50% {
    background-position: 100% 50%;
  }
}

/* Button Styling */
.btn {
  background-color: DodgerBlue;
  border: none;
  color: white;
  padding: 12px 30px;
  cursor: pointer;
  font-size: 20px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #1e90ff;
}
.main-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.content-area {
  flex: 1;
  min-width: 300px;
}

.right {
  flex: 0 0 auto;
  min-width: 200px;
  max-width: 300px;
  width: 100%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.section-header h2 {
    font-size: 20px;
    color: #000;
    margin: 0;
}

.view-all-btn {
    background: #fff;
    color: #337ab7;
    border: 1px solid #337ab7;
    padding: 4px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}

.view-all-btn:hover {
    background: #337ab7;
    color: #fff;
}

.section-line {
    height: 2px;
    background: #d9534f;
    margin-bottom: 10px;
}
.social-bar {
    background: #000;
    padding: 12px 0;
    text-align: center;
  }

  .social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
  }

  .social-icons a img {
    width: 32px;
    height: 32px;
  }

  @media (max-width: 480px) {
    .social-icons {
      gap: 12px;
    }

    .social-icons a img {
      width: 20px;
      height: 20px;
    }
  }
  
  .audio-player-wrapper {
  max-width: 100%;
  margin: 1em auto;
  padding: 0.5em;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

audio {
  width: 100%;
  outline: none;
}