/**
 * styles.css
 * 10/15/2025
 * Ayra Babar
 * SFSU ID: 922584530
 * GitHub URL: https://github.com/ayra-babar
 */

/*importing and setting the font for all text elements for the entire game*/
@font-face {
    font-family: 'Groundnut';
    src: url('Groundnut-yxPm.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-image: url(background.png);
    font-family: 'Groundnut', sans-serif;
}

/*setting a div element wrapped around the canvas to allow for element manipulation*/
#game-container {
    position: relative;
    width: 640px;
    height: 640px;
    margin: auto;
    display: block;
}

canvas {
    border: 1px solid #d3d3d3;
    border-radius: 30px;
    background-image: url(main_page.JPG);
}

.buttons-wrap {
    position: absolute;
    bottom: 57%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 20px;
    z-index: 10;
}

.level-buttons {
    font-family: 'Groundnut', sans-serif;
    padding: 5px 10px;
    background-color: rgb(248, 246, 246);
    color: black;
    font-size: 27px;
    border: 2px solid rgb(245, 170, 84);
    border-radius: 10px;
}

/*when user has their cursor over the level buttons on the main menu page*/
.level-buttons:hover {
    cursor: pointer;
    background-color: black;
    color: white;
    transform: translate(0, 0.375em);
    transform: scale(1.1) translate(0, 0.75em);
}

#enable-audio-button {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 5%;
    display: flex;
    justify-content: center;
}

#enable-audio {
    font-family: 'Groundnut', sans-serif;
    padding: 5px 10px;
    background-color: rgb(248, 246, 246);
    color: black;
    font-size: 12px;
    border: 2px solid rgb(245, 170, 84);
    border-radius: 10px;
}

/*when user has their cursor over the 'click to enable audio' button on the main menu page*/
#enable-audio:hover {
    cursor: pointer;
    background-color: black;
    color: white;
}

.rule-set {
    position: absolute;
    top: 20%;
    right: 20%;
    width: 50%;
    text-align: center;
    background: rgba(255, 255, 255, 0.85);
    padding: 25px;
    border-radius: 10px;
    font-size: 16px;
    z-index: 10;
}

#countdown {
    position: absolute;
    top: 5%;
    left: 70%;
    text-align: center;
    background: rgba(255, 255, 255, 0.85);
    padding: 20px;
    border-radius: 10px;
    font-size: 11px;
    z-index: 10;
}

#point-box {
    position: absolute;
    top: 5%;
    right: 75%;
    text-align: center;
    background: rgba(255, 255, 255, 0.85);
    padding: 20px;
    border-radius: 10px;
    font-size: 11px;
    z-index: 10;
}

.ending-page {
    position: absolute;
    top: 10%;
    right: 10%;
    width: 70%;
    text-align: center;
    background: rgba(255, 255, 255, 0.85);
    padding: 30px;
    border-radius: 10px;
    font-size: 15px;
    z-index: 10;
}