/*
CSS Document
 */
/* CSS Document */

html,
body {
    margin: 0 auto;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    color: #333;
    line-height: 1.6;

    background-image: url(../img/GBunch.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

h1 {
    font-family: 'Fredoka One', cursive;
    font-size: 4em;
    color: #FFD700;
    text-align: center;
    margin: 20px 0 10px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

/*Adjustments game directions text */
p#directions {
    font-size: 1.1em;
    color: #EEE;
    text-align: center;
    margin-bottom: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

p#directions strong {
    color: #FFF;
    font-size: 1.2em;
}

button {
    font-family: 'Fredoka One', cursive;
    font-size: 1.4em;
    font-weight: normal;
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    background-color: #E74C3C;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

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

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/*ShadeBox of the game*/
div#content {
    width: 800px;
    max-width: 95%;
    margin: 30px auto;
    padding: 30px;
    border: 2px solid #555;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Control Panel for Score and Timer */
div.controlpanel {
    display: flex;
    justify-content: space-between; /* Space out score and timer */
    align-items: center;
    margin-bottom: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 8px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

span#score {
    flex: 1;
    font-family: 'Fredoka One', cursive;
    text-align: left;
    font-size: 1.5em;
    color: #FFD700;
    margin: 10px 0;
}

/* Timer Styling */
#timer-display {
    flex: 1;
    font-family: 'Fredoka One', cursive;
    font-size: 1.5em;
    color: #d24535;
    text-align: right;
    margin: 10px 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

div#controls {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

div#controls button {
    margin-left: 0;
    margin: 0 10px;
}

/*Screen of the game*/
div#gamespace {
    margin: 30px auto;
    padding: 20px;
    height: 400px;
    background-color: rgb(255, 255, 255);
    border: 3px solid #E74C3C;
    border-radius: 10px;
    position: relative; 
    overflow: hidden; 
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.1);

    /* Adding custom cursor on hover */ 
    cursor: url('../img/popcursor.png'), auto;
}

/* Styling for dynamically added game images */
.game-image {
    max-width: 120px;
    height: auto; 
    display: block;
    transition: transform 0.1s ease;
    /* Removed: cursor: pointer; */ 
    position: absolute; 
}


/* Greeting message */
.welcome-phrase {
    font-family: 'Nunito', sans-serif;
    font-size: 1.5em;
    color: #FFD700;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

/* Timer - Initially hidden */
.hidden-timer {
    display: none;
}