
/*
Website Project: Merrick Club home page
Author: Awadelkarim O Ramram
Date: 9/1/2023
Filename: styles.css
*/

/* Global styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  text-decoration: none;
  list-style: none;
  
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

/* Header styles */
header {
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: blue;
  color: white;
  padding: 0.5em;
  top: 0;
  z-index: 999;
}

/* Banner styles */
.banner {
  display: flex;
  position: relative;
  margin-top: 5px;
  margin-bottom: 0px;
  padding: 0.0em;
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  width: 100%;
  align-items: center;
}

/* Body styles */
body {
  font-family: montserrat;
  font-size: 16px;
  line-height: 1.4;
  background-color: white;
  color: blue;
  max-width: 1024px;
  margin: 0 auto;
  box-shadow: rgb(51, 51, 51) 10px 10px 25px, rgb(51, 51, 51) -10px 10px 25px;
}

/* Typography styles */
h1 {
  font-size: 1.5rem;
  text-align: center;
  color: BLUE;
  background-color: white;
}

h2 {
  margin-top: 2em;
}

/* Navigation styles */
nav {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

nav input {
  display: none;
}

nav ul li {
  display: inline-block;
}

nav ul li a {
  color: white;
  font-size: 17px;
  padding: 7px 13px;
  margin: 0 0.5em;
  text-transform: uppercase;
}

nav a {
  display: block;
  padding: 0.5em 1em;
  color: white;
  background-color: blue;
  border-radius: 5px;
  transition: background-color 0.4s ease;
}

/* Style the active link */
nav a.active {
  background-color: white;
  color: blue;
  transition: .5s;
}

/* Hamburger menu styles */
.checkbtn {
  font-size: 30px;
  float: right;
  line-height: 80px;
  margin-right: 40px;
  cursor: pointer;
  display: none;
}

#check {
  display: none;
}

/* Paragraph styles */
p {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  font-size: 1.2rem;
  line-height: 1.5;
}

/* Article styles */
article {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
  color: blue;
}

/* Main content styles */
main {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  margin: 0.5em;
  padding: 0.5em;
  background-color: white;
  flex-direction: column;    
}

/* Section styles */
section {
  padding: 2rem;
}

/* Footer styles */
footer {
  font-size: 0.9em;
  text-align: center;
  background-color: blue;
  margin: 0;
  color: white;
  padding: 1em;
}

/********************************* Home Page ************************************/

/* Slideshow styles */
.slideshow-container img {
  width: 100%;
  height: 50vh;
}

.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

.mySlides {
  display: none;
}

.dot-container {
  text-align: center;
}

.dot {
  height: 1em;
  width: 1em;
  border-radius: 50%;
  display: inline-block;
  background-color: blue;
  transition: background-color 0.6s ease;
  margin: 0.5em;
  cursor: pointer;
}

.active,
.dot:hover {
  background-color: white;
}

/* Latest news section styles */
.home-content {
  padding-top: 15px;
  color: rgb(255, 255, 0);
  padding-bottom: 10px;
}

.latest-news {
  color: white;
  text-align: center;
  font-size: 40px;
  padding-bottom: 10px;
  padding-top: 0;
}

.news-item {
  background-color: blue;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  padding: 1em;
  border-radius: 1rem;
  text-align: center;
}

.news-item img {
  height: 20%;
  width: 20%;
  object-fit: cover;
  object-position: center;
  margin-bottom: 0.5em;
  border-radius: 50%;
}

/* News section styles */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2em;
  padding: 1em;
  color: white;
  background: blue ;
  fill: white;
  cursor: pointer;
}

.prev {
  left: 0;
}

.next {
  right: 0;
}

.caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1em;
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  opacity: 0.8;
}

.news {
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  margin: 2em auto;
  padding: 1em;
  border-radius: 10px;
  text-align: center;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
  gap: 1em;
}

.news-item {
  background-color: white;
  color: blue; /* change the font color to blue */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  padding: 1em;
  border-radius: 10px;
  text-align: center;
}

.news-item img {
  height: 200px;
  width: 200px;
  object-fit: cover;
  object-position: center;
  margin-bottom: 0.5em;
  border-radius: 50%;
}

/* Photo section styles */
.photo {
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  margin: 2em auto;
  padding: 1em;
  border-radius: 10px;
  text-align: center;
}

.photo-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
  align-items: center;
  gap: 1em;
}

.photo-item {
  margin: 1em;
  padding: 1em;
  border-radius: 1rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.photo-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}

/* Blog section styles */
.blog {
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  margin: 2em auto;
  padding: 1em;
  border-radius: 10px;
  text-align: center;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
  align-items: center;
  gap: 1em;
}

.blog-item {
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  padding: 1em;
  border-radius: 1rem;
  text-align: center;
}

/********************************* Membership Page Styles *****************************/

/* Membership form styles */
form {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  margin: 0;
  padding: 2em;
  border-radius: 10rem;
  text-align: center;
  color: blue;
  font-size: large;
}

input[type=username],
input[type=tel],
input[type=email],
input[type=text],
input[type=password] {
  padding: 10px;
  margin: 5px;
  border-radius: 5px;
  width: 100%;
  text-align: center;
  
}

input[type=submit] {
  background-color: blue;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin: 15px;
  width: 200px;
}

.container form div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

label {
  margin-top: 0em;
  display: block;
  text-align: center;
}

/********************************** Contact Us Page ************************************/

/* Location section styles */
.location {
  display: flex;
  justify-content: center;
  align-items: center;
  color: blue;
}

/* Contact Info section styles */ 
.contact-info {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 3rem;
  color: blue;
  margin-bottom: 2em;
  padding-top: 1em;
}

.contact-col {
  display: flex;
  align-items: center;
  text-align: center;
  color: blue;
  margin: 1em;
}

.contact-col i {
  font-size: 1.5rem;
  margin-right: 1rem;
  color: blue;
}

.contact-form h2 {
  text-align: center;
  color: blue;
  padding-bottom: 1rem;
}

.contact-col h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: blue;
  text-align: center;
}

.contact-col p {
  font-size: 1rem;
  color: blue;
}

/************************************* Roosters Page *************************************/

/* Filter navigation styles */
.filter-nav {
  background: blue;
  color: rgb(15, 15, 14);
  font-size: 17px;
  border-radius: 5px;
  padding: 2px 25px;
  align-items: center;
  width: 100%;
  display: flex;
  justify-content: center;
}

.filter-nav a {
  text-decoration: none;
  padding: 9px;
  color: white;
  border: 1px solid blue;
  border-radius: 4px;
  margin: 1px;
  align-items: center;
}

.filter-nav a:hover,
.filter-nav .active,
.filter-nav .active:hover {
  background-color: white;
  color: blue;
}

/* Roster card styles */
.container {
  background: linear-gradient(45deg, rgb(241, 1, 1), blue);
  padding: 15px 9%;
  padding-bottom: 100px;
}

.container .heading {
  text-align: center;
  padding-bottom: 0px;
  color: white;
  text-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  font-size: 50px;
}

.container .box-container > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.container .box-container > div > .table1 {
  text-align: center;
  font-size: larger;
  padding: 2px;
 
  border-collapse: collapse;
  width: 100%;
}

.container .box-container .box {
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  background: #e3f706;
  text-align: center;
  padding: 30px 20px;
}

.animal-card-photo img {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: .3s ease-in-out;
}

.container .box-container>div .box img {
  height: 100px;
  object-fit: cover;
  transition: .3s ease-in-out;
}

.container .box-container .box h3, h4, h5 {
  color: blue;
}
.container .box-container .box h3 {
  font-size: 22px;
  padding: 0px 0;
}

.container .box-container .box .idn{
  margin-top: 10px;
  background: BLUE;
  color: white;
  font-size: 17px;
  border-radius: 5px;
  padding: 8px 25px;
}

.container .box-container .box .btn{
  margin-top: 10px;
  display: inline-block;
  background: blue;
  color: white;
  font-size: 17px;
  border-radius: 5px;
  padding: 8px 25px;
}

.container .box-container .box:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
  transform: scale(1.03);
}

/* Responsive styles */
@media (max-width: 952px){
  /* Header styles */
  .logo{
    font-size: 30px;
    padding-left: 50px;
  }
  nav ul li a{
    font-size: 16px;
  }
}

@media (max-width: 858px){
  /* Hamburger menu styles */
  .checkbtn {
    display: block;
  }

  /* Responsive navigation styles */
  ul {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: blue;
    top: 80px;
    left: -100%;
    text-align: center;
    transition: all .5s;
  }

  nav ul li {
    display: block;
    margin: 50px 0;
    line-height: 30px;
  }

  nav ul li a {
    font-size: 20px;
  }

  a:hover, a.active {
    background: none;
    color: blue;
  }

  #check:checked ~ ul {
    left: 0;
  }

  /* Background image for section */
  section {
    background: url(bg1.jpg) no-repeat;
    background-size: cover;
    height: calc(100vh - 80px);
  }
}