/* style.css 
Author: Reiner Opitz
Date: 10/03/2023
CSS style sheet for HTML
accessed by linking
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/style.css') }}"> in HTML
*/



/*Main Body*/
body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    background-color: #8793a0c0;
    font-family: Arial, Helvetica, sans-serif;
    max-width: 2827px;
    position: relative;
    min-height: 100vh;
    /*added so that the header and footer would fill the entire page*/
}

/* Top Nav Bar */
.topnav {
    display: flex;
    justify-content: flex-start;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: blue;
    z-index: 20;
    margin: 0;
    padding: 0;
}

.topnav a {
    float: left;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}

.topnav a:hover {
    background-color: #ddd;
    color: blue;
}

.topnav a.active {
    background-color: #04AA6D;
    color: white;
}

.hamburger {
    display: none;
    background-color: transparent;
    border: none;
}

.hamburger-dropdown-content {
    display: none;
}

.hamburger-dropdown-content.show {
    display: block;
    position: absolute;
    width: 40%;
    z-index: 1;
    top: 100%;
    left: 0;
}

.hamburger-dropdown-content a {
    display: block;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    font-size: 10px;
    width: 40%;
    background-color: #007BFF;
    border-radius: 5px;
    border: 2px solid white;
}

.hamburger-dropdown-content a:hover {
    background-color: #4CAF50;
}

.hamburger-icon {
    height: 30px;
    width: 30px;
}

/* container for buttons */
.button-container {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: transparent;
    color: black;
    padding: 0px 0px;
    font-size: 24px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

/* CSS for the "Demo Link" button */
button.demo-link {
    background-color: #007BFF;
    /* Background color */
    color: white;
    /* Text color */
    border: none;
    /* Remove border */
    padding: 10px 20px;
    /* Padding for the button */
    font-size: 38px;
    /* Font size */
    cursor: pointer;
    /* Cursor style on hover */
    /* Rounded corners */
    border-radius: 5px;
    /* Hover effect */
    transition: background-color 0.3s ease-in-out;
}

/* CSS for the top portion of the page 
this includes the score, run-demo, year select, and percentage
*/
.wrapper {
    margin-top: 98px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    padding: 10px;
}

.left-box {
    flex: 1;
    text-align: center;
    padding: 10px;
    color: green;
    font-size: 1.5em;
    order: 1;
    justify-content: center;
}

.right-box {
    flex: 1;
    text-align: center;
    padding: 10px;
    color: green;
    font-size: 1.5em;
    order: 3;
    justify-content: center;
}

.center-box {
    flex: 2;
    text-align: center;
    order: 2;
}

/* CSS for the "Run Demo" button */
button#run-demo-button {
    background-color: #007BFF;
    /* Background color */
    color: white;
    /* Text color */
    border: none;
    /* Remove border */
    padding: 10px 20px;
    /* Padding for the button */
    font-size: 30px;
    /* Font size */
    cursor: pointer;
    /* Cursor style on hover */
    /* Rounded corners */
    border-radius: 5px;
    /* Hover effect */
    transition: background-color 0.3s ease-in-out;

    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
}

.build-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

/* Drop Down in top nav */
.dropdown {
    float: left;
}

.dropdown .dropbtn {
    font-size: 16px;
    border: none;
    outline: none;
    color: white;
    padding: 14px 16px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
}

.dropdown-content {
    display: none;
    position: absolute;
    min-width: 160px;
    z-index: 15;
    border-radius: 5px;
    border: 2px solid white;
    background-color: #007BFF;
}

.dropdown .dropdown-content a {
    float: none;
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #4CAF50;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropbtn:hover {
    background-color: #ddd;
    color: blue;
}

img {
    opacity: 1.0;
    padding: 1px;

}


/* Text Box */
.bg-text2 {
    border: 2px solid white;
    background-color: white;
    text-align: left;
    width: 80%;
    padding: 50px;
    margin: auto;
    font-size: 12pt;
    font-family: Arial, sans-serif;
    border-radius: 10px;
}

/* Text Box */
.index-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 2px solid white;
    background-color: white;
    text-align: left;
    width: 80%;
    padding: 2px;
    margin: auto;
    font-family: Arial, sans-serif;
    border-radius: 10px;
    box-sizing: border-box;
}

.centered-index-text {
    text-align: center;
    font-family: Impact;
    font-size: 60px;
    margin-top: 0;
    margin-bottom: 0;
    line-height: normal;
}

.center {
    margin: auto;
    width: 80%;
    border: 3px solid #73AD21;
    padding: 10px;
}

.demo-h1-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    border: 2px solid white;
    background-color: white;
    text-align: left;
    width: 80%;
    padding: 2px;
    margin: auto;
    margin-bottom: 0;
    font-family: Arial, sans-serif;
    border-radius: 10px;
}

.script-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: transparent;
    text-align: left;
    width: 80%;
    padding: 2px;
    margin: auto;
    font-family: Arial, sans-serif;
    border-radius: 10px;
    box-sizing: border-box;
}

.script-text-container .generic-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 2px solid #007bb5;
    background-color: white;
    text-align: left;
    width: 100%;
    padding: 2px;
    margin: 10px auto;
    font-family: Arial, sans-serif;
    border-radius: 10px;
    box-sizing: border-box;
}

.generic-centered-container {
    display: inline-block;
    justify-content: center;
    flex-direction: column;
    border: 2px solid #007bb5;
    background-color: white;
    text-align: center;
    width: 100%;
    padding: 2px;
    margin: 10px auto;
    font-family: Arial, sans-serif;
    border-radius: 10px;
    box-sizing: border-box;
}

.script-text-container .generic-text-container:first-child {
    margin-top: 0;
}

.script-text-container .generic-text-container:last-child {
    margin-bottom: 0;
}

h3 {
    text-align: center;
}

h4 {
    font-size: 12px;
}

/* Button */
.button {
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 24px;
    margin: 4px 2px;
    cursor: pointer;
}

.button1 {
    background-color: rgba(0, 26, 255, 0.808);
}

/* Green */
.button2 {
    background-color: #008CBA;
}

/* Footer */
.footer {
    padding: 3px;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #EAECEE;
    color: black;
    text-align: center;
}

td,
th {
    border: 1px solid #dddddd;
    text-align: left;
    padding: 8px;
}

tr:nth-child(even) {
    background-color: #D6EEEE;
}

div.ex1 {
    width: 60%;
    margin: auto;
}

.fa-brands {
    padding: 10px;
    font-size: 30px;
    width: 30px;
    text-align: center;
    text-decoration: none;
    margin: 5px 2px;
    border-radius: 50%;
}

.fa:hover {
    opacity: 0.7;
}

.fa-facebook {
    background: #3B5998;
    color: white;
}

.fa-x-twitter {
    background: white;
    color: white;
}

.fa-google {
    background: #dd4b39;
    color: white;
}

.fa-linkedin {
    background: #007bb5;
    color: white;
}

.fa-youtube {
    background: #bb0000;
    color: white;
}

.fa-instagram {
    background: #125688;
    color: white;
}

/* Table */
table,
th,
td {
    border: 1px solid black;
    text-align: center;
}

.bracket {
    display: flex;
    flex-direction: column;
    overflow-x: auto;
    margin: 10;
    background-color: white;
    border-radius: 1em;
}


section {
    margin: 0 8px;
}

/* Header/Logo Title */
.header {
    position: fixed;
    width: 100%;
    top: 47px;
    z-index: 10;
    padding: 0px;
    text-align: center;
    background: linear-gradient(to left, rgb(0, 0, 255) 0%, rgb(118, 177, 255) 100%);
    color: white;
    font-size: calc(1.5em + 1vw);
    box-sizing: border-box;
}

.header-text {
    color: white;
    background: linear-gradient(blue, navy);
    border: double 5px white;
    border-radius: 1em;
    text-align: center;
    padding: 5px 0;
}

.header-text h1,
.header-text h6 {
    margin: 0;
}

.header-text h1 {
    font-size: 1.5em;
}

button#button-2 {
    background-color: #4CAF50;
    /* Green */
    border: none;
    color: white;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 18px;
    margin: 14px 2px;
    cursor: pointer;
    border-radius: 5px;
    padding: 10px 30px
}

button#printButton {
    background-color: #4CAF50;
    /* Green */
    border: none;
    color: white;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 18px;
    margin: 14px 2px;
    cursor: pointer;
    border-radius: 5px;
    padding: 10px 30px
}

button#downloadButton {
    background-color: #4CAF50;
    /* Green */
    border: none;
    color: white;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 18px;
    margin: 14px 2px;
    cursor: pointer;
    border-radius: 5px;
    padding: 10px 30px
}

.tournament {
    display: flex;
    flex-direction: row;
}

.tournament .round {
    /*  font-size: .75em; */
    font-size: .85em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 200px;
    list-style: none;
    padding: 0;
}

.tournament .round .spacer {
    flex-grow: 2;
}

.tournament .round .spacer:first-child,
.tournament .round .spacer:last-child {
    flex-grow: 1;
}

.first-four {
    border: 1px solid #888;
    border-radius: 1em;
    background-color: lightcyan;
    padding: 0 1em;
}

.tournament-header {
    display: flex;
    width: 100%;
    text-align: center;
    font-weight: bold;
    border-radius: 1em;
    border: 1px solid black;
    background-color: #f54e00;
    color: white;
}

.first-four-winner li.game-left,
.round-1 li.game-left,
.round-2 li.game-left,
.round-3 li.game-left,
.round-4 li.game-left,
.semi-final li.game-left {
    padding-left: 0.5em;
}

.first-four-winner li.game-right,
.round-1 li.game-right,
.round-2 li.game-right,
.round-3 li.game-right,
.round-4 li.game-right,
.semi-final li.game-right {
    padding-right: 0.5em;
}

.region {
    font-size: 1.5em;
    font-weight: bold;
}

.region-right {
    text-align: right;
    padding-right: 5px;
}

.region-left {
    text-align: left;
    padding-left: 5px;
}

ul.seed li.game-left span:first-child,
ul.seed li.game-right span:last-child {
    font-size: 0.5em;
}

li.game-right {
    text-align: right;
    border-left: 1px solid #aaa;
}

li.game-left {
    border-right: 1px solid #aaa;
}

li.game-bottom {
    border-bottom: 1px solid #aaa;
}

li.game-top {
    border: none;
    border-bottom: 1px solid #aaa;
}

li.game-left.spacer {
    border-right: 1px solid #aaa;
    min-height: 5px;
    padding-right: .25em;
}

li.game-right.spacer {
    border-left: 1px solid #aaa;
    min-height: 5px;
    padding-left: .25em;
    text-align: left;
}

.final {
    text-align: center;
    padding-top: 1em;
    padding-bottom: 1em;
    border: 1px solid #aaa;
    margin-top: 1em;
    margin-bottom: 1em;
    font-weight: bold;
}

.finals .centered {
    text-align: center;
    font-weight: bold;
}

.finals .centered>input {
    display: block;
    width: 4em;
    margin: 0 auto 0 auto;
    text-align: center;
}

.body-first-child {
    margin-top: -45px;
}

.extra-padding {
    padding-top: 45px;
}

/* view port css for svg for auto scaling logo designed in 3:1 ratio */

#wb_logo {
    width: 100%;
    height: 100%;
    display: block;
}

/* Sytle for the index page boxes*/
.link-boxes {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    font-size: 18px;
}

.box {
    position: relative;
    flex: 1;
    margin: 0 10px;
    background: radial-gradient(circle at center, #f2f2f2 0%, rgba(0, 110, 255, 0.486) 100%);
    border-radius: 15px;
    text-align: center;
    padding: 20px;
    border: 5px solid #000000;
    min-height: 100px;
    min-width: 100px;
}

.box::before {
    content: '';
    display: block;
    padding-top: 100%;
}

.box-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
}

.box-text {
    text-align: center;
    font-family: Impact;
    font-size: calc(1.5vw + 1.5vh + 1vmin);
    margin-top: 0;
    margin-bottom: 2vw;
    line-height: normal;
}

.box-button {
    display: inline-block;
    margin-top: auto;
    padding: 1vh 2vw;
    background-color: #007BFF;
    color: #ffffff;
    text-decoration: none;
    font-size: calc(1vw + 1vh + 1.2vmin);
    font-family: Impact, Arial, sans-serif;
    font-style: impact;
    border-radius: 5px;
    border: 2px solid #000000;
    transition: background-color 0.3s;
}

.box-button:hover {
    background-color: #4CAF50;
}

.email-year-container {
    display: flex;
    justify-content: center;
    /* Center the email and year horizontally */
    width: 100%;
    /* Ensure the container spans the full width */
}

.email-box,
.year-box {
    display: flex;
    flex-direction: column;
    /* Stack the label and input/select vertically */
    align-items: center;
    /* Center align the items vertically */
    margin-right: 10px;
    /* Space between email and year */
}

.buy-year-box select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.email-box:last-child,
.year-box:last-child {
    margin-right: 0;
    /* Remove margin from the last element */
}

/*
Overlay Message Prior to Pre Buying
*/

.bracket-overlay {
    position: relative;
    /* Ensure the parent container is positioned */
}

.overlay-message {
    position: absolute;
    /* Position the message box absolutely within the .bracket div */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi-transparent black background */
    color: white;
    /* White text color */
    display: flex;
    justify-content: center;
    /* Center horizontally */
    align-items: center;
    /* Center vertically */
    text-align: center;
    font-family: Impact;
    font-size: 60px;
    padding: 20px;
    /* Add some padding */
    box-sizing: border-box;
    /* Ensure padding does not add to the box size */
}

.sleeping-basketball {
    width: 100%;
    max-width: 300px;
    display: block;
    margin: 20px auto;
    height: auto;
}

.generic-center-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Square up payment container css*/
.square-payment-container {
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 259px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: -2px 10px 5px rgba(0, 0, 0, 0);
    border-radius: 10px;
    font-family: Roboto, SQ Market, Helvetica, Arial, sans-serif;
}

/* Media Query for Smaller Screens*/

@media (max-width: 700px) {

    .link-boxes,
    .demo-h1-container {
        flex-direction: column;
        align-items: center;
    }

    .left-box {
        order: 2;
    }

    .center-box {
        order: 1;
    }

    .right-box {
        order: 3;
    }

    .box {
        margin: 10px 0;
    }

    .centered-index-text,
    .demo-h1-container {
        font-size: calc(1.5vw + 1.5vh + 1.5vmin);
    }

    .box-text {
        font-size: calc(1.2vw + 1.2vh + 1.2vmin);
    }

    .box-button {
        font-size: calc(1.2vw + 1.2vh + 1.2vmin);
    }

    .hamburger {
        display: block;
    }

    .hamburger-dropdown-content.show a {
        display: block;
    }

    .topnav a,
    .dropdown,
    .dropbtn {
        display: none;
    }

    .topnav {
        background: linear-gradient(to left, rgb(0, 0, 255) 0%, rgb(118, 177, 255) 100%);
    }

    .header {
        top: 34px;
    }

    .generic-text-container table {
        font-size: calc(.8vw + .8vh + .8vmin)
    }
}

@media (max-width: 435px) {

    .box-text,
    .demo-h1-container {
        font-size: calc(1vw + 1vh + 1vmin);
    }

    .box-button {
        font-size: calc(.8vw + .8vh + .8vmin);
    }

    .tournament-header {
        font-size: calc(.75vw + .75vh + .75vmin);
    }

    .bracket {
        min-width: 3vmin;
    }

}

@media(min-width: 436px) and (max-width: 900px) {

    .box-text,
    .demo-h1-container {
        font-size: calc(.75vw + .75vh + .75vmin);
    }

    .box-button {
        font-size: calc(.65vw + .65vh + .65vmin);
    }

    .centered-index-text {
        font-size: calc(1.5vw + 1.5vh + 1.5vmin);
    }

    .tournament-header {
        font-size: calc(.75vw + .75vh + .75vmin);
    }

}


@media (min-width: 901px) and (max-width: 1173px) {

    .box-text {
        font-size: calc(1vw + 1vh + 1vmin);
    }

    .demo-h1-container {
        font-size: calc(.7vw + .7vh + .7vmin);
    }

    .box-button {
        font-size: calc(.8vw + .8vh + .8vmin);
    }
}