body,
ul,
p,
li,
ol,
div {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: normal;
    line-height: 1.64em;
}

body {
    background-color: #0d1633;
    background-image: repeating-linear-gradient(33deg, rgb(23, 72, 105) 0%, rgba(14, 27, 61, 1) 25%, rgba(159, 203, 228, 1) 32%, rgba(13, 22, 51, .5) 50%);
    /* background: linear-gradient(228deg,  rgba(224,215,38,1) 0%, rgba(216,200,65,1) 32%, rgba(120,205,128,1) 64%, rgba(99,205,138,1) 100%);     */
    display: grid;
    place-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

main {
    display: grid;
    grid-template-columns: 400px 1fr 0;
    max-width: 940px;
    column-gap: 60px;
    box-shadow: 5px 5px 15px #00000023;
    background-color: white;

}

nav {
    margin-top: 20px;
    display: grid;
    justify-content: end;
    grid-template-columns: repeat(4, auto);
    gap: 4px;
}

main img {
    width: 100%;
    max-width: 400px;
    justify-self: center;
}
main.tournament img {
    max-width: 200px;
    justify-self: left;
}

main h1 {
    margin-top: 50px;
    border-bottom: solid 3px gray;
    padding-bottom: 18px;
    font-size: 2.1em;
    margin-bottom: 20px;
    font-family: "Bebas Neue", sans-serif;
    font-weight: 400;
    font-style: normal;
    padding-left:10px;
}
main h1 span {
    color:#d16b52;
}

main h2 {
    font-size: 0.95em;
    text-transform: uppercase;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: normal;
    margin-bottom: 47px;
    margin-top: 20px;
}

h3 {
    font-size: 1.5em;
    font-family: "Bebas Neue", sans-serif;
    font-weight: 400;
    font-style: normal;
    border-bottom: solid 3px gray;
    padding-bottom: 18px;
    color: royalblue;
}

strong {
    color: #0d1633;
}

main p,
main li {
    line-height: 1.6em;
    font-size: 0.9em;
    margin-bottom: 30px;
}

main li {
    margin-bottom: 10px;
    margin-left: -25px;
}

.box-holder {
    display: grid;
    grid-auto-flow: column;
    gap: 3px;
    width: 60px;
}

.box {
    width: 13px;
    height: 13px;
    background-color: black;
    text-decoration: none;
}

.box.light {
    background-color: gray;
}
.updown {
    width:14px;
}
.main {
    grid-column: 1/-1;
    background-color: #0d1633;
    color: white;
    text-align: left;
    padding: 0 0 25px;
}

.main h3 {
    color: #d16b52;

}
#requests h3 {
    padding-left:10px;
    text-align: left;

}

.main strong {
    color: #9fcbe4;
}

.bottom {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-column: 1/-1;
    gap: 50px;
    margin: 0 50px;
}

.quotes {
    font-size: 110px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    margin-top: -40px;
}

.quotes span {
    display: inline;
    position: relative;
    top: -3px;
    left: -3px;
    font-weight: bold;
}

.bottom-grid {
    display: grid;
    grid-template-columns: 5fr 1fr;
    margin-top: 52px;
}
.spacer {
    height: 30px;
}
.warning {
	text-transform: uppercase;
	font-size: .7em;
	color: #142351;
}
.formgrid {
    display: grid;
    grid-template-columns: 1fr;
    /* max-width:500px; */
    width: 400px;
    box-sizing: border-box;
}

.formgrid label {
    font-weight: bold;
    font-size: 13px;
}

.formgrid input {
    padding: 5px;
}

.formgrid input[type=text],.formgrid input[type=date] {
    margin-bottom: 10px;
}

.formgrid input[type=submit] {
    margin-top: 30px;
    padding: 10px 0;
    font-size: 14px;
    margin-bottom: 30px;
}

.formgrid input[type=text]:focus,
.formgrid input[type=password]:focus,
.formgrid input[type=date]:focus,
.form-input:focus {
    box-shadow: 0 0 10px #3cb0fd6e;
    outline: 0px none transparent;
}

.formgrid textarea {
    height: 100px;
}

.bluebg {
    background-color: #0e1d3b;
    display: grid;
}

.btn {
    background: #154569;
    background-image: -webkit-linear-gradient(top, #154569, #2980b9);
    background-image: -moz-linear-gradient(top, #154569, #2980b9);
    background-image: -ms-linear-gradient(top, #154569, #2980b9);
    background-image: -o-linear-gradient(top, #154569, #2980b9);
    background-image: linear-gradient(to bottom, #154569, #2980b9);
    -webkit-border-radius: 12;
    -moz-border-radius: 12;
    border-radius: 12px;
    font-family: Arial;
    color: #ffffff;
    font-size: 14px;
    padding: 10px 75px 10px 75px;
    text-decoration: none;
    border-style: none;
    font-weight: bold;
    cursor: pointer;
}

.btn:hover {
    background: #3cb0fd;
    background-image: -webkit-linear-gradient(top, #3cb0fd, #3498db);
    background-image: -moz-linear-gradient(top, #3cb0fd, #3498db);
    background-image: -ms-linear-gradient(top, #3cb0fd, #3498db);
    background-image: -o-linear-gradient(top, #3cb0fd, #3498db);
    background-image: linear-gradient(to bottom, #3cb0fd, #3498db);
    text-decoration: none;
    color: #154569;
}

nav a:link,
nav a:visited,
nav a:hover,
nav a:active,
nav a:focus {
    text-decoration: none;
    background-color: #0e1d3b;
    color: white;
    padding: 5px 15px;
    text-align: center;
}

nav a:hover {
    color: #0e1d3b;
    background-color: #3cb0fd;
}

#message.show {
    display: block;
}

#message {
    display: none;
    background-color: #f9a60a;
    font-weight: bold;
    padding: 10px 50px 10px 50px;
    border-bottom: solid 4px #e23901;
    transition: 0.5s ease;
    /* Transition effect for max-height */
    max-height: 100px;
    /* Set max-height to a value that accommodates your message */
    overflow: hidden;
    /* Hide overflowing content */
    position: fixed;
    bottom: 0;
    right: 0;
    box-sizing: border-box;

}

#message.fade {
    max-height: 0;
    /* Shrink to 0 height */
    padding: 0;
    /* Remove padding */
    border-width: 0;
    margin-bottom: 0;
}

.messageicon {
    width: 30px;
    margin-bottom: -5px;
}

main section {
    padding:0 15px;
}
/* #requests {
    margin-bottom: 50px;
    background-color: #99c7e5;
    padding: 20px;
}

#requests .serviceinfo {
    padding-bottom: 50px;
}

#requests.adminrequests {
    grid-column: 1/-1;
    background-color: white;
}

#requests.adminrequests section {
    padding: 20px;
}

#requests.adminrequests section:nth-child(odd) {
    background-color: floralwhite;
} */

.admin-service-request {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.admin-service-request h3 {
    grid-column: 1/-1;
}

.w3-gray {
    /* background-color: #5896bc !important; */
    background-image: repeating-linear-gradient(90deg, rgb(23, 72, 105) 0%, rgba(14, 27, 61, 1) 25%, rgba(159, 203, 228, 1) 100%);

    height: 24px;
}

.w3-light-gray {
    border: solid 1px #0d1633;
    border-radius: 10px;
    overflow: hidden;
}

.loading {
    width: 44px;
    height: 44px;
    vertical-align: middle;
}

.updateStatus select {
    width: 100%;
    padding: 8px 15px;
    margin-bottom: 15px;
    font-size: 14px;
}

.form-input {
    padding: 10px;
    margin: 15px 0;
}

.plate {
    border: solid 1px black;
    border-radius: 3px;
    padding: 14px 8px;
    background-image: url("images/idplate.jpg");
    background-size: cover;
    min-width: 94px;
    display: inline-block;
    text-align: center;
    background-position-y: center;
    font-size: 20px;
    text-transform: uppercase;
    position: relative;
    color: black;

}

.plate:link,
.plate:visited,
.plate:hover,
.plate:active,
.plate:focus {
    color: black;
    text-decoration: none;
}

/* Tooltip text */
.plate .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #2980b9;
    color: #fff;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;
    font-size: 12px;

    /* Position the tooltip text - see examples below! */
    position: absolute;
    z-index: 1;
    top: 100%;
    left: 50%;
    margin-left: -60px;
}

.plate:hover .tooltiptext {
    visibility: visible;
}

.fancy {
    border-collapse: collapse;
    padding: 10px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.fancy td {
    padding: 10px;
    border: solid 1px #142351;
}
.fancy tr {
	background-color: #d9d9d9;
	color: black;
}
.fancy tr:nth-of-type(2n) {
	background-color: #fff;
	color: black;
}
.fancy.finalrankings tr.light-background {
	background-color: rgb(246, 229, 188);
}
.fancy.finalrankings tr {
	background-color: white;
}
/* .fancy td:nth-of-type(odd).light-background {
    background-color:#33488a;
} */
.fancy td.light-background {
	background-color: rgba(225, 189, 102, 0.3);
}
.fancy td:last-of-type {
    text-align: center;
}

.fancy th {
	text-align: left;
	padding: 10px;
	/* border-bottom: dotted 2px #14759e; */
	background-color: #142351;
	color: white;
}
.fancy th:last-of-type {
    text-align: center;
}
.win, .fancy td.win {
    color:#509e58;
    font-weight:bold;
}
.win.score {
    color:#509e58;
    background-color: inherit;
}
.mainheader {
    width:100%;
    background-color: #d16b52;
    padding: 10px;
    box-sizing: border-box;
    font-weight: bold;
    text-align: center;
    margin-top:50px;
}
.topinfo {
    background-color: #142351;
    font-weight: bold;
    text-align: center;
    padding:19px 0;
}
.topinfowhite {
    background-color: #142351;
    font-weight: bold;
    text-align: center;
    padding:19px 0;
    color:white;
}

.tournament-status {
    text-align: center;
    padding: 15px 20px;
    margin: 0;
    border-bottom: 1px solid #ddd;
}

.tournament-status.pool-play {
    background-color: #fff3cd;
    color: #856404;
}

.tournament-status.bracket-play {
    background-color: #d4edda;
    color: #155724;
}

.tournament-status.champions {
    background-color: #142351;
    color: #ffd700;
}

.tournament-status .champion-line {
    font-size: 1.2em;
    font-weight: bold;
    padding: 5px 0;
}

.tournament-status .champion-line.in-progress {
    color: #b0b0b0;
    font-style: italic;
}

.tournament-status .status-count {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 5px;
}

.tournament-status .status-message {
    font-size: 0.95em;
    line-height: 1.4em;
}

.table-striped{
    width:100%;
}
.btn-danger {
    /* background: red; */
    background: #691515;
    background-image: -webkit-linear-gradient(top, #691515, #b92929);
    background-image: -moz-linear-gradient(top, #691515, #b92929);
    background-image: -ms-linear-gradient(top, #691515, #b92929);
    background-image: -o-linear-gradient(top, #154569, #b92929);
    background-image: linear-gradient(to bottom, #691515, #b92929); 
    padding:9px 18px;   
}
.btn-danger:hover {
        background: #fd3c3c;
        background-image: -webkit-linear-gradient(top, #fd3c3c, #db3434);
        background-image: -moz-linear-gradient(top, #fd3c3c, #db3434);
        background-image: -ms-linear-gradient(top, #fd3c3c, #db3434);
        background-image: -o-linear-gradient(top, #fd3c3c, #db3434);
        background-image: linear-gradient(to bottom, #fd3c3c, #db3434);
        text-decoration: none;
        color: #430909;
}
#allCurrentTournaments {
    background-color:white;
    padding-bottom:20px;
}
#allCurrentTournaments li {
    list-style: none;
    padding:0 20px;
}
#inactiveTournaments {
    background-color:white;
    padding-bottom:20px;
}
#inactiveTournaments li {
    list-style: none;
    padding:0 20px;
}
nav .admin {
	background-color: #d3d4d6 !important;
}
.tab {
    display: flex;
    flex-wrap: wrap;
}
.tab button {
	margin-right: 5px;
	border: none;
	padding: 15px;
	cursor: pointer;
    background-color: #d3d4d6;
    font-size:0.7em;

}
.opener {
    display: none;
    margin-bottom:80px;
}
.tab button.active {
    background-color: #d16b52;
    color: white; /* Optional: to ensure text is readable */
}
#requests {
    /* padding:20px; */
    text-align:center;
}
#requests section {
    text-align:left;
}

/* BRACKET */

.bracket {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    color:black;
  }

  .round {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    gap: 40px;
  }

  .round-title {
    font-size: 1em;
    font-weight: bold;
    margin-top: 20px;
    text-align: center;
    color:white;
  }
  .round.roundinfo {
    border-bottom:solid 1px #ffffff52;
  }
  .bracket .round-title.seconds {
    display: none;
  }
  .match {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    width: 170px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
  .matchname {
        text-align: center;
        background: #d9d9d9;
        color: black;
        font-weight: bold;
        text-transform: uppercase;
        font-size: .7em;
  }
  .team {
    display: flex;
    font-size:.8em;
    font-weight:normal;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    font-weight: bold;
    text-align: left;
    border-bottom: 1px solid #ccc;
  }

  .team:nth-of-type(odd) {
    border-bottom: none;
  }

  .score {
    background: #eee;
    border-radius: 4px;
    padding: 2px 6px;
    min-width: 24px;
    text-align: center;
  }
  .setscores {
      margin-top:15px;
      font-size:.8em;
      background-color:#05829a;
      text-align: center;
      color:white;
  }
  .team.winner {
      background-color:green;
  }

@media screen and (max-width: 850px) {
    body {
        place-items: start;
        font-size:14px;
    }

    main {
        grid-template-columns: 1fr;
        width: 100%;
        background-image: none;
        background-color: #becbd3;

    }

    main section {
        padding: 0;
        /* background-color: white; */
    }
    main img, main.tournament img {
        max-width:200px;
        box-shadow: 0 0 10px #000000aa;
        justify-self: center;
    }
    main img.loading, main.tournament img.loading {
        box-shadow: none;
    }

    .bottom {
        grid-template-columns: 1fr;
        background-color:white;
        gap:0;
        margin:0 10px;
        padding:5px;
    }

    nav {
        /* padding-right:15px; */
    }

    .admin-service-request {
        grid-template-columns: 1fr;
    }

    .updateStatus button {
        width: 100%;
    }

    .formgrid {
        width: 100%;
    }

    #message {
        display: none;
        background-color: #f9a60a;
        font-weight: bold;
        padding: 10px 50px;
        border-bottom: solid 4px #e23901;
        transition: 0.5s ease;
        max-height: 100px;
        overflow: hidden;
        position: fixed;
        bottom: inherit;
        top: 0;
        right: 0;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
    .fancy th {
        padding:0;
    }
    .fancy {
        width:95%;
        margin:10px;
    }
    .fancy td {
        max-width: 50px;
    }
    .fancy td input {
        width: 100%;
    }
    .tab button {
        width:100%;
        font-size:1em;
    }
    #requests h3 {
        font-size:2.2em;
        text-align:center;
        padding-left:0;
        line-height:1.34em;
    }
    .round.roundinfo {
        border-bottom:none;
        display:none;
      }


}
@media (max-width: 768px) {
    .bracket {
        grid-template-columns: 1fr;
      }
      .bracket .round-title.firsts {
        display: none;
      }
      .bracket .round-title.seconds {
        display:block;
      }
      .round {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
      }

      .match {
        width: 80%;
      }
      .round-title {
        width: 100%;
        margin-top: 40px;
      }
    }