/* Global Stylesheet 
    Author: Caoimhe O'Brien, Aoife Leahy and Natalia Ryl 
    Date: 08/10/2025

    Styles for:
    Index (opening page)
    Puzzle Page
    Menu Page
    Story Info page
    End of Game Page
*/
/*----------------------------------------------------------------------------------------------------------------------------------------------*/
/*INDEX STYLES*/ 
html, body { 
    margin: 0;
    padding: 0;
    height: 100%;
    }

h1{
    padding-top: 2%;
    padding-left: 30%;
    position: fixed;
    text-align: center;
    font-size: 70px;
    color: #348a47;
    font-family: fantasy;
    text-shadow: 
        -2px -2px 0 #000000,  
        2px -2px 0 #000,  
        -2px  2px 0 #000,  
        2px  2px 0 #000,
         0px  0px 3px #000; /* optional blur */
}

button {
    background-color: #348a47;
    color: white;
    padding: 10px 20px;
    position: relative; 
    border-color: black;
    font-size: 42px;
    cursor: pointer;
    border-radius: 15px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

#startButtonDiv{
    padding-top: 20%;
    padding-left: 47%;
    position: relative;
    z-index: 10; 
}

#menuButtonDiv{
    padding-top: 2%;
    padding-left: 2%;
    position: relative;
    z-index: 12; 
    font-size: 30px;
}
 
#menuBtn{
    font-size: 30px;
}
button:hover {
    background-color: #3ea374;
    box-shadow: 0px 0px 25px rgba(52, 138, 71, 0.8);
}

/*----------------------------------------------------------------------------------------------------------------------------------------------*/
/*MENU PAGE STYLES*/ 
#restart {
    all: unset; /* clears inherited global button styles */
    display: inline-block;
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px 60px;
    font-size: 2rem;
    background-color: #348a47; /* your title green */
    color: white;
    border: 3px solid black;
    border-radius: 20px;
    cursor: pointer;
    text-align: center;
    z-index: 10;
    font-size: 32px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

#openingScreenBtn{
    all: unset; /* clears inherited global button styles */
    display: inline-block;
    position: fixed;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px 60px;
    font-size: 2rem;
    background-color: #348a47; /* your title green */
    color: white;
    border: 3px solid black;
    border-radius: 20px;
    cursor: pointer;
    text-align: center;
    z-index: 13;
    font-size: 32px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}


#storyInfo{
    all: unset; /* clears inherited global button styles */
    display: inline-block;
    position: fixed;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px 60px;
    font-size: 2rem;
    background-color: #348a47; /* your title green */
    color: white;
    border: 3px solid black;
    border-radius: 20px;
    cursor: pointer;
    text-align: center;
    z-index: 13;
    font-size: 32px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}


#restart:hover, #openingScreenBtn:hover, #storyInfo:hover {
    background-color: #3ea374; /* slightly lighter green */
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0px 0px 25px rgba(52, 138, 71, 0.8);
}

#soundEffects {
    all: unset;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 20px;       /* top of screen */
    left: 20px;      /* far left */
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #348a47;
    color: white;
    border: 2px solid black;
    border-radius: 10px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

#soundEffects:hover {
    background-color: #3ea374;
    transform: scale(1.05);
    box-shadow: 0px 0px 15px rgba(52,138,71,0.6);
}

#musicControl {
    position: fixed;
    top: 20px;        /* top of screen */
    right: 20px;      /* top-right corner */
    background-color: rgba(52, 138, 71, 0.8);
    padding: 10px 15px;
    border-radius: 10px;
    color: white;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

#musicSlider {
    cursor: pointer;
}

/*----------------------------------------------------------------------------------------------------------------------------------------------*/
/*PUZZLE PAGES STYLES*/
#canvasDiv{
    margin-top: 2%;
    margin-left: 10%;
}

/*----------------------------------------------------------------------------------------------------------------------------------------------*/
/*STORY INFO PAGE*/
#Title{
    all: unset; 
    margin-left: 32%;
    position: relative;
    text-align: center;
    font-size: 70px;
    color: #348a47;
    font-family: fantasy;
    text-shadow: 
        -2px -2px 0 #000000,  
        2px -2px 0 #000,  
        -2px  2px 0 #000,  
        2px  2px 0 #000,
         0px  0px 3px #000; /* optional blur */
}

#story{
    color: rgb(0, 0, 0);
    background-color: #95f3dce5;
    padding: 1%; 
    max-width: 50%;
    max-height: max-content;
    margin-top: 2%;
    margin-left: 25%; 
    margin-bottom: 4%;

    font-size: 18px;
}

#playBtn{
    all:unset; 
    padding: 10%;
    position: relative;
    font-size: 2rem;
    z-index: 1; 

    display: inline-block;
    left: 50%;
    width: 20%; 
    transform: translate(-50%, -50%);
    padding: 20px 60px;
    background-color: #348a47; /* your title green */
    color: white;
    border: 3px solid black;
    border-radius: 20px;
    cursor: pointer;
    text-align: center;
    z-index: 13;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

#playBtn:hover{
    background-color: #3ea374; /* slightly lighter green */
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0px 0px 25px rgba(52, 138, 71, 0.8);
}

/*----------------------------------------------------------------------------------------------------------------------------------------------*/
/* END OF GAME PAGE*/
#endOfGame{
    color: rgb(0, 0, 0);
    background-color: #95f3dce5;
    padding: 1%; 
    max-width: 50%;
    max-height: max-content;
    margin-top: 3%;
    margin-left: 25%; 
    margin-bottom: 3%;

    font-size: 18px;
    z-index: 1;

}

#endMessage{
    color: rgb(0, 0, 0);
    background-color: #95f3dc67;
    padding: 1%; 
    max-width: 50%;
    width: fit-content; 
    max-height: max-content;
    margin-top: 1%;
    margin-left: 30%; 
    margin-bottom: 5%;

    font-size: 14px;
    text-align: center;
    z-index: 1;
}

#Logos{
    position: absolute; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1%;
    bottom: 20px;
    box-sizing: border-box;
}

#leftLogos{
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 1%;
}

#rightLogo{
    display: flex; 
}