/* ======================= EECS 493 Assignment 3 Starter Code ======================= */

/* Main Containers */
body,
button {
    /*font-family: VT323;*/
    /*font-family: Blippo, fantasy;*/
    font-family: Nunito;
}

button {
  font-size: xx-large;
}

.outer-container {
  height: 720px;
  width: 1280px;
  background: #eee;
  border: 5px solid gainsboro;
}

.game-window {
  height: 720px;
  width: 1280px;
  float: left;
  position: relative;
}

/* Game Section */
#actual-game {
  height: 720px;
  width: 1280px;
  background-color: white;
  z-index: 10;
  right: 0px;
  top: 0px;
}

.asteroidSection {
  position: absolute;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.curAsteroid {
  position: absolute;
  height: 42px;
  width: 42px;
  z-index: 9;
  right: 0px;
  top: 0px;
}

.curAsteroid img {
  position: relative;
  z-index: 10;
  height: 80px;
  left: -17px;
  top: -15px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.fade-out {
    opacity: 0;
    transition: opacity 3s ease-in-out;
}

.shieldSection {
    position: absolute;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.curShield {
    position: absolute;
    height: 42px;
    width: 42px;
    z-index: 9;
    right: 0px;
    top: 0px;
}

    .curShield img {
        position: relative;
        z-index: 10;
        height: 80px;
        left: -17px;
        top: -15px;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

.portalSection {
    position: absolute;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.curPortal {
    position: absolute;
    height: 42px;
    width: 42px;
    z-index: 9;
    right: 0px;
    top: 0px;
}

    .curPortal img {
        position: relative;
        z-index: 10;
        height: 80px;
        left: -17px;
        top: -15px;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

.player {
    position: absolute;
    height: 80px;
    width: 60px;
    z-index: 9;
    left: 617px;
    top: 339px;
    transform: translate(-50%, -50%);
}

    .player img {
        position: relative;
        z-index: 10;
        height: 80px;
        left: 0px;
        top: 0px;
        transform: translate(-10px, 0%);
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

/* Add your stylings here */



#landing-page {
    text-align: center;
    height: 100%;
    background-image: url('../src/frontpage_background.jpg');
}

    #landing-page #header {
        height: 100px;
        background-color: darkslateblue;
        border-bottom: 6px groove;
        font-size: 75px;
        color: white;
        display: flex;
        justify-content: space-between;
    }

    #landing-page #header img {
        height: 100%
    }

    #landing-page img {
        height: 100%
    }

    #landing-page button {
        margin-top: 75px;
        width: 200px;
        height: 100px;
        background-color: darkslateblue;
        color: white;
    }

#settings-window {
    background-color: darkslateblue;
    height: 690px;
    width: 600px;
    border: 5px solid gainsboro;
    position: absolute;
    top: 10px;
    left: 335px;
    display: none;
    text-align: center;
}

#settings-panel {
    display: flex;
    flex-direction: column;
    align-content: stretch;
    height: 100%;
    justify-content: space-between;
}

#settings-header {
    font-size: 50px;
    font-weight: bold;
    color: white;
    display: flex;
    justify-content: center;
    text-align: center;
}

#settings-panel slider {
    width: 100%;
    height: 25px;
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
}

#settings-buttons {
    display: flex;
    width: 100%;
    justify-content: space-evenly;
}

    #settings-buttons button.selected {
        border: 2px solid yellow;
    }

#sliderValue {
    font-size: 50px;
    font-weight: lighter;
}

.slidecontainer {
    width: 100%; /* Width of the outside container */
}

.slider {
    -webkit-appearance: none; /* Override default CSS styles */
    appearance: none;
    width: 100%; /* Full-width */
    height: 25px; /* Specified height */
    background: #d3d3d3; /* Grey background */
    outline: none; /* Remove outline */
    opacity: 0.7; /* Set transparency (for mouse-over effects on hover) */
    -webkit-transition: .2s; /* 0.2 seconds transition on hover */
    transition: opacity .2s;
}

    /* Mouse-over effects */
    .slider:hover {
        opacity: 1; /* Fully shown on mouse-over */
    }

    /* The slider handle (use -webkit- (Chrome, Opera, Safari, Edge) and -moz- (Firefox) to override default look) */
    .slider::-webkit-slider-thumb {
        -webkit-appearance: none; /* Override default look */
        appearance: none;
        width: 25px; /* Set a specific slider handle width */
        height: 25px; /* Slider handle height */
        background: #04AA6D; /* Green background */
        cursor: pointer; /* Cursor on hover */
    }

#settings-panel button {
    background-color: purple;
    width: 180px;
    height: 100px;
    color: white;
}

.button {
    width: 200px;
    height: 100px;
    background-color: darkslateblue;
    color: white;
}

#tutorial-window {
    background-color: gainsboro;
    height: 720px;
    width: 1280px;
    position: absolute;
    top: 0px;
    left: 0px;
    display: none;
    text-align: center;
}

    #tutorial-window img {
        width: 100px;
    }

#tutorial-panel {
    display: flex;
    flex-direction: column;
    align-content: stretch;
    height: 100%;
    justify-content: space-between;
}

    #tutorial-panel button {
        background-color: gainsboro;
        width: 200px;
        height: 75px;
        color: black;
    }

#tutorial-header {
    font-size: 75px;
    font-weight: bold;
    color: black;
    display: flex;
    justify-content: center;
    text-align: center;
}

#tutorial-img-holder {
    display: flex;
    justify-content: center;
    gap: 50px;
}

#tutorial-basic {
    font-size: 50px;
    font-weight: normal;
    color: black;
}

#tutorial-bold {
    font-size: 50px;
    font-weight: bold;
    color: black;
}

#tutorial-italics {
    font-size: 50px;
    font-style: italic;
    color: black;
}

/* Assignment 3 Things */

#actual-game {
    background-color: white;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0px;
    left: 0px;
    display: none;
    text-align: center;
}

#get-ready-window {
    height: 720px;
    width: 1280px;
    position: absolute;
    top: 0px;
    left: 0px;
    display: none; /* Initially hidden */
    text-align: center;
}

#get-ready-elts {
    display: flex;
    flex-direction: column;
    align-content: stretch;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 50%;
    justify-content: space-between;
}

    #get-ready-elts #header {
        font-size: 75px;
        color: black;
        display: flex;
        justify-content: center;
        text-align: center;
        font-weight: bold;
    }

    #get-ready-elts #text {
        font-size: 50px;
        color: black;
        display: flex;
        justify-content: center;
        text-align: center;
        font-weight: normal;
    }

#score-container {
    display: flex;
    justify-content: flex-end;
    height: 100%;
}

    #score-container #score-UI {
        display: flex;
        flex-direction: column;
    }

        #score-container #score-UI #title {
            font-size: 50px;
            font-weight: 500;
        }

        #score-container #score-UI .info {
            font-size: 30px;
            font-weight: normal;
        }

    #score-container button img {
        height: 50px;
        pointer-events: none;
    }

    #score-container button {
        background-color: transparent;
        height: 50px;
        /*width: 100%;
        height: 50px;
        color: black;*/
        border: none;
        z-index: 100;
    }

#gameover-page {
    text-align: center;
    height: 100%;
    background-image: url('../src/frontpage_background.jpg');
}

    #gameover-page #header {
        height: 100px;
        background-color: darkslateblue;
        border-bottom: 6px groove;
        font-size: 75px;
        color: white;
        display: flex;
        justify-content: space-between;
    }

        #gameover-page #header img {
            height: 100%
        }

    #gameover-page img {
        height: 100%
    }

    #gameover-page #panel {
        position: absolute;
        width: 600px;
        height: 250px;
        text-align: center;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: darkslateblue;
        display: flex;
    }

        #gameover-page #panel #gameover-elts {
            margin-top: 25px;
            width: 100%;
            height: 80%;
            text-align: center;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            font-size: 30px;
            color: white;
        }

            #gameover-page #panel #gameover-elts button {
                width: 200px;
                height: 80px;
                transform: translate(100%, 0%);
                background-color: gainsboro;
                color: black;
                font-size: 30px;
            }

#darken {
    position: fixed; /* Ensures the overlay covers the viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Black with 50% opacity */
    z-index: 1000; /* Places the overlay above other content */
    display: none; /* Initially hidden */
}

#pause-window {
    background-color: #d3d3d3;
    height: 400px;
    width: 300px;
    position: absolute;
    top: 160px;
    left: 490px;
    text-align: center;
    display: none; /* Initially hidden */
    z-index: 1001;
}

#pause-panel {
    display: flex;
    flex-direction: column;
    align-content: stretch;
    height: 95%;
    justify-content: space-between;
}

    #pause-panel #header {
        font-size: 40px;
        color: black;
        display: flex;
        justify-content: center;
        text-align: center;
        font-weight: normal;
    }

    #pause-panel #text {
        font-size: 30px;
        color: black;
        display: flex;
        justify-content: center;
        text-align: center;
        font-weight: normal;
    }

    #pause-panel button {
        background-color: #efefef;
        /*width: 100%;
        height: 50px;*/
        color: black;
    }

    #pause-panel #pause-buttons {
        display: flex;
        width: auto;
        left: 50px;
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }

        #pause-panel #pause-buttons #resume-button {
            width: 178px;
            height: 60px;
            left: 50px;
            margin: 5px;
        }

        #pause-panel #pause-buttons #button-shelf #confirm-button {
            width: 100px;
            left: 50px;
            margin: 5px;
        }

#restart-confirmation-window {
    background-color: #d3d3d3;
    height: 150px;
    width: 400px;
    position: absolute;
    top: 280px;
    left: 440px;
    text-align: center;
    display: none; /* Initially hidden */
    z-index: 1001;
}

#restarting-text {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: white;
    display: none; /* Initially hidden */
    z-index: 1002;
}