/*Global*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --navy: #20415F;
    --green: #004225;
    --darkgreen: #2C5F34;
    --blue: #4682B4;
    --sky: #87CEEB;
    --tan: #D2B48C;
    --white: #FAFAFA;
    --offwhite: #FAFAFA;
    --lightgrey: #F2f2f2;
    --darkgrey: #363737;
    --grey: grey;
    --red: #B22222;
    --black: #0A0A0A;
    --gold: #D4A017;
    --purple: #6A0DAD;
    --orange: #E67E22;
    --teal: #008080;
}

body {
    font-size: 18px;
    background: var(--offwhite);
    margin: 0;
    color: var(--navy);
    line-height: 1.4;
    font-family: 'Google Sans Flex', sans-serif; 
    font-optical-sizing: auto; 
    font-variation-settings: "slnt" 0, "wdth" 100, "GRAD" 0, "ROND" 0;
}

button, input, select, textarea { font-family: inherit; }

.dnd {
    display: none;
}

a, a:visited, a:link {
    color: var(--navy);
    text-decoration: none;
}

h1 { 
    text-align:center; 
    font-size: 2.0rem;
    margin-bottom: 5px;
    margin-top: 3px;
}

h2 {
    text-align:center; 
    font-size: 1.5rem;
    padding: 0;
    margin-bottom: 3px;
    margin-top: 3px;
}

h3 {
    font-size: 0.9rem;
    padding: 0;
    color: var(--grey);
    margin-bottom: 3px;
}

h4 {
    font-size: 0.8rem;
    margin-bottom: 15px;
}

table {
    border-collapse: collapse;
    color: var(--navy);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

th {
    background-color: var(--navy);
    color: var(--white);
    border: 2px solid transparent;
}

th,
td {
    padding: 5px 5px;
    vertical-align: middle;
    text-align: center;
}

tr:nth-child(even) {
    background-color: var(--lightgrey);
}

tr:nth-child(odd) {
    background-color: var(--white);
}

/* header.php */
.header {
    position: relative;
    height: 60px;
    background: var(--navy);
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 2px solid var(--tan);
}

/* header.php: logo */
.header img {
    height: 60px;
    width: auto;
}

/* header.php menu */
.hamburger {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);

    width: 36px;
    height: 30px;

    background: none;
    border: none;
    padding: 0;
    cursor: pointer;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* header.php menu */
.hamburger span {
    width: 100%;
    height: 4px;
    background: white;
    border-radius: 3px;
    transition: .3s;
}

/* header.php menu toggle */
#overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 999;
}

/* header.php menu */
#sideMenu {
    position: fixed;
    top: 0;
    left: -270px;
    width: 250px;
    height: 100%;
    background: var(--navy);
    box-shadow: 2px 0 8px rgba(0,0,0,.4);
    transition: .3s;
    padding-top: 20px;
    z-index: 1000;
    overflow-y: auto;
}

/* header.php menu */
#sideMenu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 16px 24px;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,.15);
    transition: background .2s;
}

/* header.php menu */
#sideMenu a:hover {
    background: rgba(255,255,255,.12);
}

/* header.php menu */
#sideMenu.open {
    left: 0;
}

/* header.php menu toggle*/
#overlay.open {
    opacity: 1;
    visibility: visible;
}

/* header.php menu */
.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(7px,7px);
}

/* header.php menu */
.hamburger.open span:nth-child(2) {
    opacity: 0;
}

/* header.php menu */
.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px,-7px);
}

/* footer.php */
footer {
    color: var(--white);
    text-align: center;
}

/* index.php team.php boxscore.php standings.php schedule.php 404.php */
.content {
    background: var(--white);
    color: var(--navy);
    padding: 10px;
    margin: 0 auto;
    margin-bottom: 20px;
    margin-top: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 5px var(--navy);
    max-width: 1080px;
    width: 98%;
    overflow-x: auto;
}

/* login.php */
.content h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: var(--navy);
}

/* teamcard.php account.php profile.php useradmin.php boxscore.php fillin.php stats.php */
.content h2 a {
    text-decoration: none;
    color: var(--navy);
}

/* teamcard.php account.php profile.php useradmin.php boxscore.php fillin.php stats.php */
.content label {
    color: var(--navy);
    text-align: right;
}

/* header.php index.php login.php 404.php */
.content p {
    margin: 0;
    display: grid;
    /*grid-template-columns: 120px 1fr;*/
    align-items: center;
    gap: 10px;
}

/* account.php fillin.php header.php login.php postadmin.php useradmin.php */
.content form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* account.php fillin.php header.php login.php postadmin.php useradmin.php */
.content button{
    border: none;
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

/* account.php fillin.php header.php login.php postadmin.php useradmin.php */
.content button:hover {
    box-shadow: 3px 3px var(--sky);
}

/* account.php fillin.php header.php login.php postadmin.php useradmin.php */
.content button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* account.php fillin.php login.php postadmin.php useradmin.php */
.content input {
    padding: 12px;
    border: 1px solid var(--sky);
    border-radius: 8px;
    box-sizing: border-box;
}

/* account.php fillin.php login.php postadmin.php useradmin.php */
.content input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(0, 66, 37, .15);
}

/* useradmin.php */
.content input[type="checkbox"] {
    width: auto;
    justify-self: start;
}

/* account.php fillin.php login.php postadmin.php useradmin.php */
.content input[type="text"] {
    width: 100%;
    max-width: 500px;
}

/* account.php login.php useradmin.php */
.content input[type="password"] {
    width: 100%;
    max-width: 500px;
}

/* fillin.php */
.content select {
    width: 100%;
    max-width: 500px;
    margin: 0 left;
}

/* teamcard.php profile.php boxscore.php */
.content-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* scoreboard.php Row blocks wrapper */
.scores {
    display: flex;
    gap: 15px;
    width: 90%;
    margin: 0 auto;
}

/* scoreboard.php Row blocks */
.score-box {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px;
    background: #fff;
    font-size: 14px;
}

/* scoreboard.php */
.team-date,
.team-time {
    display: flex;
    justify-content: space-between;
}

/* scoreboard.php */
.team-date {
    margin-bottom: 4px;
}

/* index.php postadmin.php */
.post {
    background: var(--white);
    padding: 20px;
    margin: 0 auto;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    width: 99%;
    max-width: 1080px;
}

/* index.php postadmin.php */
.post p {
    color: var(--navy);
}

/* index.php postadmin.php */
.post h2 {
    margin-top: 0;
    color: var(--navy);
    display: inline-block;
    gap: 8px;
}

/* index.php postadmin.php */
.post label {
    display: inline-block;
    width: 80px;
}

/* boxscore.php right side */
.right-info {
    margin-left: auto;
    text-align: right;
}

/* boxscore.php left side when its a name block */
.right-info .name-block {
    justify-content: flex-end;
    text-align: right;
}

/* login.php */
.login-error {
    background: #ffe5e5;
    color: #c62828;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* boxscore.php standings.php stats.php team.php - first column in table, also allows for flag img */
.keyfield, .keyfield a {
    display: inline-block;
    font-weight: bold;
    text-align: left;
    text-decoration: none;
}

/* boxscore.php profile.php schedule.php standings.php stats.php team.php - later row that needs to be bolded */
.keyfield2, .keyfield2 a {
    font-weight: bold;
    text-decoration: none;
}

/* boxscore.php profile.php teamcard.php */
.info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* boxscore.php profile.php teamcard.php */
.name-block {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
}

/* boxscore.php profile.php teamcard.php */
.name-block h2 {
    margin: 0;
    color: var(--navy);
    line-height: 1;
}

/* teamcard.php */
.details-block {
    display: inline-block;
    text-align: left;
    gap: 5px;
}

/* View Changes */
.desktoponly {
display: revert;
}

.mobileonly {
display: none;
}

/* Images */
.flag {
    width: 30px;
    height: auto;
    vertical-align: middle;
    display: inline-block;
}

.flag-icon {
    width: 20px;
    height: 20px;
    height: auto;
    vertical-align: middle;
    display: inline-block;
}

/* Attributes */

/* button-red: fillin.php */
/* button-gold: fillin.php useradmin.php */
/* button-green: account.php schedule.php standings.php stats.php team.php */
.button-red,
.button-gold,
.button-green,
.button-blue,
.button-black,
.button-white,
.button-fill-in,
.button-red a,
.button-gold a,
.button-green a,
.button-blue a,
.button-black a,
.button-white a,
.button-fill-in a,
.age,
.country {
    display: inline-flex;
    font-size: .75rem;
    border-radius: 6px;
    margin: 0 auto;
    padding: 1.5px 2px;
    width: 33%;
    max-width: 150px;
    min-width: 35px;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.age {
    background-color: var(--navy);
    border: 2px solid var(--navy);
    color: var(--white);
}

.country {
    background-color: var(--red);
    border: 2px solid var(--red);
    color: var(--white);
}

.button-red {
    background-color: var(--red);
    border: 2px solid var(--red);
    color: var(--white);
}

.button-blue {
    background-color: var(--navy);
    border: 2px solid var(--navy);
    color: var(--white);
}

.button-gold {
    background-color: var(--gold);
    border: 2px solid var(--gold);
    color: var(--black);
}

.button-green {
    background-color: var(--green);
    border: 2px solid var(--green);
    color: var(--white);
}

.button-black {
    background-color: var(--black);
    border: 2px solid var(--black);
    color: var(--offwhite);
}

.button-white {
    background-color: var(--white);
    border: 2px solid var(--black);
    color: var(--black);
}

.button-fill-in {
    background-color: var(--sky);
    border: 2px solid var(--sky);
    color: var(--black);
}

.team-red,
.team-green,
.team-blue,
.team-gold,
.team-black,
.team-white,
.team-fill-in {
    display: inline-flex;
    font-size: .6rem;
    border-radius: 6px;
    margin: 0 auto;
    padding: 1.25px 1.25px;
    width: 75px;
    max-width: 150px;
    min-width:15px;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.team-green {
    background-color: var(--green);
    border: 2px solid var(--green);
    color: var(--white);
}

.team-red {
    background-color: var(--red);
    border: 2px solid var(--red);
    color: var(--white);
}

.team-blue {
    background-color: var(--navy);
    border: 2px solid var(--navy);
    color: var(--white);
}

.team-gold {
    background-color: var(--gold);
    border: 2px solid var(--gold);
    color: var(--black);
}

.team-black {
    background-color: var(--black);
    border: 2px solid var(--black);
    color: var(--offwhite);
}

.team-white {
    background-color: var(--white);
    border: 1px solid var(--black);
    color: var(--black);
}

.team-fill-in {
    background-color: var(--sky);
    border: 1px solid var(--sky);
    color: var(--black);
}

.logo img {
    width: 110px;
    height: 80px;
    border-radius: 10px;
}

.logo-white {
    background: var(--white);
    box-shadow: 0 2px 5px var(--black);
}

.logo-black {
    background: var(--black);
    box-shadow: 0 2px 5px var(--black);
}

.logo-red {
    background: var(--red);
    box-shadow: 0 2px 5px var(--red);
}

.logo-blue {
    background: var(--navy);
    box-shadow: 0 2px 5px var(--navy);
}

.logo-gold {
    background: var(--gold);
    box-shadow: 0 2px 5px var(--gold);
}

.logo-green {
    background: var(--green);
    box-shadow: 0 2px 5px var(--green);
}

@media screen and (max-width:450px) {

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: .75rem;
  }

  h4 {
    font-size: 1rem;
  }

  .desktoponly {
    display: none;
  }

  .mobileonly {
    display: revert;
  }

  .nameabbr {
    display: table-cell;
  }

  .content h2 {
    font-size: 1.25rem;
    }

  .content .coaches {
    font-size: .75rem;
  }

  .post {
    width: 95%;
    max-width: 95%;
  }

  .header h2 {
    font-size: 1.1rem;
  }

    table,
    table th,
    table td {
        font-size: .75rem;
    }

    .scores {
        flex-direction: column;
    }
   
}