
/*Start Screen*/

* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            background-color: #f5f5f5;
            min-height: 100vh;
        }

        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 30px;
            background-color: white;
            border-bottom: 1px solid #e0e0e0;
        }

        .logo-container {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .logo {
            width: 40px;
            height: 40px;
            background: conic-gradient(from 0deg, #4CAF50, #2196F3, #9C27B0, #F44336, #FF9800, #4CAF50);
            border-radius: 50%;
            position: relative;
        }

        .logo::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 20px;
            height: 20px;
            background-color: white;
            border-radius: 50%;
        }

        .menu-icon {
            width: 24px;
            height: 20px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            cursor: pointer;
        }

        .menu-icon span {
            width: 100%;
            height: 2px;
            background-color: #333;
            border-radius: 2px;
        }

        .header-icons {
            display: flex;
            gap: 20px;
            align-items: center;
        }

        .icon {
            width: 24px;
            height: 24px;
            cursor: pointer;
            color: #666;
        }

        .main-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: calc(100vh - 250px);
            padding: 40px 20px;
        }

        .game-logo {
            width: 120px;
            height: 120px;
            background: conic-gradient(from 0deg, #4CAF50, #2196F3, #9C27B0, #F44336, #FF9800, #4CAF50);
            border-radius: 50%;
            margin-bottom: 30px;
            position: relative;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        }

        .game-logo::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 55px;
            height: 55px;
            background-color: #f5f5f5;
            border-radius: 50%;
        }

        h1 {
            font-size: 64px;
            color: #5a5a5a;
            font-weight: 700;
            margin-bottom: 20px;
        }

        .subtitle {
            font-size: 20px;
            color: #888;
            text-align: center;
            margin-bottom: 40px;
            line-height: 1.5;
        }

        .play-button {
            background-color: #29B6F6;
            color: white;
            border: none;
            padding: 14px 60px;
            font-size: 18px;
            border-radius: 25px;
            cursor: pointer;
            transition: background-color 0.3s ease;
            box-shadow: 0 2px 10px rgba(41, 182, 246, 0.3);
        }

        .play-button:hover {
            background-color: #039BE5;
        }

        .footer {
            text-align: center;
            padding: 30px 20px;
            color: #999;
            font-size: 14px;
            position: fixed;
            left: 0;
            bottom: 0;
            width: 100%;
        }

        .footer-date {
            margin-bottom: 8px;
        }

        .footer-credits {
            color: #aaa;
        }
/*--------------------------------------------------------------*/

/*Game Screen*/


.game-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /*min-height: calc(100vh - 80px);*/
  padding: 90px 20px;
}

.grid-container {
  display: grid;
  /* Defines 3 columns, each taking an equal fraction of the available space */
  grid-template-columns: repeat(3, 1fr); 
  /* Defines 3 rows, with height based on content or explicitly set */
  grid-template-rows: repeat(3, 1fr); 
  gap: 8px; /* Adds spacing between grid items */
  width: 250px; /* Example fixed width for the grid container */
  height: 250px; /* Example fixed height for the grid container */

}

.grid-item {
  background-color: #f5f5f5;
  border: 2px solid #D9D9D9;
  display: flex; /* Used to center content within the square */
  justify-content: center; /* Centers horizontally */
  align-items: center; /* Centers vertically */
  font-size: 1.5em;
}


/*Slider Styles*/

/*.slidecontainer {
  width: 100%;
}

/* The slider itself */
/*.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 15px;
  border-radius: 5px;
  background: var(--track-color, #d3d3d3); 
  opacity: 0.7;
  -webkit-transition: .2s;
  transition: opacity .2s;
}

.slider:hover {
  opacity: 1;
}

/* The slider handle */
/*.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--thumb-color, #04AA6D); 
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--thumb-color, #04AA6D);
  cursor: pointer;
}
/*--------------------------------------------------------------*/

.sliders-container {
            width: 100%;
            max-width: 400px;
            margin-bottom: 30px;
        }

        .slider-group {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 20px;
        }

        .slider-wrapper {
            flex: 1;
            position: relative;
        }

        .color-slider {
            width: 100%;
            height: 6px;
            border-radius: 3px;
            outline: none;
            -webkit-appearance: none;
            background: #ddd;
        }

        .color-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            cursor: pointer;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        .color-slider::-moz-range-thumb {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            cursor: pointer;
            border: 3px solid white;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        .color-slider.red {
            background: linear-gradient(to right, #EF5350 0%, #EF5350 0%, #ddd 0%, #ddd 100%);
        }

        .color-slider.red::-webkit-slider-thumb {
            background-color: #EF5350;
        }

        .color-slider.red::-moz-range-thumb {
            background-color: #EF5350;
        }

        .color-slider.green {
            background: linear-gradient(to right, #4CAF50 0%, #4CAF50 0%, #ddd 0%, #ddd 100%);
        }

        .color-slider.green::-webkit-slider-thumb {
            background-color: #4CAF50;
        }

        .color-slider.green::-moz-range-thumb {
            background-color: #4CAF50;
        }

        .color-slider.blue {
            background: linear-gradient(to right, #2196F3 0%, #2196F3 0%, #ddd 0%, #ddd 100%);
        }

        .color-slider.blue::-webkit-slider-thumb {
            background-color: #2196F3;
        }

        .color-slider.blue::-moz-range-thumb {
            background-color: #2196F3;
        }

        .slider-value {
            min-width: 50px;
            text-align: center;
            padding: 6px 12px;
            border: 2px solid #ddd;
            border-radius: 10px;
            font-size: 14px;
            color: #666;
            background-color: #f5f5f5;
        }

        .enter-button {
            background-color: #9e9e9e;
            color: white;
            border: none;
            padding: 12px 40px;
            font-size: 16px;
            border-radius: 10px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .enter-button:hover {
            background-color: #757575;
        }

/*--------------------------------------------------------------*/

/* Snackbar Styles */
/* The snackbar - position it at the bottom and in the middle of the screen */
#snackbar {
  visibility: hidden; /* Hidden by default. Visible on click */
  min-width: 125px; /* Set a default minimum width */
  margin-left: -62.5px; /* Divide value of min-width by 2 */
  background-color: #4A4A4A; /* Black background color */
  color: #FFFFFF; /* White text color */
  text-align: center; /* Centered text */
  border-radius: 15px; /* Rounded borders */
  padding: 16px; /* Padding */
  position: fixed; /* Sit on top of the screen */
  z-index: 1; /* Add a z-index if needed */
  left: 50%; /* Center the snackbar */
  top: 165px; /* 30px from the bottom */
}

/* Show the snackbar when clicking on a button (class added with JavaScript) */
#snackbar.show {
  visibility: visible; /* Show the snackbar */
  /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
  However, delay the fade out process for 2.5 seconds */
 -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
  from {top: 140px; opacity: 0;}
  to {top: 165px; opacity: 1;}
}

@keyframes fadein {
  from {top: 140px; opacity: 0;}
  to {top: 165px; opacity: 1;}
}

@-webkit-keyframes fadeout {
  from {top: 165px; opacity: 1;}
  to {top: 140px; opacity: 0;}
}

@keyframes fadeout {
  from {top: 165px; opacity: 1;}
  to {top: 140px; opacity: 0;}
}
/*--------------------------------------------------------------*/


 /* Modal Styles */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }

        .modal-overlay.active {
            display: flex;
        }

        .modal {
            background-color: white;
            border-radius: 8px;
            padding: 40px;
            max-width: 500px;
            width: 90%;
            position: relative;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        }

        .modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            background: none;
            border: none;
            font-size: 24px;
            color: #999;
            cursor: pointer;
            padding: 0;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-close:hover {
            color: #333;
        }

        .modal-title {
            text-align: center;
            margin-bottom: 20px;
        }

        .modal-subtitle {


            margin-bottom: 30px;

            font-size: 20px;
            color: #888;
            text-align: center;
            line-height: 1.5;
        }

        .modal-button {
            padding: 14px;
            border: none;
            border-radius: 25px;
            font-size: 16px;
            cursor: pointer;
            margin-bottom: 15px;
            transition: all 0.3s ease;
            display: block;
            margin-left: auto;
            margin-right: auto;
        }

        .create-account-btn {
            background-color: #636363;
            color: #FFFFFF;
            width: 60%;
        }

        .create-account-btn:hover {
            background-color: #555;
        }

        .login-link {
            text-align: center;
            color: #666;
            font-size: 14px;
            margin-bottom: 15px;
            text-decoration: underline;
            cursor: pointer;
        }

        .login-link:hover {
            color: #333;
        }

        .share-score-btn {
            background-color: #00B356;
            color: #FFFFFF;
            width: 40%;
        }

        .share-score-btn:hover {
            background-color: #00B248;
        }

        .modal-divider {
            border: none;
            border-top: 1px solid #e0e0e0;
            margin: 30px 0;
        }

        .other-versions-title {
            color: #888;
            font-size: 14px;
            margin-bottom: 15px;
        }

        .version-link {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 0;
            color: #666;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .version-link:hover {
            color: #333;
        }

        .color-badges {
            display: flex;
            gap: 3px;
        }

        .color-badge {
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 12px;
            font-weight: bold;
        }

        .badge-r { background-color: #EB5678; }
        .badge-g { background-color: #3ED8AF; }
        .badge-b { background-color: #35B2EA; }
        .badge-c { background-color: #2ABDC5; }
        .badge-m { background-color: #EB5678; }
        .badge-y { background-color: #F9D400; }
        .badge-k { background-color: #5A6B6C; }

        .apple-icon {
            width: 24px;
            height: 24px;
            fill: #7913C1;
        }

/*--------------------------------------------------------------*/

/* Media Query: Large Smartphone (Vertical) */
@media screen and (max-width: 600px) {
    .modal {
        padding: 30px;
    }

    .logo {
        display: none;
    }

}

/* Media Query: iPhone (Vertical) */
@media screen and (max-width: 376px) {

}

