
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {

  background-image: url('../Assets/background.jpg');
  background-size: cover;
  background-position: center;
  color: white;
}

.container {
  backdrop-filter: blur(2px);
  background-color: rgba(0, 0, 0, 0.4);
  min-height: 100vh;
  padding: 48px;
  position: relative;
}

 
.title {
  text-align: center;
  font-size: 48px;
  margin-bottom: 32px;
  font-weight: bold;
}


.info-icon {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 24px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}


.button-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}


.btn {
  padding: 32px;
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  text-align: center;
  font-weight: bold;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.2s ease;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}

.btn:hover {
  transform: scale(1.05);
  background-blend-mode: overlay;
}


.harryPotter {
  background-image: url('../Assets/harryPotterIMG.jpg');
}

.divergent {
  background-image: url('../Assets/divergentIMG.jpg');
}

.hungerGames {
  background-image: url('../Assets/hungerGamesIMG.jpg');
}

.doctorWho {
  background-image: url('../Assets/doctorWhoIMG.jpg');
}

.the100 {
  background-image: url('../Assets/the100IMG.jpg');
}

.mazeRunner {
  background-image: url('../Assets/mazeRunnerIMG.jpg');
}

a {
    color: white;
    text-decoration: none;
}
.instructions-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: black; 
    color: white; 
    border: 2px solid #333;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.instructions-popup h2 {
    margin-bottom: 10px;
}

.instructions-popup p {
    margin: 5px 0;
}

.instructions-popup .close-instructions {
    margin-top: 10px;
    padding: 5px 10px;
    background: #f44336;
    color: white;
    border: none;
    cursor: pointer;
}

/* Game page specific styles 

/* Game container layout */
.gameContainer {
    backdrop-filter: blur(2px);
    background-color: rgba(0, 0, 0, 0.4);
    min-height: 100vh;
    padding: 48px;
    position: relative;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    justify-content: center;
    margin: 0 ;
    
}


/* Back button */
.back-btn {
    position: absolute;
    top: 20px;
    left: 30px;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 12px 24px;
    border-radius: 15px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, background-color 0.2s ease;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.back-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Game grid container */
.game-grid {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 32px;
    backdrop-filter: blur(10px);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Word grid layout */
.wordGrid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    width: 450px;
    height: 450px;
}

/* Individual grid cells */
.grid-cell {
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
}

.grid-cell:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.4);
}

.grid-cell.selected {
    background-color: rgba(255, 215, 0, 0.6);
    border-color: #ffd700;
    box-shadow: 0px 4px 12px rgba(255, 215, 0, 0.4);
}

.grid-cell.found {
    background-color: rgba(50, 205, 50, 0.6);
    border-color: #32cd32;
    box-shadow: 0px 4px 12px rgba(50, 205, 50, 0.4);
}

/* Sidebar layout */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 250px;
}

/* Word list styling */
.wordList {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 24px;
    backdrop-filter: blur(10px);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 220px;
    overflow-y: auto;
}

.wordItem {
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.wordItem:last-child {
    border-bottom: none;
}

.wordItem:hover {
    color: #ffd700;
    transform: translateX(5px);
}

.wordItem.found {
    text-decoration: line-through;
    opacity: 0.6;
    color: #90ee90;
}

.grid-cell.wrong {
    background-color: rgba(255, 0, 0, 0.6);
    border-color: #ff0000;
    box-shadow: 0px 4px 12px rgba(255, 0, 0, 0.4);
}

.wordItem.wrong {
    color: #ff0000;
    background-color: rgba(255, 0, 0, 0.2);
    border-radius: 5px;
}
/* Controls layout */
.controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.control-row {
    display: flex;
    gap: 16px;
}

/* Game buttons - modify existing .btn for game page */
.gameContainer .btn {
    background-color: rgba(255, 255, 255, 0.2);
    background-image: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 16px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    backdrop-filter: blur(10px);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.gameContainer .btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.4);
}

.gameContainer .btn.primary {
    background-color: rgba(75, 150, 255, 0.4);
    border-color: rgba(75, 150, 255, 0.6);
}

.gameContainer .btn.primary:hover {
    background-color: rgba(75, 150, 255, 0.6);
    box-shadow: 0px 6px 15px rgba(75, 150, 255, 0.3);
}

/* Timer styling */
.timer {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 24px;
    text-align: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
    backdrop-filter: blur(10px);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.timer div:first-child {
    font-size: 16px;
    margin-bottom: 8px;
    opacity: 0.8;
}

#timerDisplay {
    font-size: 28px;
    color: #ffd700;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Selection line for word finding */
.selection-line {
    position: absolute;
    background-color: rgba(255, 215, 0, 0.8);
    height: 3px;
    pointer-events: none;
    border-radius: 2px;
    transition: all 0.1s ease;
    box-shadow: 0px 2px 4px rgba(255, 215, 0, 0.4);
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 40px; 
    border-radius: 10px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
    width: 80%; 
    max-width: 600px;
}

.popup img {
    width: 100%; 
    max-width: 400px; 
    height: auto; 
    margin: 10px 0;
}

.popup .close-popup {
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.popup .close-popup:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

/* Responsive design for game page */
@media (max-width: 768px) {
    .gameContainer {
        flex-direction: column;
        align-items: center;
        padding: 24px;
    }
    
    .word-grid {
        width: 350px;
        height: 350px;
    }
    
    .grid-cell {
        font-size: 16px;
    }
    
    .sidebar {
        width: 350px;
        max-width: 350px;
    }
    
    .back-btn {
        left: 20px;
        top: 15px;
        padding: 8px 16px;
        font-size: 14px;
    }
}