/* ------------------------------
   COLOUR VARIABLES
------------------------------ */
:root {
  --blue: #003A70;
  --yellow: #F7C600;
  --bg: #F5F7FA;
  --white: #FFFFFF;
  --text: #1A1A1A;
  --text-secondary: #6B6B6B;
  --divider: #D9DDE3;
  --tint-blue: #E8F0FA;
  interpolate-size: allow-keywords;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  width: 100vw;
  max-width: 100%;
  margin: 0;
}
/* ------------------------------
   GLOBAL STYLES
------------------------------ */
body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  line-height: 120%;
}

h1, h2, h3 {
  color: var(--blue);
  margin-top: 0;
}

/* ------------------------------
   HEADER
------------------------------ */
.site-header {
  background: var(--blue);
  color: var(--white);
  padding: 16px 0;
  box-shadow: 0 5px 12px rgba(0,0,0,0.5);
  top: 0;
  position: sticky;
  z-index: 10;
}

.header-inner {
  max-width: 1200px;
  margin: auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.header-inner > p {
  font-size: 2rem;
  font-weight: 700;
  line-height: normal;
}

.club-logo {
  height: 90px;
  width: auto;
}

/* ------------------------------
   HERO SECTION
------------------------------ */
.hero {
  text-align: center;
  padding-top: 60px;
  padding-bottom: 2rem;
  /* background: linear-gradient(135deg, var(--blue) 60%, var(--yellow) 100%);
  color: var(--white);
  mask-image: linear-gradient(black, rgba(0, 0, 0, 0.609) 60%, transparent);
  overflow: hidden;
  line-height: 8rem; */
  
}

.hero img {
  position: absolute;
  top: 122px;
    left:24px;
    /* transform: translate(-50%,-20%); */
    /* min-width: 100%; */
    /* min-height: 100%; */
    width: auto;
    height: 230px;
    opacity: 0.4;
  mask-image: linear-gradient(transparent 0% , black);
  z-index: -1;
}

/* .hero h2 {
  font-size: 2.4rem;
  margin-bottom: 8px;
  color: var(--white);
  z-index: 5;
  
} */


/* .hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  color: var(--white);
  font-weight:700;
 
} */

#jump {
  border: 4px solid var(--yellow);
  outline: none;
  background-color: var(--blue);
  color: var(--white);
  cursor: pointer;
  padding: 1rem;
  border-radius: 15px;
  font-size: 18px;
  transition: color 0.5s;
  transition: background-color 0.5s;
  animation: flash 1s ease-out 0.5s;
  text-decoration-line: none;
  box-shadow: 0 5px 12px rgba(0,0,0,0.5);
}

#topBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 98;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: red;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 4px;
  /* box-shadow: 0 0 0.8em #000; */
  box-shadow: 0 5px 12px rgba(0,0,0,0.5);
  transition: color 0.5s;
  transition: background-color 0.5s;
  text-decoration-line: none;
}
.content-transition {
  opacity: 1;
  transform: none;
}
/* ------------------------------
   TIMELINE
------------------------------ */
.timeline {
  position: relative;
  margin: 1rem auto;
  padding-top: 0.5rem;
  max-width: 800px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  width: 6px;
  height: 100%;
  background: var(--blue);
  border: 2px solid var(--blue);
  border-radius: 15px;
  z-index: 0;
}

.timeline-item {
  padding: 15px;
  position: relative;
  background-color: inherit;
  /* width: 50%; */
  z-index: 2;
  padding-block: 1rem;
}

.timeline-item::before {
  content: "";
  display: block;
  background-image: url("https://s3-eu-west-1.amazonaws.com/p-c2gallery.ecb.co.uk/uploads/photo/image/292345/1AEA4DE1-F88A-48F3-9AB7-1D5FF82421B7.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  position: absolute;
  left: 8px;
  top: 6px;
  width: 50px;
  height: 50px;
  border: 3px solid var(--yellow);
  border-radius: 50%;
}

.timeline-card {
      background: var(--white);
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.5);
    margin-left: 50px;
    border: 4px solid var(--yellow);
    margin-right: 20px;
}

.timeline-year {
/* position: relative; */
z-index: 2;
/* margin: auto; */
width: 100%;
  /* opacity: 0;
      transform: scalex(0);
      transition: opacity 1.5s ease, transform 1s ease; */
overflow: hidden;
}
.timeline-year > summary {
  position: relative;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--blue);
    background: var(--yellow);
  padding: 15px 15px;
    border-radius: 0 100vw 100vw 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.5);
    border: 4px solid var(--blue);
   width: fit-content;
   min-width: 100px;
   /* margin: auto; */
   /* align-content: center; */
   margin-bottom: 1rem;
   cursor: pointer;
   overflow: hidden;
   z-index: 3;
   margin-left: 33px;
}

.timeline-year::details-content {
  block-size: 0;
  /* background: red; */

  transition: block-size 0.7s, content-visibility 0.7s;
  transition-behavior: allow-discrete;
}

.timeline-year[open]::details-content {
  block-size: auto;
  margin-bottom: 1rem;
}

.content-transition {
  opacity: 1;
  transform: none;
}

.timeline-card img {
  max-width: 100%;
  /* display: block; */
  position: relative;
  /* width: 100%; */
  /* height: auto; */
  /* max-width: 625px; */
  margin-left: auto;
  margin-right: auto;
  display: block;
  cursor: zoom-in;
  border-radius: 10px;
}

.myImages {
  opacity: 1;
  max-width: 100%;
  /* aspect-ratio: initial; */
  object-fit: contain;
  max-height: 50vh;
  width: auto;
  height: auto;
  display: block;
  transition: opacity ease-out 300ms;
}

.imageCon {
  position: relative;
  margin: 0.5em;
  background-color: #fff;
  border-radius: 10px;
  object-fit: contain;
}
.imageCon::before,
.imageCon::after {
  content: "";
  position: absolute;
  top: 1.25em;
  bottom: 1.25em;
  left: 1.25em;
  right: 1.25em;
  cursor: zoom-in;
  opacity: 1;
  transition: transform ease-out 500ms;
}

.imageCon::before {
  
  transform: scale(0, 1);
}

.imageCon::after {
  
  transform: scale(1, 0);
}

.card__text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  opacity: 0;
  width: 80%;
  transition: opacity ease-out 250ms;
  text-align: center;
}

.card__title {
  line-height: 110%;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 0;
}
.card__body::after {
  content: "\A Click to expand image";
  white-space: pre;
  font-size: 0.8rem;
}

.modal-content {
  justify-content: center;
  align-items: center;
  display: none;
  flex-direction: column;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  padding-top: 20px;

  background-color: rgba(0, 0, 0, 0);
}

.modal-content img {
  display: block;
  position: relative;
  z-index: 100;
  cursor: zoom-out;
  border-radius: 5px;
  box-shadow: 0 5px 12px rgba(0,0,0,0.5);
}

.modal {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  /* background: linear-gradient(rgba(17, 27, 85, 0.6), rgba(17, 27, 85, 0.6)),
    url("https://s3-eu-west-1.amazonaws.com/p-c2gallery.ecb.co.uk/uploads/photo/image/293282/28FD43E9-39BB-41B0-9703-7DD034642922.png"); */
  background-color: var(--blue);
  background-repeat: space;
  background-size: 20em;
  background-position: left;

  opacity: 0;
  display: none;
  transition: opacity 0.4s;
  z-index: 99;
}

#caption {
  font-family: Trebuchet MS, sans-serif;
  font-size: 18px;
  text-align: center;
  line-height: 110%;
  margin: 20px;
  display: block;
  width: auto;
  max-width: 700px;
  color: var(--white);
  padding: 10px 10px;
  height: auto;
  z-index: 100;
  border: 4px solid var(--yellow);
  border-radius: 10px;
  background-color: var(--blue);
  box-shadow: 0 5px 12px rgba(0,0,0,0.5);
  cursor: zoom-out;
}

/* .modal-content,
				#caption {
					animation: zoom 0.6s ease-out animation-duration: 0.6s;
				}
				
				@keyframes zoom {
					from {
						transform: scale(0)
					}
					to {
						transform: scale(1)
					}
				} */

.close {
  position: absolute;
  top: 80px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* ------------------------------
   DECADE BAND
------------------------------ */
.decade-band {
  background: var(--tint-blue);
  padding: 32px 24px;
  border-radius: 8px;
  margin: 64px 0;
}

/* ------------------------------
   FOOTER
------------------------------ */
.site-footer {
  text-align: center;
  padding: 24px;
  background: var(--blue);
  color: var(--white);
  margin-top: 60px;
}

/* ------------------------------
   RESPONSIVE
------------------------------ */
@media (max-width: 600px) {
  /* .timeline {
    padding-left: 30px;
  }
  .timeline-year > summary {
    margin: 0;
    margin-bottom: 1rem;
    margin-left: 3px;
    border-radius: 0 100vw 100vw 0
  } */
  /* .timeline-card {
    margin-left: 32px;
  } */

  /* .header-inner {
    flex-direction: column;
    text-align: center;
  } */

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
}
@media (hover: hover) {
  #jump:hover {
    background-color: whitesmoke;
    color: #333399;
  }
  #topBtn:hover {
    background-color: whitesmoke;
    color: red;
  }
  #myBtn:hover {
    background-color: #555;
  }
  .imageCon:hover {
    background-color: rgb(37, 37, 37);
  }
  .imageCon:hover img {
    opacity: 0.2;
  }
  .imageCon:hover::before {
    border-top: 1px solid white;
  border-bottom: 1px solid white;
    transform: scale(1.05, 1);
  }
  .imageCon:hover::after {
    border-left: 1px solid white;
  border-right: 1px solid white;
    transform: scale(1, 1.05);
  }
  .imageCon:hover .card__text {
    opacity: 1;
  }
  .close:hover {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
  }
}
