@import url('https://fonts.googleapis.com/css2?family=Francois+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Aguafina+Script&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

html, body {
    background-color: rgb(190, 195, 195);
    font-family: "Outfit", serif;
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.game-selection-link {
    display: block;
    text-decoration: none;
    color: aliceblue;
}

.game-selection-link:visited {
    text-decoration: none;
    color: aliceblue;
}

.game-selection-container {
    display: flex;
    align-items: center; 
    width: 50%;
    border-radius: 0px;
    height: 200px;
    background-color: #015e9033;
    margin-left: auto;
    margin-right: auto;
    color: aliceblue;
    border: 5px solid #606060;;
    font-family: "Outfit", serif;
    cursor: pointer;
    text-align: left;
    padding: 10px; 
    margin-bottom: 20px;
}

.game-selection-content {
    display: flex;
    flex-direction: column;
    justify-content: center; 
    flex-grow: 1;
    padding-right: 20px;
}

.game-selection-title {
    font-size: 50px;
    margin-bottom: 2%;
    text-align: center;
}

.game-selection-description {
    text-align: center;
    font-size: 20px;
}

.game-selection-container img {
    height: 100%;
    max-width: 150px; 
    object-fit: cover;
    margin-left: 20px;
    max-height: 190px;
    border: 3px solid rgb(255, 255, 255);
    border-radius: 10px;
}

.game-selection-container:hover {
    background-color: rgba(0,0,0,0.4);
}


.game-button-container a {
    text-decoration: none;
}

.button-container {
    width: 600px;
    height: 600px;
    margin-right: auto;
    margin-left: auto;
    font-family: 'Francois One', sans-serif;
    background-color: rgb(24, 49, 59);
    border: 2px solid white;
    display: block;
    flex: 1;
    aspect-ratio: 1 / 1;
}


.buttonEven {
    width: 25%;
    height: 25%;
    float: left;
    background-color: rgb(78, 78, 78);   
    margin: 0px;
    position: relative;
    text-align: center;
    display: flex;
}

.buttonOdd {
    width: 25%;
    height: 25%;
    float: left;
    background-color: rgb(48, 49, 49);   
    margin: 0px;
    position: relative;
    text-align: center;
    display: flex;
}

.gameDetails {
    width: 100%;
    font-size: 5%;
    color: aliceblue;
    margin-top: 3px;
    text-align: center;
}


.greenExpand {
    animation: colorExpand 0.4s ease;
    z-index: 999;
}


@keyframes colorExpand {
    0% {
        transform: scale(1); 
    }
    35% {
        transform: scale(1.5);
    }
    100% {
        transform: scale(1); 
    }
}


.button-container a img {
    width: 80%;
    max-block-size: 90%;
    margin-top: auto;
    margin-left: 10%;
    height: auto;
}

.button-container a img:hover{
    filter: grayscale(50%);
    filter: gray;
    transition: 0.3s ease;
}

.button-container-hoops {
    width: 600px;
    overflow-y: auto;
    margin-right: auto;
    margin-left: auto;
    font-family: 'Francois One', sans-serif;
    background-color: rgb(24, 49, 59);
    border: 2px solid white;
    display: block;
    flex: 1;
    aspect-ratio: 1 / 1;
    overflow: visible;
    position: relative;
    max-height: 600px;
}

.button-container-hoops a img {
    max-width: 70%;
    max-block-size: 90%;
    margin: auto;
    height: auto;
}

.button-container-hoops a img:hover{
    filter: grayscale(50%);
    filter: gray;
    transition: 0.3s ease;
}

.player-container {
    width: 580px;
    margin: 0 auto 10px auto;
    background-color: rgb(48, 49, 49);   
    font-size: 300%;
    font-family: 'Francois One', sans-serif;
    color: aliceblue;
    height: 60px;
    border-radius: 30px;
    display: flex;
    align-items: center; 
    justify-content: space-between;
    padding: 0 10px;
}

.players-remaining {
    width: 100px;
    font-size: 75%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-name {
    width: 200px;
    font-size: 40%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.skip {
    width: 100px;
    height: 40px;
    font-size: 50%;
    color: aliceblue;
    background: rgb(78, 78, 78);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Francois One', sans-serif;
    text-align: center;
    border: 2px solid white;
}

.skip a{
    text-decoration: none;
    font-family: 'Francois One', sans-serif;
    color: aliceblue;
}

.top-banner {
    width: 100%;
    height: 55px;
    background: rgb(68, 185, 185, 0);
    border-bottom: 5px solid rgb(255, 255, 255);
    margin-top: 0px;
    margin-bottom: 20px;
}

.title-container {
    width: 200px;
    font-family: "Aguafina Script", cursive;
    font-weight: 400;
    font-style: normal;
    color: rgb(255, 255, 255);
    font-size: 30px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2px;
    text-decoration: none;
}

.top-banner a {
    text-decoration: none;
}

.menu-icon {
    max-width: 100%;
    max-height: 100%;
    margin-left: 15px;
    font-family: 'Francois One', sans-serif;
    color: rgb(255, 255, 255);
    font-size: 50px;
    height: 65%;
    float: left;
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.menu-icon a{
    width: 100%;
}

.menu-icon a img {
    width: 80%;
    height: 80%;
}

.menu-icon:hover {
    filter: grayscale(0%) brightness(200%) saturate(100%) hue-rotate(180deg); 
}

.menu {
    width: 100%;
    height: 100%;
    display: none;
    position: absolute;
    left: 0;
    z-index: 1;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    display: none;
    margin-top: 50px;
}

.menu-content {
    width: 50%;
    max-width: 600px;
    background-color: rgba(78, 78, 78, 0.805);
    border-style: none solid none none;
    border-color: rgba(240, 248, 255, 0.63);
    border-right-width: 5px;
    color: aliceblue;
    text-align: left;
    font-size: 20px;
    margin-left: 0%;
    height: 80%;
    font-family: "Outfit", serif;
}

.menu-content-button {
    width: 97%;
    height: 30px;
    padding-left: 8px;
    margin-bottom: 10px;
}

.menu-content-button a {
    text-decoration: none;
    color: aliceblue;
}

.menu-content-button a:visited {
    text-decoration: none;
}

.menu-content-button:hover {
    background-color: #333;
}

.help-icon {
    font-family: 'Francois One', sans-serif;
    border-radius: 5px;
    color: rgb(255, 255, 255);
    font-size: 170%;
    position: absolute;
    right: 3%;
    top: 0;
    align-items: center;
    justify-content: center;
}

.help-icon:hover {
    cursor: pointer;
    color: yellowgreen;
}

.help-icon a{
    font-family: 'Francois One', sans-serif;
    color: rgb(0, 47, 95);
    font-size: 50px;
    text-decoration: none;
    float: left;
}

.help-icon a:hover{
    filter: grayscale(80%);
    filter: gray;
    cursor: pointer;
    transition:
     0.3s ease;
}


.help-popup {
    display: none;
    position: absolute;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
    vertical-align: middle;
  }
  
  .help-popup-content {
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: rgb(95, 120, 120);
    border: 3px solid rgb(255, 255, 255);
    width: 70%;
    max-width: 470px;
    margin: 20% auto;
    padding: 3%;
    border-radius: 15px;
    position: relative;
    font-family: 'Francois One', sans-serif;
    font-size: 0.7em;
    z-index: 100;
    color: aliceblue;
  }


.score-change {
    width: 20%;
    height: 40px;
    font-size: 170%;
    font-family: 'Francois One', sans-serif;
    color: aliceblue;
    text-align: center;
    float: left;
    display: block;
}

.hint-button {
    width: 64%;
    border: 2px solid white;
    font-size: 150%;
    font-family: 'Francois One', sans-serif;
    color: aliceblue;
    text-align: center;
    display: inline-block;
    margin-left: 8%;
}

.hint-button a{
    text-decoration: none;
    font-family: 'Francois One', sans-serif;
    color: aliceblue;
}


.hint-text {
    width: 100%;
    max-width: 600px;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 5px;
    font-size: 80%;
    font-family: 'Francois One', sans-serif;
    color: aliceblue;
}


.modal {
    width: 100%;
    max-width: 100%;
    height: 100%;
    padding-top: 10%;
    position: absolute;
    z-index: 1;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    margin-left: auto;
    margin-right: auto;
}

.modal-content {
    width: 85%;
    max-width: 550px;
    background-color: #555555;
    margin: auto auto;
    border: 5px solid #ffffff;
    color: aliceblue;
    text-align: center;
    font-size: 200%;
    padding: 1%;
}

.game-button-container {
    width: 100%; 
    margin: 0 auto; 
}

table {
    width: 100%; 
}

td {
    text-align: center; 
    vertical-align: top; 
    width: 30%;
}

button {
    width: 80%; 
    height: 55px;
    vertical-align: top;
    font-size: 50%;
    font-family: 'Francois One', sans-serif;
    border: 3px solid gray;
    border-radius: 15px;
    background-color:  grey;
    color: aliceblue;
    cursor: pointer;
    pointer-events: none;
}

.description {
    font-size: 40%;
    color: aliceblue;
    margin-top: 5px;
    word-wrap: normal;
    margin-bottom: 15px;
}


.results {
    width: 100%;
    height: 100%;
    display: none;
    position: absolute;
    z-index: 11;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    margin-top: 0%;
    margin-left: auto;
    margin-right: auto;
}

.results-content {
    width: 80%;
    max-width: 500px;
    background-color: rgb(66, 81, 82);
    margin: 2% auto;
    padding: 2%;
    border: 5px solid #ffffff;
    color: aliceblue;
    text-align: center;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center; 
    flex-direction: column; 
}

.results-table-container {
    margin-top: 5%; 
}


.results-table {
    width: 80%;
    display: block; 
    margin-left: auto;
    margin-right: auto;
}

.results-table td {
    text-align: center; 
    vertical-align: middle;
    width: 70px;
    height: 50px;
    overflow: hidden;
    white-space: nowrap; 
    background-color: red;
    border-radius: 20%;
}

results-button {
    vertical-align: middle;
    text-align: center;
    width: 140px;
    height: 30px;
    font-size: 18px;
    font-family: 'Francois One', sans-serif;
    border: 3px solid greenyellow;
    border-radius: 10px;
    background-color: grey;
    color: aliceblue;
    cursor: pointer;
    margin-top: 2%;
}

results-button a {
    color: white;
    text-decoration: none;
    padding: 1%;
}


.footer {
    background-color: #606060;
    color: #fff;
    text-align: center;
    margin-top: auto; 
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.social-icons {
    margin-top: 10px;
    margin-bottom: 5px;
}

.social-icon {
    color: #fff;
    margin: 0 5px;
    text-decoration: none;
    font-size: 24px;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #1da1f2; 
}

.aboutus-container {
    padding: 5%;
    color: white;
}

.aboutus-container p a{
    text-decoration: underline;
    color: white;
}

.site-info {
    color: aliceblue;
    padding-left: 5%;
    padding-right: 5%;
    font-size: 10px;
    text-align: center;
}

.site-info a{
    padding-left: 5px;
    padding-right: 5px;
    text-decoration: underline;
    color: aliceblue;
}

.site-info p {
    font-size: 100%;
}


.connection-container {
    display: grid;
    grid-template-columns: repeat(4, 154px);
    grid-template-rows: repeat(4, 154px);
    gap: 1px;
    margin: 20px auto;
    width: max-content;
    position: relative; 
}

.connection-box {
    width: 145px;
    height: 145px;
    background-color: rgb(87, 86, 86);
    border-radius: 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #dbdbdb;
    transition: transform 0.5s ease-in-out;
    cursor: pointer;
    color: aliceblue;
    text-align: center;
}

.connection-box.selected {
    background-color: rgb(207, 169, 0);
    border: 3px solid #edea92;
}

.swap-button {
    padding: 10px 20px;
    background-color: #555555;
    color: white;
    border: 3px solid white;
    border-radius: 30px;
    text-align: center;
    width: 100px;
    align-items: center;
    margin: auto;
    cursor: pointer;
    font-size: 30px;
    transition: background-color 0.3s ease;
    cursor: pointer; 
    text-align: center;
}

.swap-button:hover {
    background-color: #45a049; /* Darker green */
}

.belowgame-container {
    width: 580px;
    margin: 10px auto 10px auto;
    background-color: #555555;
    font-size: 300%;
    font-family: 'Francois One', sans-serif;
    color: aliceblue;
    height: 40px;
    border-radius: 30px;
    display: flex;
    align-items: center; 
    justify-content: space-between;
    padding: 0 10px;
}

.prevDayButton {
    background-color: #555555;
    color: white;
    border: 2px solid white;
    border-radius: 30px;
    text-align: center;
    width: 25%;
    align-items: center;
    margin: auto;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
    cursor: pointer; 
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gameNum {
    width: 75%;
    margin-right: 25%;
    font-size: 50%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px 40px;
    border-radius: 8px;
    font-size: 1.5rem;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
}

.conXGuessCount {
    font-size: 200%;
    font-family: 'Francois One', sans-serif;
    color: #555555;
    width: 600px;
    margin: auto;
    text-align: left;
    transition: transform 0.3s ease;
}

.expand {
    transform: scale(1.2); /* Scale up to 1.5 times the original size */
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

.shake {
    animation: shake 0.5s ease;
}


.overlayResult1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 96%;
    height: 21%; /* Match the height of the top row */
    background-color: rgb(58, 58, 58); /* Semi-transparent black */
    border: 11px solid white;
    border-radius: 8px;
    display: none; 
    z-index: 10;
    font-size: 300%;
    text-align: center;
    color: white;
}

.overlayResult2 {
    position: absolute;
    top: 25%;
    left: 0;
    width: 97%;
    height: 21%; /* Match the height of the top row */
    background-color: rgb(58, 58, 58); /* Semi-transparent black */
    border: 11px solid white;
    border-radius: 8px;
    display: none; 
    z-index: 10;
    font-size: 300%;
    text-align: center;
    color: white;
}

.overlayResult3 {
    position: absolute;
    top: 50%;
    left: 0;
    width: 97%;
    height: 21%; /* Match the height of the top row */
    background-color: rgb(58, 58, 58); /* Semi-transparent black */
    border: 11px solid white;
    border-radius: 8px;
    display: none; 
    z-index: 10;
    font-size: 300%;
    text-align: center;
    color: white;
}

.overlayResult4 {
    position: absolute;
    top: 75%;
    left: 0;
    width: 97%;
    height: 21%; /* Match the height of the top row */
    background-color: rgb(58, 58, 58); /* Semi-transparent black */
    border: 11px solid white;
    border-radius: 8px;
    display: none; 
    z-index: 10;
    font-size: 300%;
    text-align: center;
    color: white;
}

.overlayResultTeam {
    font-size: 100%;
    margin-top: 0;
    margin-bottom: 0;
}
.overlayResultPlayers {
    font-size: 35%;
    margin-top: 0;
    margin-bottom: 0;
}

@media (max-width: 609px) {
    body {
        width: 100%;
        margin-left: 0px;
        margin-right: 0px;
    }

    .game-selection-container {
        width: 100%;
        padding: 0; 
        margin-bottom: 10px;
        margin-left: 0%;
        margin-right: 0%;
        border-style: solid none solid none;
        background-color: #015e9033;
        border-color: #606060;
    }

    .game-selection-container img {
        height: 80%;
        max-width: 150px; 
        margin-left: 20px;
        margin-right: 20px;
        border: none;
        border-radius: 10px;
    }

    .game-selection-title {
        font-size: 200%;
    }

    .game-selection-description {
        font-size: 50%;
    }

    .button-container {
      width: 92%;
      margin-left: auto;
      margin-right: auto;
      aspect-ratio: auto 1/1;
      height: auto;
    }

    .button-container-hoops {
        width: 92%;
        margin-left: auto;
        margin-right: auto;
        aspect-ratio: 1 / 1;
      }

    .player-container {
        width: 88%;
    }

    .belowgame-container {
        width: 88%;
    }

    .button-bar {
        width: 92%;
        height: auto;
    }

    .hint-text {
        padding-left: 5%;
    }

    .site-info p {
        font-size: 60%;
    }

    .connection-container {
        grid-template-columns: repeat(4, 25%);
        width: 98%;
        grid-template-rows: repeat(4, auto);
        padding-left: 1%;
        padding-right: 1%;
    }
    
    .connection-box {
        width: 90%;
        height: 94%;
        aspect-ratio: auto 1/1;
        font-size: 80%;
        padding-left: 2%;
        padding-right: 2%;
    }

    .conXGuessCount {
        font-size: 170%;
        width: 90%;
    }

    .swap-button {
        padding: 5px 10px;
        width: 20%;
        align-items: center;
        font-size: 100%;
        text-align: center;
    }
    
    .overlayResult1 {
        width: 97.5%;
        height: 21.2%; /* Match the height of the top row */
        background-color: rgb(58, 58, 58); /* Semi-transparent black */
        border: 7px solid white;
        border-radius: 5px;
        font-size: 200%;
    }

    .overlayResult2 {
        width: 97.5%;
        height: 21.2%; /* Match the height of the top row */
        background-color: rgb(58, 58, 58); /* Semi-transparent black */
        border: 7px solid white;
        border-radius: 5px;
        font-size: 200%;
    }

    .overlayResult3 {
        width: 97.5%;
        height: 21.2%; /* Match the height of the top row */
        background-color: rgb(58, 58, 58); /* Semi-transparent black */
        border: 7px solid white;
        border-radius: 5px;
        font-size: 200%;
    }

    .overlayResult4 {
        width: 97.5%;
        height: 21.2%; /* Match the height of the top row */
        background-color: rgb(58, 58, 58); /* Semi-transparent black */
        border: 7px solid white;
        border-radius: 5px;
        font-size: 200%;
    }

    .overlayResultTeam {
        font-size: 100%;
        margin-top: 0;
        margin-bottom: 0;
    }
    .overlayResultPlayers {
        font-size: 35%;
        margin-top: 0;
        margin-bottom: 0;
    }

    .results-content {
        margin: 2% auto;
    }

  }
