body{
    background-color: rgb(230, 235, 240);
}
.siteName{
    font-style: italic;
    margin-left: 50px;
    color: white;
    padding-right: 5px;
    border-right: 4px solid white;
}
.tabs{
    position: fixed;
    top: 0;
    width: 100%;
    margin-left: 5px;
    display: flex;
    background-color: rgb(182, 67, 77);
    margin: auto;
    z-index: 1001 !important;
}
.tabs a{
    text-decoration: none;
    margin: 30px;
    color: white;
}
.tabs a:hover{
    text-decoration: underline;
}
.nav{
    display: flex;
    flex-direction: row;
}
.mobile_options{
    display: none;
}
.categories{
    margin-top: 80px;
    display: flex;
    padding: 4px;
    background-color: rgb(59, 23, 26);
}
.categories a{
    margin: auto;
    text-decoration: none;
    color: white;
}
.Head img{
    margin-left: 200px;
    border-radius: 7px;
    max-height:70vw;
}

.live {
    position: fixed;
    right: 50px;
    top: 20%;
    z-index: 1000;
}

.live div {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border-left: 5px solid rebeccapurple;
    border-right: 5px solid rebeccapurple;
    animation: animate 1s linear infinite  reverse;
}
@keyframes animate {
    100%{
        translate: 5px;
    } 
}

.live div div{
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transform: translate(20%, 50%);
    border-left: 5px solid rebeccapurple;
    border-right: 5px solid rebeccapurple;
}
.live div div section{
    background-color: black;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: translate(50%, 50%);
    
}
.live span{
    display: block;
    color: red;
    font-size: large;
    text-align: center;
    font-weight: 900;
}

.search{
    margin: 20px;
}
.search input{
    width: 250px;
    height: 23px;
    padding: 6px;
    border-radius: 10px;
}
.topStories{
    display: grid;
    grid-template-columns: 1fr 2fr;
}
.topStories div div{
    margin: 10px;
    background-color:white;
    border-radius: 5px;
    padding: 5px;
}
.newAll{
    display: flex;
    flex-wrap: wrap;
}
.newAll a{
    text-align: center;
    width: 25%;
}

.Trendingbar{
    background-color:white;
    width: 350px;
    margin: 20px;
    padding: 5px;
}
.Trendingbar ul{
    line-height: 30px;
}
.popularBar li{
    display: grid;
    grid-template-columns: 1fr 1fr;  
}
.popularBar li div{
    margin-right: 10px;
}
main{
    display: grid;
    grid-template-columns: 3fr 1fr;
    margin: 10px;
    margin-top: 20px;
}



/* Newsletter popup */

 /* Modal container */
 .modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* Black with opacity */
  }
  /* Modal content box */
  .modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 2px solid rgb(182,67,77);
    border-radius: 10px;
    max-width: 500px;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  }
  /* Close button style */
  .close-btn {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
  }
  .close-btn:hover {
    color: #000;
  }
  /* Newsletter form styles */
  .newsletter-section h2 {
    color: rgb(182,67,77);
    text-align: center;
    margin-bottom: 10px;
  }
  .newsletter-section p {
    text-align: center;
    color: #555;
    font-size: 16px;
    margin-bottom: 20px;
  }
  .newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .newsletter-form input[type="email"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
  }
  .newsletter-form button {
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: rgb(182,67,77);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  .newsletter-form button:hover {
    background-color: #b04046;
  }
  .newsletter-footer {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #007bff;
  }

#footer{
    background-color:rgb(8, 2, 19);
    color: cornsilk ;
    text-align: center;
}
#footerDisplay1{
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.footerList{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
#footerLinkColor{
    color: cornsilk;
} 

@media (max-width:500px) {
    .siteName{
       width: 20%;
       margin-left: 30px;

    }
    .Head img{
        margin-left: 10px;
        width: 95%;
    }
    .categories{
        height: 50px;
    }
    .categories a{
        display: none;
    }
    .tabs{
        width: 100%;
        display: flex;
       justify-content: space-between;
       margin-left: -8px;
    }
    .nav{
        position: fixed;
        top: 100px;
        right: 0;
        height: 90%;
        width: 90%;
        background-color: #b04046;
        flex-direction: column;
        display: none;
    }
   
    .tabs a{
        margin: 25px 30px;
    }
    .mobile_options{
        display: flex;
        justify-content: center;
        align-items: center;
        padding-right: 25px;
        font-size: 25px;
        color: white;
    }
    .Subscribe{
        font-size: 15px;
        margin: 10px;
        padding: 10px;
        background-color: aliceblue;
        color: brown;
        border-radius: 5px;
    }
    main{
        display: block;
        margin: 10px;
        margin-top: 20px;
    }
    
    .live {
        position: fixed;
        right: 20px;
        top: 20%;
        z-index: 1000;
    }
    .topStories{
        display: block;
    }
    .topStories div div{
        margin:10px 0px;
        background-color:white;
        border-radius: 5px;
        padding: 5px;
    }

    .topStories div div img{
        width: 100%;
    }
    .T0{
        margin-bottom: 90px;

    }

    .T1{
        position: relative;
        height: 90px;
    }

    .T1 p{
        position: absolute;
        top: 50%;
        color: white;
        background-color: black;
        opacity: 0.7;
    }
    .T2 img{
        width: 500px;
    }

    .newAll{
        display: block;
        flex-wrap: wrap;
    }
    .newAll a{
        text-align: center;
        width: 100%;
    }
    .newAll a .T1{
        position: unset;
        height: unset;
    }

    .newAll a .T1 p{
        position: unset;
        color: black;
        opacity: 0.7;
        background-color: white;
    }

    img{
        max-width: 100%;
    }
    video{
        max-width: 100%;
    }
    .Trendingbar{
        background-color:white;
        width: 95%;
        margin: 0 20px 20px 0 ;
        padding: 5px;
    }

    .modal-content {
        margin: 40% auto;
      }

    #footerDisplay1{
        display: block;
    }

}