/*-- Body Reset --*/
body {
  overflow-x: hidden;
  font-family: 'Ubuntu', sans-serif;
  /*color: #616971;*/
  /*color: #6B8E23;*/
  color: #23638e;
}

/*============= TOP BAR HEADER =============*/
.top-bar{
  /*background: #7aaec4;*/
  /*background: #6B8E23;*/
  /*background: #23638e;*/
  height: 2.8rem;
  padding: .5rem 0;
}
.top-bar a{
  /*color: white;*/
  text-decoration: none;
  font-size: 0.92rem;
}
.top-link{
  color: #5b5555!important;
}
.top-link.active,
.top-link:hover{
  /*color: #4981b3!important;*/
  color: #23638e!important;
}

/* Add a media query for responsiveness */
@media only screen and (max-width: 767px) {
  .top-bar {
    height: auto; /* Adjust height for smaller screens */
  }

  .top-bar .col-md-6 {
    text-align: center; /* Center content on smaller screens */
    margin-bottom: 10px; /* Add space between elements */
  }

  .top-bar .col-md-6.text-right {
    text-align: center; /* Center content on smaller screens */
    margin-top: 10px; /* Add space between elements */
  }
}
/*============= NAVIGATION =============*/

.middle-bar{
background: #23638e;
/*background: #184f73;*/
  padding: 1rem;
}
.middle-bar a{
color: white;
  text-decoration: none;
font-size: 1.2rem;
}
.middle-bar i{
color: white;
}
/* Add a media query for responsiveness */
@media only screen and (max-width: 767px) {
  .middle-bar .col-md-6.text-right a{
    text-align: center; /* Center content on smaller screens */
    margin-top: 10px; /*Add space between elements */
max-width: 100%;
font-size: 0.8rem !important;
  }
}
.navbar-brand img{
  height: 6rem;
}

.navbar{
padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: 40px !important;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: .1rem;
  box-shadow: 0 .5rem .5rem rgba(0,0,0,.1);
  z-index: 1;
}

.nav-item{
  display:block; 
  /*float:none;*/
  padding: .4rem;
  /*white-space:pre;*/
}
.nav-link{
  color: #5b5555!important;
}
.nav-link.active,
.nav-link:hover{
  /*color: #4981b3!important;*/
  color: #23638e!important;
}
.dropdown-item.active,
.dropdown-item:hover{
  /*color: #4981b3!important;*/
  color: #23638e!important;
}
.dropdown-toggle::after { 
  content: none; 
} 

/*============= CAROUSEL =============*/
#carousel{
  box-shadow: 0 1rem 1rem rgba(0,0,0,.1);
}
.carousel-inner{
z-index: -1;
  max-height: 38rem!important;
}


/*---Change Carousel Transition Speed --*/
.carousel-item-next,
.carousel-item-prev,
.carousel-item.active{
  transition: transform 1.2s ease;
}
/*.carousel-control-prev,
.carousel-control-next{
display: none;
}*/
/*-- Carousel Content --*/
.carousel-caption{
  position: absolute;
  top: 70%;
  /*top: 52%;
transform: translateY(-50%);
  text-transform: uppercase;*/
}
.bg-custom{
  background-color: rgba(0,0,0,.4);
  color: white;
  border-radius: 1rem;
}

.carousel-caption h1{
  font-size: 2rem;
  text-shadow: .1rem .1rem .3rem rgba(0,0,0,1);
}


/*.border-primary{
  border-top: .2rem solid #4981b3!important;
}*/

.carousel-caption h3{
  font-size: 1.2rem;
  text-shadow: .1rem .1rem .2rem rgba(0,0,0,1);
}

.btn-lg{
  border-radius: .5rem;
  /*text-transform: uppercase;*/
  font-size: 1rem;
  border-width: medium;
}
.btn-danger{
  background-color: #AC2615;
  border: .05rem solid #ac2615;
}
.btn-primary{
  background-color: #4981b3;
  border: .05rem solid #4981b3;
}
.btn-primary:hover,
.btn-primary:focus{
  background-color: #68a0d2!important;
  border: .05rem solid #68a0d2;
}

/*.anileft{
  animation: slideInFromLeft 1s ease-in;
}
.aniright{
  animation: slideInFromRight 1s ease-in;
}*/

/*===== FIXED BACKGROUND IMG =====*/
.fixed{
  background-image: url('../img/matrix.jpg');
}
.fixed-background{
  padding: 5rem 0;
}

.fixed-background {
  overflow: hidden; /*-- Correction for iOS --*/
}


/*-- Emoji Navbar --*/
.emoji{
  background-image: linear-gradient(to right, #4981b3, #ac2615);
  min-height: 0!important;
  padding: .4rem 0!important;
}
.emoji .svg-inline--fa{
  margin: 0 auto;
  color: white;
  font-size: 2rem;
}



/*============= FOOTER =============*/
footer{
  /*background-color: #383838;*/
  background-color: #23638e;
/*padding: 1rem 2rem 3rem;*/
  padding: 0.5rem;
}
footer img{
  height: 3.5rem;
  margin: 1.5rem auto;
}
footer p, footer a, .socket a{
  color: white;
  text-decoration: none;
}
ul.social{
  list-style-type: none;
  display: flex;
  max-width: 10rem;
  margin: 0 auto;
  padding: 0;
}
ul.social li{
  margin: 0 auto;
}
footer .svg-inline--fa{
  font-size: 2.3rem;
}
footer .svg-inline--fa:hover{
  color: #3d5114;
}

footer .fa-facebook:hover, .fa-twitter:hover,
.fa-instagram:hover, .fa-youtube:hover{
  color: #23578e;
}

/*============= SOCKET =============*/
.socket{
  /*background-color: #222222;*/
  background-color: #23578e;
  /*border-top: .1rem solid #4981b3;*/
}


/*============= MEDIA QUERIES =============*/

/* Devices under 1199px (xl) */
@media (max-width: 1199.98px) {
  .carousel-caption h1{
    font-size: 2.8rem;
  }
  
  .carousel-caption h1{
    font-size: 1.8rem;
  }
}
/* Devices under 992px (lg) */
@media (max-width: 991.98px) {
  .carousel-caption h1{
    font-size: 2.5rem;
  }
  
  .carousel-caption h1{
    font-size: 1.5rem;
  }
  .btn-lg{
    font-size: .95rem;
  }
}

@media all and (min-width: 992px) {
	.navbar .nav-item .dropdown-menu{ display: none; }
	.navbar .nav-item:hover .nav-link{ color: #fff;  }
	.navbar .nav-item:hover .dropdown-menu{ display: block; }
	.navbar .nav-item .dropdown-menu{ margin-top:0; }
}	

/*============ BOOTSTRAP BREAK POINTS:

Extra small (xs) devices (portrait phones, less than 576px)
No media query since this is the default in Bootstrap

Small (sm) devices (landscape phones, 576px and up)
@media (min-width: 576px) { ... }

Medium (md) devices (tablets, 768px and up)
@media (min-width: 768px) { ... }

Large (lg) devices (desktops, 992px and up)
@media (min-width: 992px) { ... }

Extra (xl) large devices (large desktops, 1200px and up)
@media (min-width: 1200px) { ... }

=============*/

/*-- Bootstrap Mobile Gutter Fix --*/
.row, .container-fluid {
  margin-left: 0px !important;
  margin-right: 0px !important;
}

/*-- Fixed Background Image --*/
.fixed-background {
  position: relative;
  width: 100%;
  z-index: 1000!important;
}
.fixed-wrap {
  clip: rect(0, auto, auto, 0);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -999 !important;
}
.fixed {
  z-index: -999!important;
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}

#random, #welcome, #activity{
  /*background-color: #f8f9fa;*/
background-color: #cdf2f7;
}

/* Animation Counter */
.counter-up{
  background: #23638e;
  min-height: 50vh;
  display: flex;
  align-items: center;
  padding: 0 50px;
}

/*.counter-up::before{
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0,0,0,0.8);
}*/

.counter-up .content{
  position: relative;
  /*z-index: 1;*/
  display: flex;
  width: 100%;
  height: 100%;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.content .box{
  width: calc(25% - 30px);
  /*border: 1px groove rgba(255,255,255,0.6);*/
  border: 1px groove white;
  border-radius: 5px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  /*color: #fff;*/
  color: white;
  flex-direction: column;
  border-radius: 5px;
}

.content .box .icon{
  font-size: 48px;
  /*color: #e6e6e6;*/
  color: white;
}

.content .box .counter{
  font-size: 40px;
  /*color: #f2f2f2;*/
  color: white;
  font-weight: 500;
  font-family: sans-serif;
}

@media (max-width: 1036px){
  .counter-up{
    padding: 50px 50px 0 50px;
  }
  .content .box{
    width: calc(50% - 30px);
    margin-bottom: 50px;
  }
}

@media (max-width: 580px){
  .content .box{
    width: 100%;
  }
}

/* Overlay */

#random1 .container {
  position: relative;
  width: 100%;
}
.image {
  display: block;
  width: 100%;
  height: auto;
}

.overlay {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  /*background-color: #008CBA;
  background-color: #6B8E23;*/
  background-color: #23638e;
  overflow: hidden;
  width: 100%;
  height:0;
  transition: .5s ease;
}

.over1:hover .overlay,
.over2:hover .overlay,
.over3:hover .overlay {
  bottom: 0;
  height: 100%;
}

.text {
  color: white;
  font-size: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;
}

/*=========News=======*/

#content-container {
            float: left;
            width: 70%;
font-size: 20px;
        }

        #sidebar{
            float: left;
            width: 100%;
            background-color: #cdf2f7;
            padding: 40px;
            box-sizing: border-box;
font-size: 18px;
        }
#sidebar ul {
  list-style-type: none;
  padding: 0;
}
#sidebar li{
padding: 10px 0
}
#sidebar li:not(:last-of-type) {
  border-bottom: 3px solid tomato;
}
.news{
cursor: pointer;
}
.news:hover{
color:#4981b3;
}

        .hidden {
            display: none;
        }
