/*

This is the main CSS - styling file. Mainly styles the newgame.html - page.

*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

*{
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}
body {
    background: #F5F5F5;
}
/* The main header of the application */
.header{
    width: 100%;
    length: 100%;
}
#sData {
    display: none;
    color: #fff;
}
.nav-link {
    color: #fff !important;
}
.nav-link:hover {
    background-color: #3046FB;
}

/* Default Bootstrap nav-link padding (.5rem 1rem) plus a 16px font-size adds up fast
   across 11 items once translated labels run longer than the English originals (e.g.
   "Kirjaudu sisään" vs "Login") - without this, individual items wrap their text onto a
   second line rather than the whole menu collapsing to the hamburger as one unit. */
.navbar-nav .nav-link {
    padding: .5rem .55rem;
    font-size: 14.5px;
    white-space: nowrap;
}

/* Bootstrap's own .navbar-expand-xl switches to the single-row nav at 1200px, but the
   brand mark + all 11 nav items (even tightened above) + the language switcher measure
   ~1385px for the longest translations (Finnish/Swedish) - between 1200 and ~1385px the
   row doesn't fit, and since .navbar-collapse doesn't wrap, the overflow (usually the
   language switcher, being last) gets silently clipped at the right edge instead of
   visibly wrapping. Rather than reimplement Bootstrap's responsive navbar mechanism at a
   different breakpoint, this just forces the existing, already-working collapsed/hamburger
   state back on for that one problem band, with margin - leaving Bootstrap's own behavior
   untouched both below 1200px and above 1450px. */
@media (min-width: 1200px) and (max-width: 1449.98px) {
    .navbar-expand-xl .navbar-collapse:not(.show) {
        display: none !important;
    }
    .navbar-expand-xl .navbar-toggler {
        display: block !important;
    }
    /* Bootstrap's own >=1200px .navbar-expand-xl rules assume the collapse never
       triggers in this band (nowrap on .navbar, flex-start instead of the base
       class's space-between, collapse flex-basis:auto instead of 100%) - since we're
       forcing the hamburger back on here, those same rules fight it: the toggler ends
       up stuck next to the brand instead of pushed right, and an opened menu sits
       inline beside the brand/toggler row instead of dropping to a full-width panel
       below. Restoring the true (<1200px) mobile values for all three undoes that. */
    .navbar-expand-xl.navbar {
        justify-content: space-between !important;
        flex-wrap: wrap !important;
    }
    .navbar-expand-xl .navbar-collapse {
        flex-basis: 100% !important;
        /* Without this, an opened (.show) menu in this band still inherits Bootstrap's
           flex-direction: row from its own >=1200px rule, so it still overflows/clips -
           just behind a click instead of always visible. Force it back to a stacked
           list, same as the true (<1200px) mobile dropdown. */
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .navbar-expand-xl .navbar-nav {
        flex-direction: column !important;
    }
    .navbar-expand-xl .navbar-nav .nav-link {
        white-space: normal;
    }
}

/* Language switcher - deliberately plain links, not a <select>, and deliberately
   outside .navbar-nav so it never counts toward the nav-item wrap/overflow budget. */
.navbar-lang {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 700;
}
.navbar-lang__link,
.navbar-lang__current {
    padding: 4px 6px;
    border-radius: 4px;
}
.navbar-lang__link {
    color: rgba(255, 255, 255, 0.65) !important;
    text-decoration: none;
}
.navbar-lang__link:hover {
    color: #fff !important;
    background-color: #3046FB;
}
.navbar-lang__current {
    color: #fff;
}
.navbar-lang__sep {
    color: rgba(255, 255, 255, 0.35);
}
@media (min-width: 1200px) {
    .navbar-lang {
        padding: 8px 0 8px 12px;
    }
}
.active{
    color: #000000;
    text-decoration: none;
}
.about{
    color: #F5F5F5;
    text-decoration: none;
}
.pricing{
    color: #F5F5F5;
    text-decoration: none;
}
.contact{
    color: #F5F5F5;
    text-decoration: none;
}
.home{
    color: #F5F5F5;
    text-decoration: none;
}
.frontpage{
    color: #F5F5F5;
    text-decoration: none;
}
.statistics{
    color: #F5F5F5;
    text-decoration: none;
}
.newgame{
    color: #F5F5F5;
    text-decoration: none;
}
.preferences{
    color: #F5F5F5;
    text-decoration: none;
}
.user-pic{
    text-decoration: none;
    padding: 18px;
}
.user{
    text-decoration: none;
    color: #F5F5F5;
    padding: 20px 400px 0 0;
}
.banner{
    top: 20%;
    color: #000000;
}
.app-text{
    text-align: center;
    margin: auto;
}
.center {
    margin-left: auto;
    margin-right: auto;
}
.app-text h1{
    font-size: 25px;
    padding-top: 20%;
    padding-left: 20%;
    padding-right: 20%;
}
.app-text h3{
    font-size: 22px;
    padding-top: 10%;
    padding-left: 20%;
    padding-right: 20%;
}
.app-text p{
    font-size: 15px;
    line-height: 20px;
    color: #000000;
    padding-left: 20%;
    padding-right: 20%;
}
.app-text ul li{
    font-size: 15px;
    line-height: 25px;
    color: #000000;
    list-style-position: inside;
    text-align: left;
    padding-left: 20%;
    padding-right: 20%;

}

/* Index.html - page styling */

.frontpage-choices{
	text-align: center;
	margin: 20px 0 30px 0;
	color: #000000;
	width: 100%;
}
.frontpage-choices ul li {
    display: flex;
    font-size: 10px;
}
.frontpage-choices h2{
    font-size: 35px;
    font-weight: 300;
    color: black;
}
.frontpage-choices p{
    font-size: 15px;
    font-weight: 100;
    color: #919191;
}
.frontpage-choices a{
    background-color: #002072;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
}

/* Newgame.html - page styling */

.team-selection textarea {
    width: 80%;
    resize: none;
    font-size: 20px;
    text-align: center;
}

.team-selection {
    text-align: center;
    padding: 30px 0 0 0;
}
.team-selection input {
    width: 70%;
    height: 40px;
    text-align: center;
    padding: 10px 0 10px 0;
}
.team-selection input [type=checkbox] {
    border-radius: 2em;
    height: 30px;
    width: 60px;
    text-align: center;
    padding: 10px 0 10px 0;
}
.team-selection label {
    width: 70%;
    text-align: center;
    padding: 10px 0 10px 0;
}
.team-selection select {
    width: 70%;
    height: 40px;
    text-align: center;
    padding: 10px 0 10px 0;
}
.team-selection img {
    text-align: center;
    padding: 10px 0 10px 0;
    width: 35px;
}

.team-selection h2 {
    font-size: 25px;
}

.lineup-selection {
    text-align: center;
}

.game-btn {
	text-align: center;
}

.button-input p{
    text-align: center;
    padding: 0 0 0 0;
}
.button-input-2 p{
    text-align: center;
    padding: 0 0 0 0;
}
.shot-map{
    text-align: center;
    padding: 0 0 0 0;
}
.pos-input{
    text-align: center;
    padding: 30px 0 0 0;
}
.pos-btn{
    text-align: center;
    width: 100%;
    padding: 10px 0 0 0;
}
.zone-btn{
    text-align: center;
    padding: 25px 0 0 0;
}
.line-btn{
    text-align: center;
    padding: 0 0 5px 0;
}
.line-btn-2{
    text-align: center;
    padding: 0 0 5px 0;
}
.game-clock {
	text-align: center;
	padding: 0 0 0 0;
}
.shot-menu, .shot-type, .shooter-type, .passer-type, .posT1-type, .posT2-type {
    position: absolute;
    display: none;
    text-align: center;
    background: white;
    border: 1px solid darkgray;
}

.shot-menu ul, .shot-type ul, .shooter-type ul, .passer-type ul, .posT1-type ul, .posT2-type ul {
    padding: 0px;
    margin: 0px;
    min-width: 150px;
    list-style: none;
}

.shot-menu ul li, .shot-type ul li, .shooter-type ul li, .passer-type ul li, .posT1-type ul li, .posT2-type ul li {
    padding-bottom: 7px;
    padding-top: 7px;
}

.shot-menu ul li a, .shot-type ul li a, .shooter-type ul li a, .passer-type ul li a, .posT1-type ul li a, .posT2-type ul li a {
    text-decoration: none;
    color: black;
}

.shot-menu ul li:hover, .shot-type ul li:hover, .shooter-type ul li:hover, .passer-type ul li:hover, .posT1-type ul li:hover, .posT2-type ul li:hover {
    background: darkgray;
}

.option-menu {
    position: absolute;
    display: none;
    text-align: center;
    background: white;
    border: 1px solid darkgray;

}

.shot-map canvas{
	text-align: center;
	padding: 0px;
	margin-left: 0px;
}

.stats-L1, .stats-L2, .stats-L3, .stats-Team, .stats-PP1, .stats-PP2, .stats-SH1, .stats-SH2,
.stats-L1T2, .stats-L2T2, .stats-L3T2, .stats-TeamT2, .stats-PP1T2, .stats-PP2T2, .stats-SH1T2, .stats-SH2T2  {
    text-align: center;
}

.stats-L1 p, .stats-L2 p, .stats-L3 p, .stats-Team p, .stats-PP1 p, .stats-PP2 p, .stats-SH1 p, .stats-SH2 p,
.stats-L1T2 p, .stats-L2T2 p, .stats-L3T2 p, .stats-TeamT2 p, .stats-PP1T2 p, .stats-PP2T2 p, .stats-SH1T2 p, .stats-SH2T2 p  {
    font-size: 10px;
    margin: 0px 0px 1px;
    text-align: center;
}

.underline {
    display: inline-block;
    width: 160px;
    height: 2px;
    background-color: #65CD00;
}

/* myteam.html styling */

.my-roster {
    line-height 30px;
}

.player-list {
    text-align: left;
    list-style: none;
}

.addplayer-form {
   display: none;
   padding: 15px 0 0 0;
}

.changeteam-form {
   display: none;
   padding: 15px 0 0 0;
}

input {
    width: 50%;
    padding: 12px 20px;
    margin: 8px 0;
    box-sizing: border-box;
}
textarea {
    width: 50%;
    padding: 12px 20px;
    margin: 8px 0;
    box-sizing: border-box;
}
.gamestats {
	text-align: center;
}
.linestats {
    text-align: center;
	width: 90%;
}

.update-info li {
    padding: 5px;
    font-size: 12px;
}
.update-info h5 {
    color: #002072;
}
.update-info p {
    font-size: 12px;
}

/*
.playerData-table {
    font-size: 11px;
}
.playerData-header {
    font-size: 11px;
    font-weight: bold;
}*/
