/* General Container Styles */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    // background-color: #f4f4f4;
background-color: #ff9966;
}

/* Common styles */
.page {
    display: none; /* Hide all pages by default */
    padding: 20px;
}

.active {
    display: block; /* Show only the active page */
}

/* Page 1: Introduction */
.intro-container {
    max-width: 800px;
    margin: 50px auto;
    text-align: center;
}

.intro-container h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.intro-container h2 {
    font-size: 24px;
    color: #555;
    margin-bottom: 20px;
}

.intro-container p {
    font-size: 18px;
    margin-bottom: 20px;
    text-align: left;
}

.intro-container button {
    padding: 15px 30px;
    font-size: 18px;
    cursor: pointer;
    background-color: #1976d2;
    color: white;
    border: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.intro-container button:hover {
    background-color: #145a9e;
    transform: translateY(-2px);
}

#orientation-warning {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(144, 8, 8, 0.8);
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Page 2: Game Container */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

/* Congratulatory Banner */
.congratulations-banner {
    display: none;
    width: 100%;
    padding: 20px;
    background-color: #4caf50;
    color: white;
    text-align: center;
    font-size: 20px;
    position: fixed;
    top: 0;
    z-index: 1000;
}

/* Keyword Pool and BMC Components */
.keyword-pool, .bmc-component {
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #ff9966;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.keyword-pool {
    flex: 1;
    max-width: 250px;
    margin-right: 20px;
    height: 600px;
    font-size: 16px;
// height: 100vh; /* Set height to full viewport height */
    overflow-y: auto;
}


@media screen and (max-width: 768px) {
  .keyword-pool {
    font-size: 9px;
  }
}

.keyword {
    margin: 10px 0;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #e0e0eb;
    font-size: 12px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
}


.keyword:hover {
    background-color: #e0e0e0;
}

@media screen and (max-width: 768px) {
  .keyword {
    font-size: 9px;}
  }

/* Check Mark and Cross Mark Styling */
.check-mark,
.wrong-mark {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 18px;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.check-mark {
    background-color: green;
}

.wrong-mark {
    background-color: red;
}

/* Color Picker Panel Styling */
.color-picker-panel {
    display: none;
    width: 100px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: fixed; /* Centering relative to viewport */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Offset for true centering */
    z-index: 10;
}

.color-picker-panel .color {
    width: 40px;
    height: 40px;
    margin: 10px auto;
    cursor: pointer;
    border-radius: 50%;
    transition: transform 0.3s ease, border 0.3s ease;
    display: inline-block;
}



.color1 { background-color: #f1b1b1; }
.color2 { background-color: #9ddee3; }
.color3 { background-color: #c7e7ad; }
.color4 { background-color: #efe337; }

.color:hover, .color:focus, .color:active {
    border: 2px solid #333;
    transform: scale(1.1);
}

/* Canvas Grid Layout */
.canvas {
    flex: 4;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: repeat(2, auto) auto;
    gap: 10px;
    padding: 5px;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin-bottom: 20px;
}

/* BMC Components Styling */
.bmc-component {
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    padding: 5px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    min-height: 150px;
    overflow: hidden;
    position: relative;
}

.bmc-component {
    margin: 0;
    font-size: 14px;
    color: #444;
    font-weight: bold;
}

@media screen and (max-width: 768px) {
  .bmc-component {
    font-size: 9px;
      }
}

/* Specific BMC Component Placement */
.key-partners { grid-column: 1 / 3; grid-row: 1 / 3; }
.key-activities { grid-column: 3 / 5; grid-row: 1 / 2; }
.key-resources { grid-column: 3 / 5; grid-row: 2 / 3; }
.value-propositions { grid-column: 5 / 7; grid-row: 1 / 3; }
.customer-relationships { grid-column: 7 / 9; grid-row: 1 / 2; }
.channels { grid-column: 7 / 9; grid-row: 2 / 3; }
.customer-segments { grid-column: 9 / 11; grid-row: 1 / 3; }
.cost-structure { grid-column: 1 / 6; grid-row: 3 / 4; }
.revenue-streams { grid-column: 6 / 11; grid-row: 3 / 4; }

/* Footer Button Styling */

.footer {
width: 250px;
position: fixed; /* Keeps the footer in a fixed position */
right: 0; /* Aligns the footer to the right of the screen */
bottom: 0; /* Positions the footer at the bottom of the screen */
text-align: right; /* Aligns text within the footer to the right */
padding: 5px;
background-color: #ff9966;
border-top: 1px solid #ccc;
box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
margin: 0; /* Removes margin to prevent layout issues */
}

button {
    padding: 12px 24px;
    background-color: #1976d2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
    background-color: #145a9e;
    transform: translateY(-2px);
}

.key-partners, .key-activities, .key-resources {
    background-color: #cceeff !important; /* Gold color */
}

.value-propositions, .customer-relationships, .channels, .customer-segments {
    background-color: #ffe0cc !important; /* Light Orange color */
}

.cost-structure, .revenue-streams {
    background-color: #f2ffcc !important; /* Light Green */
}