:root {
    --bg-color: #ffffff;
    --text-color: #333;
    --board-light: #f0d9b5;
    --board-dark: #b58863;
    --board-unsafe-light: #ff3e3e;
    --board-unsafe-dark: #ff6a6a;
    --primary-color: #f0d9b5;
    --secondary-color: #b58863;
    --panel-bg: #ffffff;
    --header-bg: #eaeaea;
    --header-text: #000000;
    --footer-bg: #eaeaea;
    --footer-text: #000000;
    --queen-font-size-mobile: 1.3em;
}

.dark-theme {
    --bg-color: #222;
    --text-color: #ffffff;
    --board-light: #eeeed2;
    --board-dark: #769656;
    --board-unsafe-light: #c41e3a;
    --board-unsafe-dark: #F15B50;
    --secondary-color: #769656;
    --primary-color: #eeeed2;
    --panel-bg: #333;
    --header-bg: #333;
    --header-text: #eeeed2;
    --footer-bg: #333;
    --footer-text: #eeeed2;
    --social-bg: #eeeed2;
}

body {
    font-family: 'Comic Neue', 'Indie Flower', cursive, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: var(--header-bg);
    opacity: 80%;
    color: var(--header-text);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    border-radius: 10px;
}

.heading {
    font-size:x-large;
}
.logo {
    display: flex;
    align-items: center;
    border-radius: 100%;
}

.logo img {
    width: 35px;
    height: 35px;
    margin-right: 10px;
    border-radius: 100%;
}

nav {
    font-size:large;

}
nav a {
    color: var(--header-text);
    text-decoration: none;
    margin-left: 20px;
}

nav a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

main {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.game-section {
    flex: 1;
}


#board {
    aspect-ratio: 1 / 1;
    block-size: 500px; /* Reduced from 530px */
    display: grid;
    border: 2px solid var(--text-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.cell {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: var(--queen-font-size, 1.7em);
    font-weight: bold;
}

.cell.light { background-color: var(--board-light); }
.cell.dark { background-color: var(--board-dark); }
.cell.unsafe { background-color: var(--board-unsafe-light) !important; }
.dark-theme .cell.unsafe { background-color: var(--board-unsafe-dark) !important; }

.controls {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin-bottom: 0px;
}

.slider {
    display: flex;
    align-items: center;
    margin-left: 0px;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 15px;
}

.slider input{
    margin-left: 10px;
    width: 58%;
    height: 10px;
    border-radius: 5px;
    opacity: 0.7;
    margin-right: 36px;
}

.slider input[type="range"] {
    -webkit-appearance: none;
    background: var(--primary-color);
}

.slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    cursor: pointer;
    border-radius: 50%;
}

.slider input[type="range"]:hover {
    opacity: 1;
    transition: all 0.3s ease;
}

.buttons {
    display: flex;
    justify-content:space-evenly;
    margin-left: -40px;
}


button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color:var(--secondary-color);
    color: white;
    text-align: center;
    display: flex;
    justify-content:space-evenly;
    width: 95px;
    max-width: 530px;
    margin-left: 30px;
}

button:hover {
    background-color: var(--primary-color);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.info-section {
    flex: 1;
    margin-left: 30px;
    margin-top: -35px;
    font-size:25px;
}

#know-more {
    margin-bottom: 40px;
    margin-top: 80px;
    font-size: x-large;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 70px;
    margin: 20px 0;
}

.image-placeholder {
    aspect-ratio: 1 / 1;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    overflow: hidden;
}

.image-placeholder img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.light-mode-img {
    display: none;
}

body.light-theme .dark-mode-img {
    display: none;
}

body.light-theme .light-mode-img {
    display: block;
}


.developer-info {
    display: flex;
    margin-top: 80px;
    font-size: x-large;
    gap: 20px;
}

.developer-content {
    margin-top: -465px;
    margin-left: 350px;
}

.developer-image-container {
    flex-shrink: 0;
    text-align: center;
  }

.developer-image {
    /* margin-top: 40px;
    margin-right: 30px; */
    height: 300px;
    background-color: #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    object-fit: cover;
}

.developer-name {
    display:flex;
  }

.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    margin-bottom: 15px;
    margin-left: -1000px;
    font-size: 0px;
  }


  .social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    opacity: 0.4;
}

.social-icon i {
    color: white;
    font-size: 20px;
}

.fa-github { background: #4fb497; }
.fa-globe { background: #3B5998; }
.fa-linkedin { background: #007bb5; }
.fa-instagram { background: #125688; }
  
  /* .developer-details {
    flex-grow: 1;
  } */

footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    text-align: center;
    margin-top: 100px;
    padding: 4px 0;
    font-size: larger;
    width: 100%;
    border-radius: 10px;
    text-align: center;
}

/* Add these media queries at the end of your styles.css file */

@media screen and (max-width: 896px) {
    .container {
      padding: 10px;
      margin-top: 15px;
    }

    .heading {
        font-size:medium;
        align-items: center;
    }
  
    /* Header adjustments */
    header {
      padding: 4px 10px;
      margin-bottom: 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-radius: 10px;
    }

    .logo {
        display: flex;
        align-items:center;
        border-radius: 100%;
        
    }

    .logo img {
        width: 25px;
        height: 25px;
        margin-right: 10px;
        border-radius: 100%;
        margin-bottom: -3px;
    }
  
    nav {
      font-size: xx-small;
      justify-content: space-evenly;

    }
  
    nav a {
      margin-left: 1px;
      padding: 4px;
    }
  
    /* Main content adjustments */
    main {
      flex-direction: column;
      gap: 10px;
    }
  
    /* Board adjustments */
    #board {
      block-size: min(90vw, 500px);
      margin: 0 auto;
    }

    .cell {
        font-size: var(--queen-font-size-mobile, 1.3em);
      }
    
     
    /* Controls adjustments */
    .controls {
      flex-direction: column;
      align-items: stretch;
    }
  
    .slider {
      flex-direction: column;
      align-items: center;
      gap: 10px;
      margin: 15px 0;
    }
  
    .slider input {
      width: 80%;
      margin: 10px 0;
    }
  
    .buttons {
      flex-wrap: wrap;
      gap: 10px;
      margin: 0;
      justify-content: center;
    }
  
    button {
      margin: 5px;
      width: calc(50% - 20px);
      min-width: 100px;
    }
  
    /* Info section adjustments */
    .info-section {
      margin: 20px 0;
      margin-left: 10px;
      font-size: 16px;
    }

    #know-more {
        font-size: 16px;
        margin-left: 10px;
    }
  
    /* Image grid adjustments */
    .image-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 15px;
      padding: 0 10px;
      margin-left: -7px;
    }
  
    /* Developer section adjustments */
    .developer-info {
      flex-direction: column;
      font-size: 16px;
      margin-top: 40px;
      margin-left: 10px;
    }

    .developer-content {
        margin-top: 0px;
        margin-left: 0px;
    }
  
    .developer-image {
      height: auto;
      width: 80%;
      max-width: 300px;
      
    }
  
    .developer-name {
      margin: 20px 0;
      font-size: large;
      
    }
  
    .social-links {
      margin: 20px 0;
      margin-left: -210px;
      
    }
  
    .social-icon {
      width: 35px;
      height: 35px;
    }

    footer {
        text-align: center;
        margin-top: 10px;
        padding: 2px 0;
        font-size: smaller;
        width: 100%;
        border-radius: 10px;
        text-align: center;
    }

}
  