body {
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: #f8f6f3;
    font-size: 20px;
}

.title-bar {
    width: 100%;
    background-size: cover;
    background-position: center 60%;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    padding: 100px 20px;
    font-size: 32px;
    font-family: Georgia, 'Times New Roman', Times, serif;
}


.index-header{
    background-image:
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
        url("chess-board.avif");    
}

.video-header {
background-image:
linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
url("ancient-roman-abacus.jpeg");
}

.applet-header {
background-image:
linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
url("sundial.jpg");
}

.knight-header {
background-image:
linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
url("wooden-chess-knight.jpg");
}

.hanoi-header {
background-image:
linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
url("tower-of-hanoi-lake.jpg");
}

.josephus-header {
background-image:
linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
url("jewish-synagog.jpg");
}

.nim-header {
background-image:
linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
url("chinese-coin-auction.webp");
}

.internet-header{
background-image:
linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
url("ancient-roman-abacus.jpeg");   
}

.about-me-header{
background-image:
linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
url("football\ game.jpeg");   
}

.navbar {
list-style-type: none;
margin: 0;
padding: 0;
background-color: #2a1b1a;
display: flex;
justify-content: center;
position: sticky;
top: 0;
z-index: 1000;
}


.navbar li a {
display: block;
text-decoration: none;
padding: 14px 30px;
color: white;
}

.navbar a:hover {
    background-color: white;
    color:#c1916b;
}

.dropdown{
    position:relative;
    color:white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0%;

    background-color: #352625;
    color: white;
    min-width: 200px;
    z-index: 1001;
}

.dropdown:hover .dropdown-content {
    display: block;
    background-color: white;
    color:#c1916b;
    text-decoration: none;
    cursor: pointer;
}

.dropdown-content a {
    display: block;
    background-color: #352625;
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    text-align: left;
    border-radius: 0;
}

.dropdown-content a:hover {
    background-color: #352625;
    color: #c1916b;
}

.content {
max-width: 800px;
margin: 0 auto;
padding: 20px;
}

.h1{
    text-align: left;
    color:black;
}

img{
    border-radius:8px;
    height: auto;
}

a:link, a:visited {
    background-color:#2a1b1a;
    color: white;
    padding: 14px 25px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
     border-radius:4px;
}

.gallery {
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.gallery-item {
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    width: 300px;
}

.gallery-item img {
    width: 100%;
    max-width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid #2a1b1a;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}


.footer {
  position: bottom;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color:#352625;
  ;
  color: white;
  text-align: left;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: 250px;
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    align-items: stretch;
}

.grid-item {
    min-height: 250px;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;
    text-decoration: none;
    padding: 20px;
    box-sizing: border-box;

    color: white;
    border-radius: 0 !important;
    border: none;
    transition: 0.3s;
}

.grid-item h3 {
    margin: 0;
    width: 100%;
    color: white;
    font-size: 2rem;
}

.grid-item:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

.image-card {
    padding:0;
    margin: 0;
    overflow: hidden;
    border-radius: 0;
    min-height: 200px;
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}


.mocha {background-color: #3b270c !important;}

.umber {background-color: #362312 !important;}

.syrup {background-color: #492000 !important;}

.gingerbread {background-color: #5c2c06 !important;}

.pecan {background-color: #48260D !important;}

.caramel {background-color: #613613 !important;}









.video-banner {
    display: flex !important;
    align-items: center;

    width:100%;
    margin: 40px 0;

    text-decoration: none;
    color: #2a1b1a;

    background-color: #937a62 !important;
    overflow: hidden;

    transition: 0.3s;
}


.video-banner:hover {
    filter: brightness(1.1);
    background-color: #c4ab86;
}

.video-banner img {
    width: 320px;
    height: 180px;
    object-fit: cover;
    flex-shrink: 0;
}

.video-info {
    padding: 25px;
    display: flex;
    flex: 1;
    flex-direction:column;
    justify-content: center;
    text-align: left !important;
}

.video-info h2 {
    margin-top: 0 0 10px 0;
    margin-bottom: 15px;
    color:white;
}

.video-info p {
    margin: 0;
    color:white;
    line-height: 1.5;
    text-align:left !important;
}



footer {
    background-color: #2a1b1a;
    color: white;

    padding: 10px;
    margin-top: 50px;
}

footer h3 {
    margin-top: 0;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer li {
    margin-bottom: 8px;
}

footer a {
    color: #c1916b;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}