
/* formatting navigation bar on all pages */
.navbar {
    background-color: #fefbea;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
  }
  
  /* links inside of the menu bar */
  .navbar a {
    font-family: Didot, serif;
      font-size: 20px;
      font-weight: bold;
      color: #bf0d3e;
    text-align: center;
    align-items: center;
    padding: 14px 16px;
    text-decoration: none;
  }

  .navbar a.active {
    background-color: #bf0d3e; 
    color: #fefbea;           
    border-radius: 8px;       
}

header
{
    font-size: 24px;
    text-align: center;
    background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url("bbskyline.jpeg"); 
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    padding: 15px;
    font-family: 'Times New Roman', Times, serif;
}

header h1
{
    color: #bf0d3e;
    text-align: center;
    font-family: 'Times New Roman', Times, serif;
}

header h2
{
    color: navy;
    text-align: center;
    font-family: 'Times New Roman', Times, serif;                                                                                                                                          ;
}

body {
    background-color: #d2e7f3;
}
/* formatting strike zone and simulation starting here*/

.content {
    display: flex;
    margin-left: 60px;
    flex-direction: column;
    margin-right: 60px;
}

.content h2 {
    font-family: Didot, serif;
      font-size: 24px;
      font-weight: bolder;
      color: #bf0d3e;
}

content p {
    font-family: Didot, serif;
        font-size: 14px;
}

.details {
    cursor: pointer;
    margin-bottom: 10px;
}

.details p{
    background-color: #fefbea;
    border-radius: 8px;
}
/* formatting index.html starting here*/

.matchup_selection {
    margin-left: 20px;
    max-width: 500px;
}

/*formatting matchup selection*/
.matchup_selection label {
    font-size: large;
    font-family: Didot, serif;
    font-weight: bold;
}

.matchup_selection select {
    font-size: medium;
    font-family: Didot, serif;
}

.submit {
    background-color: #bf0d3e;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: medium;
}

.button {
    cursor: pointer;
    font-size: medium;
}

.button:hover {
    color: #0000EE;
}

.sim_formatting {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 30px;
    width: 100%;
}

.lhs {
    margin-left: 20px;
    flex: 0 0 500px;      
    max-width: 500px;
}

.lhs label {
    font-size: large;
    font-family: Didot, serif;
    font-weight: bold;
}

.lhs select {
    font-size: medium;
    font-family: Didot, serif;
}

.top-lhs {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    max-width: 450px;
    margin-bottom: 20px;
}

.rhs {
    flex: 1;                
    display: flex;
    flex-direction: column;
    margin-right: 20px;
    gap: 10px;
}

/* count */
.count-box {
    background: #eee;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #ccc;
    margin-bottom: 15px;
}

/* results */
.displayresults {
    background: #ffffff;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 15px;
    height: 600px;  
    overflow-y: auto; 
}

.results {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.pitch_box {
    border: 1px solid black;
    border-radius: 8px;
    padding: 10px;
    background-color: #fefbea;
}

.pitch_summary {
    cursor: pointer;
    list-style: none;
    display: flex;
}

#backgroundimage {
    width: 450px;
    height: 600px;
    background-image: url(background.png);
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}


#imageContainer {
    position: relative;
    margin: 30px auto;
    width: 212px;
    height: 300px;
    cursor: crosshair;
    user-select: none; /*dont highlight image*/
}

#dot {
    position: absolute;
    width: 15px; /* Size of the dot */
    height: 15px;
    background-color: white;
    opacity: 1;
    border-radius: 50%; /* Makes it a circle */

    /*center the dot initially*/
    top: 50%;
    left: 50%;

    cursor: grab;
    /* Center the dot's position relative to the mouse cursor */
    transform: translate(-50%, -50%);
    /* Ensure it is on top of the image */
    z-index: 1;
}

/*pitchers observed standard deviation for pitch types*/
#pitcharea {
    position: absolute;
    
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    border: 3px dashed black;
    border-radius: 50%;
    background-color: navy;
    opacity: 0.3;

    pointer-events: none;
    z-index: 10;
    display: block;
}

/*
ring used in simulation - 75% of observed standard deviation
#targetarea {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    border: 1px solid;
    background-color: navy;
    opacity: 0.2;
    border-radius: 50%;

    pointer-events: none;
    z-index: 9;
    display: block;
}

50% of pithes are inside this area - centered around the location chosen
#medianarea {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    border: 1px solid;
    background-color: blue;
    opacity: 0.4;
    border-radius: 50%;

    pointer-events: none;
    z-index: 8;
    display: block;
}
*/