html, body {
    margin: 0;
    padding: 0;
}

textarea {
    font-family: inherit;
    font-size: inherit;
}

.scorekeeper-wrapper {
    font-family: "Roboto", Arial, Helvetica, sans-serif;
}

.scorekeeper-header {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;

    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 75px;
    background-color: #123456;

    z-index: 10;
}

.scorekeeper-header .header-content {
    padding: 0px 30px;
}

@media (max-width: 565px) {
    .scorekeeper-header .header-content {
        padding: 20px 15px;
    }  
}

.scorekeeper-header .header-content .event-name-container {
    position: relative;
    margin-bottom: 2px;
    max-width: 200px;
    overflow: hidden;
}

@media (min-width:768px) {
    .scorekeeper-header .header-content .event-name-container {
        max-width: 500px;
    }
}

.scorekeeper-header .header-content .event-name {   
    white-space: nowrap;
    text-overflow: clip;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #ffffff; 
}

.scorekeeper-header .header-content .event-name.animated { 
    animation: text-slide 70s linear infinite;
}

@keyframes text-slide {
	0% {
		transform: translate3d(0,0,0);
	} 100% {
		transform: translate3d(-100%,0,0);
	}
}

.scorekeeper-header .header-content .game-date-time {
    font-size: 16px;
    font-weight: 400;
    color: #8DA9C4;
}

.header-options {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-content: center;

    padding: 0 30px;
    font-size: 24px;
    color: #ffffff;
}

.option-icon {
    margin-left: 30px;
    cursor: pointer;
    transition: all 250ms ease-in-out;
    -moz-transition: all 250ms ease-in-out;
    -webkit-transition: all 250ms ease-in-out;
}

.option-icon:hover {
    color: #8DA9C4;
    transition: all 250ms ease-in-out;
    -moz-transition: all 250ms ease-in-out;
    -webkit-transition: all 250ms ease-in-out;
}

@media (max-width: 500px) {
    .scorekeeper-header .header-content .event-name {
        font-size: 0.85em;
    }

    .scorekeeper-header .header-content .game-date-time {
        font-size: 0.75em;
    }

    .header-options {
        padding: 20px 15px;
        font-size: 18px;
    }

    .option-icon {
        margin-left: 20px;
    }
}

@media (max-width: 768px) {
    .settings-btn {
        display: none;
    }
}


/* ------------------------------------ */
/* Mobile Scoreboard */
.scoreboard-mobile-wrapper {
    position: relative;
    top: 0px; margin-bottom:5px;
    width: 350px;
   background: #f3f1f1; z-index: 10; border-radius: 6px 6px;
}

.scoreboard-mobile {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;     color: #4e6671;
    font-weight: 500;
    justify-content: space-between;
    align-items: center;
    border-radius: 6px 6px;

    margin: 0 auto;
    max-width: 500px;
    padding: 5px 7px 5px; color: #4e6671;
    font-size: 14px;font-weight: 500;
    box-shadow: inset 0 10px 22px rgba(0,0,0,.1)
}

.flex-right {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
}

.flex-left {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
}

.team-names-container_mobile {
    margin-left: 0px;
}

.team-name_mobile {
    max-width: 120px;
    height: 20px;
    overflow: hidden;
    word-break: break-all;
    font-size: 15px;
    font-family: 'poppins', sans-serif;
}

.team-runs-container_mobile {
    margin-left: 5px;
    width: 3ch;
    text-align: right;
    font-size: 16px;
    padding-top: 3px;
}

.inning-container_mobile {
    margin-left: 20px; width: 70px;
display: flex;
margin-right: 10px; font-size: 15px; font-family: 'poppins', sans-serif;
}

.inning-container_mobile .inning-half {
    margin-right: 5px;
}

.count_mobile {

    width: 80px; font-size: 15px; font-family: 'poppins', sans-serif;

}

@media (max-width: 350px) {
    .inning-container_mobile {
        margin-left: 12px;
    }  
}

.count_mobile {
    margin-right: 15px; font-size: 15px; font-family: 'poppins', sans-serif;
}

.onbase_mobile {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: space-between;

    width: 40px;
}

.onbase_mobile .base-icon {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #767676;
    transform: rotate(45deg);
}

.onbase_mobile .base-icon.first-base {
    right: 2px;
}

.onbase_mobile .base-icon.second-base {
    bottom: 2px;
}

.onbase_mobile .base-icon.third-base {
    left: 2px;
}

.onbase_mobile .base-icon.active {
    background-color: #ed9543;
}

@media (max-width: 768px) {
    .scoreboard-mobile-wrapper {
        display: block;
    }
}

/* END Mobile Scoreboard */
/* ------------------------------------ */


/* ------------------------------------ */
/* Scorekeeper Content (Controls and Update Form) */
.scorekeeper-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    align-items: flex-start;

    margin: 0 auto;
}

@media (min-width: 769px) {
    .scorekeeper-container {
        position: relative;
        max-width: 1000px;
        height: 100%;
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    .scorekeeper-container {
        flex-direction: column;
        margin-top: 150px;
    }
}

@media screen and (min-width: 5000px) {
    .scorekeeper-header {
        transform: scale(3.2);
        margin: 0 auto;
        top: 85px;
        left: 5600px;
    }
    .scorekeeper-container {
        transform: translateX(-50%);
        transform: scale(3.2);
        position: absolute;
        top: 3300px;
        left: 1000px;
    }
}

.flex-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .flex-column.mobile-1 {
        order: 1;
        margin: 0 auto;
        width: 100%;
    }

    .flex-column.mobile-2 {
        order: 2;
        margin: 0 auto;
        width: 100%;
    }
}


/* ------------------------------------ */
/* Web Scoreboard */
.scoreboard-container {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;

    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    margin-top: 75px;
}

@media (max-width: 768px) {
    .scoreboard-container {
        width: 100%;
        display: none;
    }
}

.scoreboard-web-wrapper {
    position: relative;
    padding: 30px;
    width: 350px;
    height: 100px;
    background: #f1f1f1;
    border-radius: 0px 0px 6px 6px;
}

.scoreboard-web-wrapper.plain-screen {
    background: #e6ecf0;
}

.scoreboard-web-wrapper.green-screen {
    background: #00b140;
}
.scoreboard-web-wrapper.blue-screen {
    background: #0047bb;
}
.scoreboard-web-wrapper.alt-screen {
    background: #ff00ff;
}


/* ----------------------------------- */
/* ----- Web Scoreboard Style 01 ----- */
.scoreboard-web-01 {
    display: none;
}

.scoreboard-web-01.active {
    width:300px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    flex: 1 0 auto;
    border-radius: 6px;
    position: relative;
    top: 0px;
    margin:0 auto;
    background: #fdfdfd;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,.2), 0 1px 1px 0 rgba(0,0,0,.14), 0 2px 1px -1px rgba(0,0,0,.12);
}

.scoreboard-left_web-01,.scoreboard-right_web-01 {
    /*display: flex;*/
    /*flex-direction: column;*/
    /*flex-wrap: nowrap;*/
    /*justify-content: center;*/
    /*align-items: flex-start;*/

    height: 100%;
}

.scoreboard-left_web-01 {
    width: 30%;
    flex-grow: 1;
    border-right: 0.75px solid #1a181925;
}

.team-container_web-01 {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
font-family: 'Poppins', sans-serif;
    padding: 8px 10px;
    font-size: 13px;
    letter-spacing: 1px;
    font-weight: 500;
    color: #ffffff;
}

.team-runs_web-01 {
    width: 50px;
    text-align: right;
    font-size: 15px;
}

.team-container_web-01.away-team {
    position: relative;
    /* border-bottom: 1px solid #1a1819; */
    background: #6e78bf;
    border-radius: 6px 0 0 0;
}

.team-container_web-01 .away-team-name, .team-container_web-01 .home-team-name  {
    width: 200px !important;     font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
    height: auto;
    white-space: wrap;
    overflow: hidden;
    overflow-wrap: break-word;
}

.team-container_web-01.home-team {
    position: relative;
    background: #454d73;
}

.count_web-01 {
    display: flex;     font-family: 'Poppins', sans-serif;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    

    margin-left: 20px;
    width: 100%;
    font-size: 16px;
    font-weight: 500;
    color: #1a1819;
}

.count-container_web-01 {
    padding: 3px 0;
}

.count-divider_web-01 {
    margin: 0 20px;
    height: 15px;
    border-left: 1px solid #1a181925;
}

.scoreboard-right_web-01 {
    width: 90px;
    justify-content: flex-start;
    align-items: center;
}

.inning-container_web-01 {
    margin-top: -45px;
    height: 42px;
    font-size: 16px;
    font-weight: 600;
    color: #1a1819;
}

.onbase_web-01 {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: space-between;

    width: 40px;
    margin-left:20px;
    -webkit-margin-start: 0;
}

.onbase_web-01 .base-icon {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #464655;
    transform: rotate(45deg);
}

.onbase_web-01 .base-icon.first-base {
    right: -6px;
}

.onbase_web-01 .base-icon.second-base {
    bottom: -4px;
}

.onbase_web-01 .base-icon.third-base {
    left: -6px;
}

.onbase_web-01 .base-icon.active {
    background-color: #ed9543;
}


/* END Web Scoreboard */
/* ------------------------------------ */





/* ------------------------------------ */
/* Scoreboard Controller */
.scoreboard-control-container {
    margin: 0px auto;
    max-width: 400px;
    text-align: center;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}

@media (min-width: 769px) {
    .scoreboard-control-container {
        margin-top: 85px;
        height: 100%;
        overflow-y: hidden;
    }
}

.scoreboard-controls {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;  
    
    margin: 0 auto;
    padding: 0 30px;
}

@media (max-width: 400px) {
    .scoreboard-controls {
        padding: 0 15px; 
    }
}

.input-increase i, .input-decrease i {
    padding: 0px 10px;
    background: #123456;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
}

.input-increase i:active, .input-decrease i:active {
    background-color: #012344; 
}

.input-increase.large, .input-decrease.large {
    font-size: 50px;
}

.input-increase.medium, .input-decrease.medium {
    font-size: 36px;
}

.input-reset {
    padding: 8px 10px;
    /* background: #BD3039; */
    background: #9f270e;
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}

.input-reset:active {
    background: #8f230c;
}

.input-reset.medium {
    margin-top: 10px;
    font-size: 14px;
}

.input-label {
    font-size: 16px;
    font-weight: 600;
    color: #123456;
}

.input-label.large {
    margin: 10px 0px;
}

.input-label.medium {
    margin: 5px 0px;
}

.game-score {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center; 

    width: 100%;
    text-align: center;
}

.game-score .away-score, .game-score .home-score {
    margin: 0 auto;
}

.switch-teams {
    align-self: flex-end;

    margin: 0px auto;
    padding: 15px;
    width: 50px;
    background: #123456;
    border: none;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    outline: none;
    cursor: pointer;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;   
}

.switch-teams:active {
    background-color: #012344; 
}

.game-count {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    align-items: flex-start; 

    margin-top: 40px;
    width: 100%;
    text-align: center; 
}

.inning-onbase-controls {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;

    margin-top: 30px;
    width: 100%;
    text-align: center;
}

.inning-controls {
    width: 50%;
}

.inning-controls .change-sides {
    margin: 10px auto;
    padding: 15px;
    width: 50px;
    background: #123456;
    border: none;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    outline: none;
    cursor: pointer;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}

.inning-controls .change-sides:active {
    background-color: #012344; 
}

.onbase-controls {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;

    margin: 0 auto;
}

.base-control {
    flex: 1 0 auto;
    width: 50%;
}

.base-control span {
    padding: 15px;
    background: #767676;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}

.base-control.active span {
    background: #123456;
}

.onbase-controls .base-control:first-child {
    margin-bottom: 50px;
    width: 100%;
}

.onbase-controls .input-reset {
    margin-top: 30px;
    font-size: 12px;
}

/* END Scoreboard Controller */
/* ------------------------------------ */




/* ------------------------------------ */
/* POST UPDATES FORM */
.update-form-container {
    /*
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    */
    position: relative;
    margin-top: 20px;
    padding: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    border-top: 1px solid #e6ecf0;
    overflow-y: auto;
}

.form-content {
    margin: 0 auto;
    padding: 0 20px 50px;
    max-width: 100%;
}

@media (max-width: 768px) {
    .form-content {
        margin: 0 0px;
    }
}

.form-title {
    margin: 20px 0 10px;
    font-size: 16px;
    font-weight: 800;
    font-style: normal;
    color: #1a1819;
}

.form-input-container {
    padding: 0 10px;
    max-width: 100%;

    border: 1px solid #e6ecf0;
    border-radius: 6px;
}

.form-input-container .form-input {
    display: inline-block;
    margin: 10px 0px 20px;
    width: 100%;
    height: auto;
    min-height: 18px;
    border: none;
    outline: none; 
    overflow-y: auto;
    overflow-wrap: break-word; 
    white-space: normal;
    resize: none; 

    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: #1a1819;
}

.form-input-container .form-input:placeholder {
    font-size: 18px;
    font-weight: 300; 
    color: grey;
}


.form-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;

    margin-top: 0px;
    padding: 0px 0px 10px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.extra-option {
    padding: 6px;
    border-radius: 100px;
    font-size: 18px;
    color: #123456;
    cursor: pointer;
}

.extra-option:hover {
    background: #e6ecf0;
}

.update-btn {
    padding: 8px 20px;
    background: #8899aa;
    border: none;
    border-radius: 100px;
    outline: none;
    color: #ffffff;
}

.update-btn:enabled {
    background: #123456;
    cursor: pointer;
}

.characters-used {
    margin-right: 10px;
    font-size: 14px;
    color: grey;
}


@media (max-width: 319px) {
    .characters-used {
        font-size: 9.5px;
    }
}

.settings-container {
    display: none;
    height: 0px;
}

.settings-container.active {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start;

    position: fixed;
    bottom: 0;
    left: 0;

    width: 100%;
    height: 250px;
    background: #e6ecf0;
    box-shadow: -1px -4px 10px rgba(26, 24, 25, 0.15);
    -webkit-box-shadow: -1px -4px 10px rgba(26, 24, 25, 0.15);
    -moz-box-shadow: -1px -4px 10px rgba(26, 24, 25, 0.15);
    z-index: 9;
    color: #1a1819;

    transition: all 250ms ease-in-out;
}

.settings-close {
    width: 100%;
    text-align: right;
}

.settings-close-btn {
    margin: 20px 20px 0px;
    background: none;
    border: none;
    outline: none;
    font-size: 28px;
    color:#1a1819;
    cursor: pointer;
}

.settings-options {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
}

.scoreboard-web-background, .scoreboard-web-style, .scoreboard-web-team-colors  {
    padding: 5px 30px 10px;
}

.settings-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1819;
}

.background-options, .style-options {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;

    margin-top: 10px;
}

.background-options input, .style-options input {
    margin-left: 20px;
}

.background-options input:first-child, .style-options input:first-child {
    margin-left: 0px;
}

.input-label_settings {
    margin-top: 10px;
    font-weight: 400;
    color: #1a1819;
}

.color-inputs input[type=color] {
    display: inline-block;
    position: relative;
    margin: 0;
    margin-top: 5px;
    padding: 0px 6px;
    width: 50px;
    border: 1px solid #999;
    border-top-color: #777;
    border-radius: 3px;
    vertical-align: middle;
    line-height: 1;
    box-shadow:inset 0 1px 3px rgba(0,0,0,0.1);
    -webkit-appearance: none;
    cursor: pointer;
}

.update-history-container {
    display: none;
}

.update-history-container.active {
    display: block;
    position: fixed;
    right: 0;
    top: 0;
    width: 320px;
    height: 100%;
    background: #e6ecf0;

    box-shadow: -1px -4px 10px rgba(26, 24, 25, 0.15);
    -webkit-box-shadow: -1px -4px 10px rgba(26, 24, 25, 0.15);
    -moz-box-shadow: -1px -4px 10px rgba(26, 24, 25, 0.15);

    z-index: 20;
}

.update-history-content {
    padding: 30px 25px;
}

.update-history-close {
    position: absolute;
    top: 10px;
    right: 20px;
    background: none;
    border: none;
    outline: none;
    font-size: 28px;
    color:#1a1819;
    cursor: pointer;
}

.update-history-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1819;
}

.update-history-log {
    margin-top: 10px;
    padding: 0px 10px 10px;
    max-height: 80%;
    background: #eef4f8;
    border: 0.75px solid #1a181950;
    border-radius: 6px;
    overflow-y: auto;
}

.update-history-log ul {
    display: flex;
    flex-direction: column-reverse;
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.update-history-log ul li {
    padding: 20px 10px 15px;
    border-bottom: 0.5px solid #1a181925;
    overflow-wrap: break-word; 
    white-space: normal;
}

.update-history-log ul li:nth-of-type(1) {
    border: none;
}

.update-history-log ul li:nth-of-type(2) {
    border: none;
}

.update-history-log ul li .update-message {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    color: #1a1819;
}

.update-history-log ul li .update-timestamp {
    margin: 0;
    margin-top: 10px;
    font-size: 10px;
    font-weight: 400;
    font-style: italic;
    color: #8DA9C4;
}


.update-history-log ul .no-update-message {
    border: none;
    font-size: 16px;
    font-weight: 400;
    color: #1a1819;
}



@media only screen and (max-width:479px){
.onbase_mobile .base-icon{    width: 12px !important;}
.onbase_mobile .base-icon.first-base {right: 21px;}
.onbase_mobile .base-icon.third-base {left: 21px;}
.scoreboard-mobile {position: absolute; bottom: -220px;}
.scoreboard-web-01.active {left: 0 !important; transform: translateX(0%);}
.onbase_web-01 .base-icon{width: 20px !important;}
.onbase_web-01 .base-icon.first-base {right: 33px;}
.onbase_web-01 .base-icon.third-base {left: 35px;}
.count_web-01 {margin-left: 0;}
.count-container_web-01.count-divider_web-01 {width: auto !important;}
.onbase_web-01{margin-left:0;}
}

@media only screen and (max-width:425px){
.onbase_web-01 .base-icon.first-base{right:25px;}
.onbase_web-01 .base-icon.third-base{left: 25px;}
}

@media only screen and (max-width:375px){
    .onbase_mobile .base-icon.first-base {right: 16px;}
    .onbase_mobile .base-icon.third-base {right: 16px;}
    .onbase_web-01 .base-icon.first-base {right: 43px;}
    .onbase_web-01 .base-icon.third-base {left: 43px;}
}

@media only screen and (max-width:360px){
.onbase_web-01 .base-icon.first-base {right: 36px;}
.onbase_web-01 .base-icon.third-base {left: 36px;}
}


@media only screen and (max-width:320px){
.onbase_web-01 .base-icon.first-base {right: 42px;}
.onbase_web-01 .base-icon.third-base {left: 42px;}
.team-container_web-01 .away-team-name, .team-container_web-01 .home-team-name {
    width: 150px !important;}
}