/* explore page css  */

body{
    width: 100%;
    margin:0;
    padding:0;
}

main{
    min-height: 100vh;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

/* title css */
.title{
    margin-top: 80px;
    text-align: center;
    font-size: var(--font-size-header);
    color: var(--header-color);
    font-family: var(--font-family-header);
    padding-bottom: 10px;
    border-bottom: 3px dashed var(--header-color);
    font-weight: bold;
    font-style: italic;
}

.second-word-h2{
    display: inline-block;
}
.title::first-letter ,.second-word-h2::first-letter {
    font-size: 30px;
    color: rgb(198, 151, 33);
    font-weight: bold;
}



/* card css */ 

.card-main-div{
  display:flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 40px;
  margin-top:40px;
}


.card {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
}

.card-title {
  margin:10px;
  padding: 5px;
  font-size: 1.0em;
  color: var(--secondary-color);
  font-family: var(--font-family-header);
}

/* images */
.card-images {
  position: relative;
  width: 100%;
  height: 200px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card-images li {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* two images with hover */
.card-images li:first-child {
  opacity: 1;
}

.card:hover .card-images li:nth-child(1) {
     opacity: 0; 
}
.card:hover .card-images li:nth-child(2) {
     opacity: 1; 
}


.card-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  
}
