* {
    box-sizing: border-box;
}

html {
    font-family: "Lucida Sans", sans-serif;
}
hr {
    width: 100%;
    margin: 10 auto;
}
body {
    background-color: black;
    margin: 0;
    font-size: 100%;
}
h1 {
    color: white;
    text-align: center;
    font-size: 2.5em;
}
h2 {
    color: white;
    text-align: center;
    font-size: 1.875em;
}
h3 {
    color: White;
    text-align: center;
    font-size: 1.75em;
}
h4 {
    color:White;
    text-align: left;
    font-size: 1em;
    font-style: italic;
}
p1 {
    color: white;
    font-size: 1.0em;
    line-height: 1.45;
}
/*For author highlight*/
p2 {
    color:white;
    font-size: 1.125em;
    padding: 0px;
}
p3 {
    color: paleturquoise;
    font-size: 1.0em;
}
p4 {
    color: white;
    font-size: 1.0em;
    padding-left: 0%;
    padding-top: 2%;
    float: left;
}
/*container for text to stop it getting to close to the edge of the screen*/
.container {
    padding-right: 10%;
    padding-left: 10%;
    background-color: black;
}
.container-alt {
    background-color: black;
}
.container-alt2 {
    padding-right: 0%;
    padding-left: 0%;
    background-color: black;
}
.container-alt3 {
    margin-top: -10px;
    padding-right: 10%;
    padding-left: 10%;
    background-color: black;
}
/*Header text over image*/
.hero-text {
    color: white;
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
/*Hero image background for section 1*/
.hero-image-alt {
    background: url(../images/Hero-image.jpg);
    background-size: cover;
    background-position: center;
    position: sticky;
    top: 0;
    height: 500px;
    width: auto;
    z-index: -1;
}
/*Styling for sticky nav bar*/
ul {
    list-style-type: none;
    margin: 0px 0px;
    padding: 0;
    overflow: hidden;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1;
}

li {
    float: right; /*Floating to the right make ths list elements align right to left*/
}

li:last-child { /*Moves the final element to the opposite side of the nave bar*/
    border-left: none;
}

li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    /*background-color: black;*/
}

li a:hover:not(.active) {
    background-color: lightgrey;
}

.active {
    background-color: darkgrey;
}

/*Image float properties*/
img {
    float: center;
}
/*Email link*/
.email {
    color: white;
    background: transparent;
    text-decoration: none;
    padding: 0%;
    float: left;
    clear: both;
    transition: 0.5s ease;
    opacity: 0.60;

}
.email:hover {
    color: white;
    background: transparent;
    text-decoration: underline;
    opacity: 1.0;
}

.emailheader {
    color: white;
    opacity: 0.60;
    text-decoration: none;
    transition: 0.5s ease;
}
.emailheader:hover {
    color: white;
    opacity: 1.0;
    text-decoration: none;
}

/*4 images in about section*/
#img1 {
    float: left;
    margin-right: 2%;
    margin-left: 0%;
    width: 19%;
    height: auto;
    clear: both;
}
#img2 {
    float: left;
    margin-right: 2%;
    margin-left: 0%;
    width: 19%;
    height: auto;
    padding-bottom: 10px;
}
#img3 {
    float: left;
    margin-right: 2%;
    margin-left: 0%;
    margin-bottom: 2%;
    width: 40%;
    height: auto;
    clear: right;
}
img.four {
    float: left;
    margin-right: 2%;
    margin-bottom: 2%;
    width: 40%;
    height: auto;
    clear: right;
}
#img5 {
    float: left;
    margin-right: 2%;
    margin-left: 0%;
    margin-bottom: 2%;
    width: 40%;
    max-width: 150px;
    height: auto;
    max-height: 150px;
    clear: right;
}
@media screen and (max-width: 1181px) {
    img.four {
        display: none;
    }
}
/*social media style.*/
#socialmedia {
    opacity: 0.60;
    display: block;
    margin-left: 17%;
    width: 3%;
    height: auto;
    float: left;
    transition: 0.5s ease;
}
#socialmedia-alt {
    opacity: 0.60;
    display: block;
    margin-left: 17%;
    width: 6%;
    height: auto;
    float: left;
    transition: 0.5s ease;
}
#socialmedia:hover {
    opacity: 1.0;
}
#socialmedia-alt:hover {
    opacity: 1.0;
}
/*publication styles*/
.pubs {
    text-decoration: none;
    text-decoration-color: white;
}
.pubs:hover {
    text-decoration: underline;
    text-decoration-color: white;
}
.pubs:visited {
    text-decoration-color: white;
}
.pubs.active {
    text-decoration-color: white;
}

/*nav bar color transition*/
#colorful-list {
  transition: background-color 0.5s ease;
}

#colorful-list.scrolled {
  background-color: black;
}
/*Embedded youtube videos style*/
.youtube-video {
  aspect-ratio: 16 / 9;
  width: 100%;
  display: block;
  margin: 0 auto;
}

/*EU image style*/
#imgEU {
    float: left;
    width: 20%;
    height: auto;
    clear: right;
    max-width: 200px;
    min-width:120px;
}
/*Styling for blog landing page*/
.flex-container {
    display: flex;
    flex-direction: row;
    text-align: center;
    text-overflow: ellipsis;
}

.flex-item-left {
    background-color: black;
    padding: 10px;
    flex: 50%;
    gap: 10px;
    text-align: left;
}

.flex-item-right {
    background-color:rgb(40,40,40);
    padding: 10px;
    flex: 50%;
    gap: 10px;
    text-align: left;
}
.link-container {
    display: flex;
    flex: 50%;
    flex-direction: row;
    text-decoration: none;
    color: inherit;
}
.link-container:hover {
    text-decoration: underline;
    text-decoration-color: white;
}
.link-container h3 p2 {
    text-decoration: none;
}
/* Responsive layout - makes a one column-layout instead of two-column layout */
@media (max-width: 800px) {
    .flex-container {
    flex-direction: column;
  }
}
/*individual blog pages*/
#img-blog {
    float: left;
    margin-right: 2%;
    margin-left: 0%;
    width: 80%;
    height: auto;
    clear: both;
}
#img-blog-alt {
    clear: both;
    width: 80%;
    height: auto;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    border-radius: 5px;
    padding-bottom: 10px;
}

#contactinfo {
    display: block;
    margin-left: 10%;
    float: left;
}

/*Pagination style*/
.center {
    text-align: center;
}

.pagination {
    display: inline-block;
}

.pagination a {
    color: lightgray;
    float: left;
    padding: 8px 16px;
    text-decoration: none;
    transition: background-color .3s;
    border: 1px solid lightgray;
    margin: 0 4px;
}

.pagination a.active {
    background-color :lightgray;
    color: white;
    border: 1px solid white;
}

.pagination a:hover:not(.active) {
    color: white;
    border: 1px solid white;
    background-color: darkgray;
}

@media screen and (max-width: 600px) {
    .hide {
    display: none;
  }
}

/*Stuff for the slide show of podcasts*/

.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
  .prev, .next,.text {font-size: 11px}
}