/**
 Module 6 Programming Assignment
 Name: Carmen Mueller
 Class: SSE 643: Advanced Graphic Interfaces
 Professor: Dr. Michael Pelosi
 Description: This file contains the styles for the HTML elements defined in index.html. Some of the following styles are changed within the index.js file for more dynamic page features. 
 */

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    color: #fafafa;
}

/* Canvas for the Three.js scene to be rendered to */
canvas {
    display: block;
    width: 100%;
    height: 100%;
    background: #f0f0f0;
}

/* Div and image elements for the cannon graphic */
#cannon-overlay {
    position: relative;
    pointer-events: none;
    margin: auto;
}

#cannon {
    position: absolute;
    width: 35vw;  
    height: auto;
    top: 65vh;
    transform: translate(-50%, 0%);
}

/* Class for the user's and opponent's "Sheep Left" GUI */
.guiDivBase{
    position: absolute;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    border-radius: 9px 30px;
    border: 5px double #526b70;
    visibility: hidden;
}

/* "Sheep Left" GUIs */
#guiDiv {
    top: 57.5vh;
    right: -49vw;
}

#guiDivAI {
    top: 20px;
    left: 20px;
}

#guiContainer {
    position: relative;
    z-index: 11;
}

.shiplbl {
    text-decoration: underline;
    font-weight: bold;
}

/* Common element formatting */
h3, h4 {
    margin: 0px;
    padding: 0px;
    text-align: center;
}

h4 {
    padding-bottom: 20px;
    color: yellow;
}

p {
    padding: 0px;
    margin: 0px;
}

/* Common menu classes */
.menu {
    z-index: 13;
    position: absolute;
    border: 10px double #526b70;
    border-radius: 23px 200px;
    text-align: center;
    display: flexbox;
    flex-direction: column;
}

.menu2 {
    background-color: black;
    width: 80vw;
    height: 90vh;
    margin: auto auto;
    opacity: 100%;
    visibility: visible;
}

/* Pop-up menu that allows the player to select the difficulty level */
#configMenu {
    background-color: black;
    width: 70vw;
    height: 70vh;
    margin: auto auto;
    opacity: 80%;
    visibility: hidden;
}

#configMenu p {
    color: yellow;
    font-size: 30px;
    margin: 10px;
    padding: 0px;

}

#configMenu h1 {
    color: white;
    font-size: 5vw;
    margin: 50px 0px 20px 0px;
    padding: 0px;
}

#sheepCountDiv{
    margin: 0px 0px 30px 0px;
    padding: 0px;
}

select {
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    background-color: #1c1c2e;
    color: #fafafa;
    border: 2px solid #526b70;
    transition: background-color 0.3s ease;
}

#configMenu label {
    font-size: 24px;
}

/* Pop-up menu that displays whether the player wins or loses */
#winloseMenu {
    background-color: black;
    width: 70vw;
    height: 70vh;
    margin: auto auto;
    opacity: 80%;
    visibility: hidden;
}

#winloseMenu p {
    color: yellow;
    font-size: 30px;
    margin: 0px;
    padding: 0px;
}

#winloseMenu h1 {
    color: white;
    font-size: 10vw;
    margin: 70px 0px 40px 0px;
    padding: 0px;
}

/* Continue button */
.continue {
    color: black;
    font-size: 20px;
    width: 10vw;
    height: 8vh;
    margin: 70px 0px 70px 0px;
    padding: 0px;
    border: 8px double #526b70;
    border-radius: 9px 30px;
    transition: background-color 0.3s ease, color 0.7s ease;
}

.continue:hover {
    color: yellow;
    background-color: #122227;
}

/* Start screen menu */
#logo {
    width: 25vw;
    margin: 3.5vh 0px 2.5vh 0px;
    border-radius: 14px;
}

#titleMenu h2 {
    margin: 0px 0px 0px 0px;
    padding: 0px;
}

/* Instruction menu */
#controls {
    width: 30vw;
}

#instructionMenu {
    visibility: hidden;
}

#inst {
    display: flex;
    flex-direction: row;
}

.divStyle {
    margin: 2.5vh 2.5vw;
    padding: 0px;
}
.divStyle p {
    font-size: 1.2vw;
    text-align: left;
}

#cont00 {
    margin-top: 0px;
}