/*=======================
    Multi-Section Use
=======================*/
.button {
    color: white;
    background: grey;
    border: 1px solid black;
    cursor: pointer;
    height: 30px;
    width: 50px;
}

/***************
    Homepage
***************/

/*===================
    Title Section
===================*/
#homepage {
    padding-top:1%;
    height: 100%;
    width: 100%;
}

#homepage-masthead {
    display: flex;
    align-items: flex-end;
    position: relative;
    padding: 10px;
    justify-content: space-around;
    height: 20%;
}

#homepage-title-container {
    height: 100%;
    margin: auto;
}

/*Not used*/
#homepage-title {
    font-weight: bolder;
    height: 100%;
}

#homepage-title img {
    max-height: 85%;
}

/**===================
    Language Options
===================**/

/*Language button*/
.language-button {

    /*Use same style as hamburger button*/
    background: grey;
    border: 1px solid black;
    cursor: pointer;
    font-size: 30px;
       
    height: 50px;
    width: 50px;
    z-index: 1;
   
    /*Align inner content centered*/
    display: flex;
    justify-content: center;
    align-items: center;

}
/*On hover make it white*/
.language-button:hover {
    background: white;
}

/*The dropdown div class*/
.language-options-dropdown {
    display: none; /*Hidden by default*/

    position: absolute;
    width: 150px;
    z-index: 2; /*Above other content*/
}

/*Style for the flags next to the language options*/
.flag-icon {
    width: 24px;
    height: 24px;

    margin-right: 10px; /*Space between flag and text*/
    vertical-align: middle; /*Align with text*/
}

/*Margin left a bit for screen width shrink when logo image shrinks*/
#language-options-login {
    position: relative; 
    margin: 0% 5%;

    visibility: hidden; /*hide on login screen. Show on description of games*/
}

#language-options-dropdown-login {
    top: 100%; /*Position the dropdown below the button*/
    right: 0; /*Align with the left side of the button*/
}

/* ======
    Language button for player homepage
====== */
#language-options-dropdown-index {
    position: absolute;
    top: 50px;
    right: 149px;
}

/*===================
    Login/Sign Up Button
===================*/

.go-play-now-container {
    /*margin-right: 14%; /* Adjust the right margin to move the title more to the right */
}

#go-play-now-button /*, #go-play-now-button2 */ {

    height: 8vh; /* 8% of the viewport height */
    width: 15vw; /* 15% of the viewport width */
    min-height: 50px;
    min-width: 100px;
    border-radius: 10px;
    font-weight: bold;
    font-size: clamp(1.0rem, 1vw, 2rem);
    border: 2px solid black;
    background: rgb(255, 241, 48);

    /*Animation Additions*/
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 1);
	transform: scale(1);
	animation: pulse 3s infinite;

}

#go-play-now-button:hover /*, #go-play-now-button2:hover */ {
    background: rgb(244, 212, 84);
    cursor: pointer;
}

/* Login / Sign Up button animation */
@keyframes pulse {
	0% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
	}

	70% {
		transform: scale(1);
		box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
	}

	100% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
	}
}


/*--Media tags for the welcome tab font-- */

@media screen and (max-width: 1200px) {
	
    #homepage-masthead {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        justify-content:flex-end;
        align-content:flex-start;
        align-items: normal;
    }

    #homepage-title img {
        margin-left: 5%;
    }

    #go-play-now-button /*, #go-play-now-button2 */ {
        
    }

}

/*--Media tags for the welcome tab font End-- */

/*===================
    Left Side Bar
===================*/

#homepage-body-content-container {
    width: 100%;
    height: 70%;
    padding: 10px 0;
}

#sidebar-container {
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
    height: calc(110% - 10px);
    width: calc(15% - 50px);
    margin-left: 25px;
    margin-right: 5vw;
    margin-bottom: 10px;
    border: 2px solid black;
    border-radius: 50px;
}

#sidebar-list {
    height: 100%;
    width: 100%;
}

.sidebar-content-container {
    position: relative;
    height: 16.666%; /* Adjusted height to fit new side tab */
    width: 100%;
    border: 1px solid black;

    display: flex; /* Flexbox to control text alignment and size */

    align-items: center; /* Center text vertically */
    justify-content: center; /* Center text horizontally */
}

.sidebar-content-container:hover {
    background: lightgrey;
    cursor: pointer;
}

.tab {
    background-color: white;
    color: black;
}

    .tab:hover {
        background: lightgrey;
        color: black;
    }

.tab-selected, .tab-selected:hover {
    background: #6391DE;
    color: white;
}

.sidebar-content-container-top {
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
}

.sidebar-content-container-bottom {
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
}

.sidebar-content {
    max-width: 100%; /* Make sure text does not exceed container's width */
    max-height: 100%; /* Make sure text does not exceed container's height */
    text-align: center;
    font-size: clamp(0.6rem, 1vw, 2rem); /* Adjusted font size range */
    overflow: hidden; /* Keep text within the div */
}

/*
.sidebar-content {
    position: relative;
    display: inline-block;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: clamp(1.1rem, 1vw, 2rem); 
}
*/

/*===================
    Welcome tab content
===================*/

#sidebar-content-container-0-content { /* New Welcome Tab container */
    display: inline-block;
    position: relative;
    vertical-align: top;
    width: 80%;
    height: 100%;

    /* Inherit the 'Omega+' font style */
    font-size: clamp(1.0rem, 1vw, 2rem);
}

#welcome-text-container {
    flex-direction: column; /* Stack child elements vertically */
    display: inline-block;
    width: 70%; /*Text container width */
    vertical-align: top;
    padding-bottom: 20px; /* Add padding at the bottom of the video div */
}

#survey-draw-instructions {
    
}

#survey-draw-title {
    text-align: center;
    font-size: clamp(1.0rem, 1.2vw, 2rem); 
    white-space: normal; /* Allow words to break into new lines */
}

/* Animation for the survey text glow */

.text-glow {
    font-size: clamp(1.1rem, 1.3vw, 2rem); 
	transition: all 0.5s ease-in-out;
	animation: flicker 0.5s ease-in-out infinite alternate;
}
  
  @keyframes flicker {
	0% {
		text-shadow: 2px 2px 10px rgb(243, 231, 126);
	}
	100% {
		text-shadow: 2px 2px 20px rgb(226, 60, 82);
	}
}

#video-container {
    max-width: 90%; /* Set a maximum width */
    margin: 0 auto; /* Center the video container */
    border-radius: 8px; /* Added rounded corners */
    overflow: hidden; /* Hide overflow content */
    border: 2px solid black; /*Add a border around the video */
}

#subgameplay-video {
    width: 100%; /* Make the video fill the container */
    display: block; /* Remove any default spacing or margins */
}

/*------Right-side welcome content------*/

#welcome-right-container {
    flex-direction: column; /* Stack child elements vertically */
    display: inline-block;
}

/* Shared styles between the two Divs's title */
.right-container-title {
    width: 22vw;
    background-color:#6391DE;

    /*margin: top right bottom left;*/
    margin: -20px  0% 0% -20px; /* Adjust the margins for the background color*/
    
    border-bottom: 2px solid black;

}

/*Styling for the header and paragraphs within right-container */
.right-container-title h3, .right-container-title p {
    width: 20vw;
    padding: 10px; /* Add padding to the text inside of the titles */
    
    font-size: clamp(1.0rem, 1vw, 2rem);
    white-space: normal; /* Allow words to break into new lines */
}

/* Shared styles between the two Divs */
#upcoming-sessions,
#weekly-leaderboards {

    text-align: center;
    border: 2px solid black;
    
    padding: 10px;

    /*height: 350px; /*Remove height of the 2 divs so they expand to fit their content*/
    /*max-height: 350px; /* Maximum height of the divs */
    width: 20vw;

    margin-left: 15%; /*Move the 2 divs to the right */
    margin-bottom: 60px;

    box-sizing: border-box;
    border-radius: 50px;
    overflow: hidden; /*Hide the background color overflow of #upcoming-sessions-title */
}

/* Seperate styling */
#upcoming-sessions {
    top: 10%;
}

/* Upcoming sessions header */
#upcoming-sessions h3 {
    line-height: 1.7;
}

/* Upcoming sessions italic */
#upcoming-sessions i {
    font-size: clamp(0.9rem, 0.9vw, 2rem); 
}

/*-List contents style- */
#upcoming-sessions ul {
    line-height: 2.0;
}


/* Weekly leaderboard paragraph style */
#weekly-leaderboards p {
    margin-left: 10%;
    display: inline;
    line-height: 2.0;
    text-align: center;
}

/*Custom text for when there is no info on the sessions div */
.custom-session-text {
    display: inline-block; 
    text-align: center;
}

.custom-session-text-2 {
    font-weight: bold;
}


#weekly-leaderboards ul {
    text-align:left;
}

/*Shared list styling*/
#upcoming-sessions li,
#weekly-leaderboards li {
    
    background-color: #ffffff;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 2px solid black;

}

/**-----Welcome tab content end-----**/

#sidebar-content-container-1-content {
    display: none;
    /* display: inline-block; Now hidden on default */
    position: absolute;
    vertical-align: top;
    height: 75%;
}

#about-left-container {
    display: inline-block;
    position: relative;
    vertical-align: top;
    height: 100%;
    width: 65%;
}

#about-text-container {
    display: inline-block;
}

#about-text {
    font-size: clamp(1.0rem, 1vw, 2rem);
    text-align: justify;
}

#about-scrollable-images-container-parent {
    display: inline-block;
    position: absolute;
    vertical-align: top;
    height: 100%;
    width: calc(30% - 50px);
    margin-left: 70px;
    margin-right: 25px;
    margin-bottom: 10px;
    overflow: hidden;
}

    #about-scrollable-images-container-parent:hover .about-scrollable-images-buttons {
        display: block;
    }

.about-scrollable-images-buttons {
    z-index: 100;
    height: 10%;
    width: 100%;
    background-color: grey;
    position: absolute;
    opacity: 0.6;
    display: none;
}

#about-scrollable-images-up {
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
}

#about-scrollable-images-down {
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
}

.about-scrollable-images-arrow-up-container {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.about-scrollable-images-arrow-down-container {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.about-scrollable-images-arrow {
    z-index: 101;
    display: inline-block;
    border: solid white;
    border-width: 0 10px 10px 0;
    padding: 10px;
}

.arrow-up {
    transform: rotate(-135deg);
}

.arrow-down {
    transform: rotate(45deg);
}

.arrow-left {
    transform: rotate(135deg);
}

.arrow-right {
    transform: rotate(-45deg);
}

#about-scrollable-images-down {
    bottom: 0;
}

#about-scrollable-images-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    box-sizing: border-box;
    border: 3px solid black;
    border-radius: 50px;
    background-color: black;
}

.about-scrollable-image-container {
    height: calc(20vw * 0.75);
    min-height: 100px;
    width: 100%;
    margin-bottom: 5px;
}

.about-scrollable-image {
    height: 100%;
    width: 100%;
    cursor: pointer;
}

.greyout {
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
    opacity: 0.8;
}

.active {
}

.activeGame {
}

/*===================
    Description of Games
===================*/
#sidebar-content-container-2-content {
    display: none;
    height: 100%;
    width: 74%;
    font-size: clamp(1.0rem, 1vw, 2rem);
}

/* Sub game title when image clicked */
#sidebar-content-container-2-content h2 {
    font-size: clamp(1.5rem, 2vw, 2rem);
}

/* Sub game description text */
#game-information-box {
    width: 98%;
    border: 3px solid black;
    padding: 2%;
    font-size: clamp(1.0rem, 1vw, 2rem);
}

/*Description of Games Header tabs (Description + How to Play) */
#game-information-tabs h3 {
    font-size: clamp(1.0rem, 1vw, 2rem);
}


/* How to Play + Scoring text headers */
.game-description-title {
	font-size: clamp(1.3rem, 1.4vw, 2rem);
}

/*===================
    Team
===================*/
#sidebar-content-container-3-content {
    font-size: clamp(1.0rem, 1vw, 2rem);
}

/* Margin for title and team members (Our Team: + Former Team Members:)*/
.team-text-container {
    margin: 2% 0;
}


/* h2 tags (Our Team: + Former Team Members:) */
#sidebar-content-container-3-content h2{
    font-size: clamp(1.5rem, 1.5vw, 2rem);
}

/*===================
    Publications
===================*/
#sidebar-content-container-4-content {
    display: none;
    margin-left: 20px;
    margin-top: 20px;
    width: 700px;
    font-size: clamp(1.0rem, 1vw, 2rem);
}

/* h2 tags (Publications:) */
#sidebar-content-container-4-content h2{
    font-size: clamp(1.4rem, 1.5vw, 2rem);
}

/*===================
    Acknowledgements
===================*/
#sidebar-content-container-5-content {
    display: none;
    margin-left: 20px;
    margin-top: 20px;
    width: 70%;
    font-size: clamp(1.0rem, 1vw, 2rem);
}

#games-scrollable-images-container-parent {
    position: relative;
    height: 35%;
    width: 98%;
    overflow: hidden;
    border: 3px solid black;
    border-radius: 50px;
}

#games-scrollable-images-container {
    position: relative;
    height: 100%;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    background-color: black;
}

.games-scrollable-images-buttons {
    z-index: 100;
    height: 100%;
    width: 6%;
    background-color: grey;
    position: absolute;
    opacity: 0.6;
    display: none;
}

#games-scrollable-images-right {
    right: 0;
}

.games-scrollable-images-arrow {
    z-index: 101;
    display: inline-block;
    border: solid white;
    border-width: 0 10px 10px 0;
    padding: 10px;
}

.games-scrollable-images-arrow-left-container {
    position: absolute;
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%);
}

.games-scrollable-images-arrow-right-container {
    position: absolute;
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%);
}

.games-scrollable-image-container {
    display: inline-block;
    height: 100%;
    width: 20vw;
    min-width: 200px;
    margin-right: 5px;
}

.games-scrollable-image {
    height: 100%;
    width: 100%;
    cursor: pointer;
}

.publication-list-content-container {
    margin-bottom: 50px;
}

#sidebar-content-2 {
    white-space: normal;
}

/**********************
    Player Homepage
**********************/

/*===================
	Title Section	
===================*/

/**===================
    Hamburger Menu
===================**/
.hamburger-menu {
    position: absolute;
    height: 50px;
    width: 50px;
    top: 50%;
    right: 2%;
    transform: translate(-2%, -50%);
    z-index: 1; /* When open, display on top */
}

.hamburger {
    height: 100%;
    width: 100%;
    border: 1px solid black;
    font-size: 30px;
}

.hamburger-tooltip {
    position: absolute;
    visibility: hidden;
    padding: 10px;
    background-color: white;
    color: black;
    text-align: center;
    right: 105%;
    top: 50%;
    border: 1px solid black;
    white-space: nowrap;
    border-radius: 5px;
    transform: translateY(-50%);
    z-index: 999;
    transition: opacity 2s;
}

    .hamburger-tooltip::after {
        content: " ";
        position: absolute;
        top: 50%;
        left: 100%;
        margin-top: -5px;
        border-width: 5px;
        border-style: solid;
        border-color: transparent transparent transparent black;
    }

    .hamburger-tooltip label {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 5px;
    }

.dropdown-menu {
    display: none;
    position: absolute;
    width: 150px;
    right: 0;
    text-align: center;
}

/*====================
	Player Section	
====================*/
.player-container {
    position: relative;
    display: inline-block;
    width: 33%;
    height: 100%;
    vertical-align: middle;
}

.buttons-container {
    height: 15%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

    .buttons-container button {
        height: 100%;
        width: 200px;
        margin-left: 10%;
        font-size: calc(16px + .2vh);
    }

.player-button {
    position: absolute;
    max-width: 200px;
    width: 45%;
    height: 15%;
    bottom: 0%;
    left: 50%;
    transform: translate(-50%, -0%);
    font-size: calc(16px + .2vh);
}

/**========================
    Progress Subsection
========================**/
.robot-name {
    position: relative;
    width: 50%;
    margin: auto;
    height: 10%;
    text-align: center;
}

.progress-bars {
    width: 100%;
    height: 75%;
    position: relative;
}

#r-progress-bars {
    width: 60%;
    margin: 0 auto;
    display: inline-block;
    vertical-align: middle;
}

.progress-bar-container {
    height: 16%;
}

.bar-label-container {
    display: inline-block;
    width: 50%;
    height: 100%;
    position: relative;
    vertical-align: top;
    padding-right: 1%;
}

.bar-label {
    position: absolute;
    display: inline-block;
    top: 50%;
    right: 2%;
    transform: translateY(-50%);
}

.bar-container {
    position: relative;
    display: inline-block;
    width: 50%;
    height: 70%;
    border: 1px solid black;
    vertical-align: top;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 25px;
    overflow: hidden;
    background: #acaaaa;
}

.bar {
    position: relative;
    width: 0;
    height: 100%;
    border-radius: 5px;
    transition: width 2s linear;
}

.bar-container span, .stat-bar-container span {
    visibility: hidden;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    z-index: 999;
    text-shadow: 1px 0px 0px #000, -1px 0px 0px #000,0px 1px 0px #000, 0px -1px 0px #000;
}

.bar-container:hover span {
    visibility: visible;
}

/**=====================
    Robot Subsection
======================**/
#robot {
    width: 34%;
}

.robot-image {
    position: relative;
    height: 80%;
    width: 100%;
    margin: auto;
}

/**===========================
    User Info Subsection
===========================**/
#user-info {
    height: 27vh;
    vertical-align: top;
}

.info-box {
    width: 100%;
    height: 100%;
    border: 2px solid black;
    border-right: 0;
}

.status-box {
    height: 68%;
}

.info-container {
    display: inline-block;
    height: 100%;
}

.label-info, .content-info {
    line-height: 1.7em;
    text-align: left;
    font-weight: 900;
    font-size: calc(11px + .5vw + .2vh);
}

/* Label side */
.label {
    position: relative;
    width: 33%;
}

.label-inner {
    position: absolute;
    right: 0%;
    top: 50%;
    transform: translate(-0%, -50%);
    padding: 5%;
}

/*-- Hover labels for more information --*/
#currency-info {
    visibility: hidden;
}

#label-currency:hover #currency-info {
    visibility: visible;
}

/* Added hover options for Level and Points -Erika*/
#points-info {
    visibility: hidden;
}

#label-points:hover #points-info {
    visibility: visible;
}

#points-info {
    visibility: hidden;
}

#label-level:hover #level-info {
    visibility: visible;
}

#bonus-info {
    visibility: hidden;
}

#label-bonus:hover #bonus-info {
    visibility: visible;
}


/* Player info side */
.player-info {
    position: relative;
    width: 67%;
}

/* Badges */
.badges {
    position: relative;
    height: 20%;
    width: 100%;
    cursor: pointer;
}

.badges-inner {
    position: relative;
    height: 100%;
    width: 97%;
    margin: auto;
    border: 1px solid black;
}

/*==================
	Meta Section	
==================*/
.meta-container {
    display: inline-block;
    position: relative;
    height: calc(100% - 2px);
    border-top: 2px solid black;
    vertical-align: top;
}

/*===========
	Modal
===========*/
.modal-content-inner {
    margin: 20px 50px;
    text-align: center;
}

    .modal-content-inner header {
        background-color: white;
        border: 1px solid black;
        padding: 10px 50px;
        margin: 0 auto;
    }

.close-modal {
    position: absolute;
    top: 5px;
    left: 5px;
}

.close-modal-button {
    display: inline-block;
    margin-top: 3px;
    height: 35px;
    line-height: 35px;
    width: 35px;
    padding: 0;
    background: #f7f7f7;
    border: 1px solid #f7f7f7;
    border-radius: 17px;
    font-weight: bolder;
    transition: all 0.5s linear;
    font-size: 22px;
}

    .close-modal-button:hover {
        background: white;
        border: 1px solid black;
    }

/*
@media screen and (max-width: 900px) {
    .modal-content-inner {
        margin-top: 10%;
        margin-bottom: 10%;
    }
    .close-modal {
        position: fixed;
        top: 9%;
    }
    .login-modal-button {
        margin-top: 2%;
        margin-bottom: 2%;
    }
}

@media screen and (max-width: 930px) {

    #show-more-link a {
        font-size: 20px;
    }
}
*/

.modal-container {
    width: 80%;
    margin: 10px auto;
}

.fancybox-close-small:hover:after {
    border-radius: 15px;
    border: 1px solid black;
}

.modal-label {
    font-weight: bold;
    margin: 3% auto;
    text-align: left;
}

.modal-input {
    width: 100%;
    height: 22px;
    border: 1px solid black;
    box-sizing: border-box;
    padding-left: 3px;
}

.login-modal-button {
    width: 100%;
    height: 50px;
}

.modal-button-small {
    width: 50px;
    margin: 0 auto;
}

/**===================
    Register Modal
===================**/
.error-text {
    position: relative;
    visibility: hidden;
    background-color: white;
    color: black;
    text-align: center;
    border-radius: 6px;
    border: 1px solid black;
    padding: 5px;
    position: absolute;
    width: 175px;
    z-index: 1;
    left: 102%;
    top: 50%;
    transform: translateY(-50%);
    white-space: normal;
}

    .error-text::after {
        content: "";
        position: absolute;
        top: 50%;
        left: -10px;
        transform: translateY(-50%);
        border-width: 5px;
        border-style: solid;
        border-color: transparent black transparent transparent;
    }

.success-box {
    position: absolute;
    display: none;
    top: 50%;
    right: 1%;
    transform: translate(-1%, -50%);
    background-color: green;
    color: white;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    white-space: nowrap;
}

/**================
    Login Modal
================**/
#login-modal {
    display: inline-block;
    /*position: absolute;*/
}

/*
@media screen and (max-width: 930px) {
    #login-modal {
        position: fixed;
    }
}
*/

#recover-password {
    color: blue;
    text-decoration: underline;
    cursor: pointer;
}

#recovery-info {
    width: 100%;
}

    #recovery-info p {
        font-size: 14px;
    }

.register-label {
    /*display: inline-block;*/ /*commented out by Ryan L 2024/05 */
    margin: 4px 0px 4px 0px; /*added by Ryan L 2024/05 */
    
}

.register-wrapper {
    position: relative;
    margin-bottom: 10px; /*added by Ryan L 2024/05 */
}

/**===============
    Edit Modal
===============**/
.gender-radio {
    display: inline-block;
    width: 20%;
    margin-top: 1%;
}

.gender-label {
    display: inline-block;
    font-size: 100%;
}

.gender-container {
    display: inline-block;
    width: 32%;
}

.account-container {
    position: relative;
    margin: auto;
    text-align: left;
    font-size: 100%;
}

.account-field {
    margin: 3% auto;
    font-weight: bold;
}

.edit-account-label {
    display: inline-block;
    width: 33%;
    vertical-align: middle;
    font-weight: bold;
}

.edit-account-menu {
    display: inline-block;
    width: 66%;
    margin: 3% auto;
    height: 25px;
}

/**==================
    Privacy Modal
==================**/
.preference-container {
    display: inline-block;
    width: 50%;
}

.preference-radio {
    display: inline-block;
    width: 10%;
    margin-left: 15%;
}

#leaderboard {
    position: absolute;
    width: 33%;
    height: calc(43vh - 1px);
    min-height: 395px;
    border-top: 2px solid black;
    border-left: 2px solid black;
    vertical-align: bottom;
    bottom: 0;
}

/*
@media screen and (max-width: 900px) {
    #leaderboard {
        height: 100%;
    }
}
*/

.leaderboard-selection-box {
    display: none;
    height: 200px;
    width: 350px;
    margin: 10px auto;
    overflow: auto;
    background-color: white;
    border: 1px solid black;
}

.leaderboard-checkbox {
    display: block;
    margin: 5px 0;
}

#privacy-submit {
    margin-top: 10px;
}

/*
@media screen and (max-width: 930px) {
    #leaderboard-popup-table.close-modal-button {
        height: 20%;
    }
}
*/

/**================
    Bonus Modal
================**/
#bonus-modal-content-inner header {
    width: 70%;
}

#bonus-date-wrapper {
    margin: 20px auto;
    white-space: nowrap;
}

.bonus {
    cursor: pointer;
}

.bonus-date-container {
    display: inline-block;
    vertical-align: middle;
}

.bonus-date-box {
    position: relative;
    background-color: white;
    border: 1px solid black;
    height: 100px;
    width: 100px;
    margin-top: 10px;
}

.bonus-date-image {
    position: relative;
    top: 40%;
    transform: translateY(-50%);
}

.bonus-date-amount {
    position: absolute;
    bottom: 7%;
    left: 50%;
    transform: translateX(-50%);
}

.bonus-date-redeemed {
    position: absolute;
    visibility: hidden;
    width: 70%;
    height: 70%;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0.75;
}

/**==================
    Consent Modal
==================**/
.consent-button-container {
    display: inline-block;
    margin: 20px;
}

.consent-button {
    padding: 10px;
    font-size: 18px;
    font-weight: bold;
}

/**================
    Badge Modal
================**/
.tabs {
    text-align: left;
    margin-top: 20px;
}

.open-tab {
    display: inline-block;
    text-align: center;
    background-color: white;
    border: 1px solid black;
    /*border-right: 0;*/
    padding: 7.5px;
    width: 65px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    font-size: 12px;
    height: 100%;
}

    .open-tab:hover {
        cursor: pointer;
        background-color: #ddd;
        color: black;
    }

.open-tab-active {
    background-color: #6391de;
    color: white;
}

    .open-tab-active:hover {
        background-color: #6391de;
        color: white;
    }

.open-tab:last-child {
    border-right: 1px solid black;
}

.badge-canvas {
    display: none;
    background-color: white;
    border: 1px solid black;
    white-space: nowrap;
}

.badge-container {
    display: inline-block;
    width: 200px;
    vertical-align: top;
    padding: 20px;
    padding-top: 0;
}

.badge-title {
    padding: 20px 0;
}

.highest-badge-earned img {
    height: 100px;
    width: 100px;
}

.other-badges {
    margin-top: 10px;
}

    .other-badges img {
        height: 50px;
        width: 50px;
        transition: all 1s ease;
    }

        .other-badges img:hover {
            z-index: 999;
            transform: scale(1.5);
        }

.subgame-screenshot-container {
    display: inline-block;
    height: 100%;
    width: 97px;
    border: 2px solid black;
    vertical-align: top;
}

.screenshots {
    height: 100%;
    width: 100%;
}

    .screenshots:hover {
        position: absolute;
        top: 15%;
        left: 0;
        height: 75%;
        width: 100%;
        z-index: 999;
    }

#badges-inner-label, #badges-inner-label-small {
    position: absolute;
    left: 2%;
    top: 50%;
    transform: translateY(-50%);
}

#badges-inner-label-small {
    display: none;
    text-align: center;
}

.badges-label-small {
    font-size: 12px;
}

#badges-wrapper {
    position: relative;
    display: inline-block;
    top: 50%;
    transform: translateY(-50%);
    padding: 4px 0;
    text-align: center;
    font-size: 0;
    width: 100%;
    height: 100%;
}

#no-badges-text {
    position: relative;
    font-size: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.badges-inner > div > h3 {
    font-size: 1.5vw;
}

.mini-badge {
    height: 100%;
    transition: all 0.5s ease;
}

    .mini-badge:hover {
        transform: scale(3);
    }

.badge-0 {
    position: relative;
    transform: translateX(50%);
    z-index: 3;
}

.badge-1 {
    visibility: hidden;
    position: relative;
    transform: translateX(0%);
    z-index: 2;
}

.badge-2 {
    visibility: hidden;
    position: relative;
    transform: translateX(-50%);
    z-index: 1;
}

.badges-more {
    position: relative;
    height: 12%;
}

.badges-more-link {
    position: relative;
    float: right;
    right: 2%;
    top: 50%;
    transform: translateY(-50%);
    display: none;
}

/*
@media screen and (max-width: 930px) {

    .badges-more-link {
        font-size: 20px;
    }

}
*/

/**===================
    Feedback Modal
====================*/
.feedback-body {
    margin: 10px 0;
}

#feedback-input {
    margin: 10px auto;
    margin-bottom: 0;
    width: 98%;
    resize: vertical;
    height: 200px;
}

#feedback-submit-button {
    width: auto;
}

/**==========================
    Player Selector Modal
==========================**/
#friends-online-description {
    padding: 20px 0;
    text-align: left;
}

#friends-online-selection-box, #friends-found-selection-box {
    background: white;
    height: 282px;
    min-width: 450px;
    border: 1px solid black;
    overflow: auto;
}

#friends-online-selection-box {
    width: 100%;
}

#friends-found-selection-box {
    width: 90%;
    margin: auto;
}

.ps-online-friend {
    position: relative;
    width: 95%;
    height: 80px;
    border: 1px solid black;
    margin: 10px auto;
}

.ps-online-friend-container {
    position: relative;
    display: inline-block;
    width: 25%;
    height: 100%;
    vertical-align: top;
}

.ps-online-friend-container-middle {
    position: relative;
    display: inline-block;
    width: 50%;
    height: 100%;
    vertical-align: top;
    text-align: left;
}

.ps-online-friend-img {
    width: 64px;
    height: 66px;
}

.ps-online-friend-info-container {
    position: relative;
    display: block;
    left: 15px;
}

.ps-online-friend-info-screen-name {
    top: 25%;
    transform: translateY(-25%);
}

.ps-online-friend-info-points {
    top: 45%;
    transform: translateY(-45%);
}

.ps-online-friend-invite {
    position: relative;
    top: 50%;
    padding: 10px;
    transform: translateY(-50%);
}
/**=========================
    Match Invite Modal
=========================**/
.invite-image {
    height: 200px;
    width: 170px;
}

/**==========================
    Match Preview Modal
==========================**/
#preview-modal-content-inner {
    margin: 20px 20px;
    min-width: 700px;
}

.match-preview-container {
    display: inline-block;
    font-size: 0;
    padding: 10px;
}

.match-preview-image-container {
    position: relative;
    background-color: white;
    margin: 10px auto;
    width: 120px;
    height: 120px;
    border: 1px solid black;
    border-radius: 50%;
}

.match-preview-image {
    width: 90px;
    height: 108px;
}

.match-preview-name-container {
    margin: 10px auto;
}

.stat-container {
    position: relative;
    vertical-align: top;
    text-align: right;
    margin: 2px 0px;
}

.stat-label {
    display: inline-block;
    margin-right: 5px;
    transform: translateY(-40%);
}

    .stat-label p {
        font-size: 14px;
    }

.stat-bar-container {
    position: relative;
    display: inline-block;
    width: 146px;
    height: 20px;
    border: 1px solid black;
    background-color: white;
    overflow: hidden;
    border-radius: 10px;
}

.stat-bar {
    width: 50%;
    height: 100%;
}

.stat-bar-green {
    background-image: -webkit-linear-gradient(#c8eecb, green);
}

.stat-bar-red {
    background-image: -webkit-linear-gradient(#f0c8ca, red);
}

.stat-bar-blue {
    background-image: -webkit-linear-gradient(#badae6, blue);
}

.stat-bar-purple {
    background-image: -webkit-linear-gradient(#ffd6de, purple);
}

.stat-bar-yellow {
    background-image: -webkit-linear-gradient(#ffffc8, yellow);
}

.stat-bar-teal {
    background-image: -webkit-linear-gradient(#d2fffe, teal);
}

#preview-countdown-bar {
    width: 33%;
    margin: 10px auto;
    border: 1px solid black;
    height: 20px;
    background-color: white;
    border-radius: 5px;
}

#preview-countdown-progress {
    height: calc(100% - 4px);
    margin: 2px;
    width: 99%;
    border-radius: 4px;
    background-image: repeating-linear-gradient(45deg, #424242, #424242 10px, #616161 10px, #616161 20px);
}

/*=========================
    Match Summary Modal
=========================*/
.match-summary-container {
    position: relative;
    width: 100%;
    height: 25%;
    background-color: white;
    border: 1px solid black;
}

.match-summary-player-container {
    display: inline-block;
    width: 45%;
    height: 100%;
    vertical-align: top;
    float: left;
}

.match-summary-player-win-container {
    position: relative;
    height: 80%;
}

#match-summary-badges-container {
    display: none;
}

.match-summary-player-win-image {
    position: absolute;
    width: 75%;
    height: 52%;
    top: 0;
    left: 50%;
    transform: translate(-50%, 75%);
}

#match-summary-player-one-overall-win {
    width: 100%;
    height: 70%;
    transform: translate(-50%, 40%);
}

#match-summary-player-two-overall-win {
    width: 100%;
    height: 70%;
    transform: translate(-50%, 40%);
}

#match-summary-overall-container {
    background-color: #7aa8f5;
    color: white;
}

.match-summary-player-performance-container {
    display: inline-block;
    text-align: center;
}

.match-summary-player-performance {
    display: inline-block;
    font-size: 13px;
}

.match-summary-subgame-title-container {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translate(-50%, -5%);
}

.match-summary-subgame-title {
    display: inline-block;
    white-space: nowrap;
    font-weight: bold;
}

.match-summary-badge-container {
    position: relative;
}

.match-summary-canvas {
    width: 75px;
    height: 90px;
}

/*=====================
    New Badge Modal
=====================*/
.newbadge-container {
    display: inline-block;
}

.newbadge-image-container {
    padding: 20px;
}

.newbadge-image {
    height: 130px;
    width: 130px;
}

.newbadge-text-container {
    background-color: white;
    border: 1px solid black;
    padding: 10px;
    text-align: left;
}

.newbadge-how-to-earn {
    margin-bottom: 10px;
    font-size: 20px;
}

.newbadge-earned-on, .newbadge-other-people {
    font-size: 15px;
}

/**======================
    Equip Robot Modal
=======================**/
#equip-robot-modal-content {
    max-height: 90%;
    overflow: auto;
    white-space: nowrap;
    width: 550px;
    min-height: 525px;
    height: 90%;
}

/*
@media (max-width: 930px) {

    #equip-robot-modal-content {
        max-height: 90vh;
        overflow-y: auto;
        overflow-x: hidden;
        white-space: nowrap;
        width: 70vw;
        min-height: 40vh;
        height: 80vh;
        border: 2px solid black; /* Added border with black color
    }

    .error-text {
        left: 50%;
        top: -120%;
    }

        .error-text::after {
            display: none;
        }
}

@media (max-width: 768px) {
    #equip-robot-modal-content {
        max-height: 100vh;
        overflow-y: auto;
        white-space: nowrap;
        width: 100vw;
        min-height: 40vh;
        height: 100vh;
    }

    .error-text {
        left: 70%;
        top: -120%;
    }

        .error-text::after {
            display: none;
        }
}
*/

#equip-modal-content-inner {
    width: 100%;
    min-width: 500px;
    padding: 25px 50px;
    margin: 0;
    height: 100%;
}

.hide-robot-info {
    display: none;
}

.robot-info-content {
    width: 100%;
    padding-right: 20px;
    position: relative;
}

.equip-robot-image {
    padding: 20px 0 0 0;
    display: inline-block;
    width: 40%;
    vertical-align: middle;
}

.robot-images-container {
    display: none;
}

.tooltip-text {
    visibility: hidden;
    background-color: grey;
    color: white;
    text-align: center;
    padding: 5px 5px;
    position: absolute;
    z-index: 1;
}

.tooltip-container {
    display: inline;
}

.equip-bars {
    min-height: 220px;
}

.bar-fill {
    background-color: magenta;
    height: 100%;
}

.items-list-content {
    width: 100%;
    height: 100%;
    margin-top: 20px;
    display: inline-block;
}

#inventory-list-content {
    margin-top: 0px;
}

.items-list-container {
    width: 100%;
    border: 1px solid black;
    overflow-y: auto;
    height: 80%;
    font-size: 16px;
}

.no-items-text {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.inventory-header {
    border: none;
    padding: 0 0 10px 0;
    margin: 0 auto;
}

.inventory-item-box {
    width: 95%;
    height: auto;
    margin: 10px;
    border: 1px solid black;
    cursor: pointer;
}

.item-image-container {
    float: left;
    width: 108px;
    height: 108px;
    padding: 10px;
}

    .item-image-container > img {
        border: 1px solid black;
        width: 86px;
        height: 86px;
    }

.item-description-container {
    margin-left: 120px;
    min-height: 108px;
}

.item-name {
    border: 0;
    background: inherit;
    padding: 0;
}

.part-stats {
    width: 100%;
}

    .part-stats td {
        padding: 10px 0 0 5px;
        border: 0;
        background: inherit;
        font-size: inherit;
    }

.modal-button {
    width: 50%;
    height: 50px;
    margin-top: 7px;
}

/*
@media screen and (max-width: 930px) {
    .modal-button {
        margin-top: 7%;
        margin-bottom: 7%;
    }
}
*/

.equip-button {
    width: 50%;
    height: 25px;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Responsive Changes
@media screen and (min-width: 1100px) {
    .robot-info-content {
        padding-right: 20px;
    }
}
*/

/**===========================
    Game Description Modal
===========================**/
#gamedescriptions-modal-content {
    min-width: 700px;
    min-height: 525px;
}

#gamedescription-modal-content-inner {
    margin: 20px 50px;
}

#game-description-text-container {
    font-size: 12px;
}

/**===============
    Store Modal
================**/
.no-buy {
    border-color: grey;
    color: grey;
    cursor: not-allowed;
}

    .no-buy .item-image-container > img {
        border-color: grey;
        -webkit-filter: grayscale(100%);
        filter: grayscale(100%);
    }

#store-list-content {
    height: 400px;
    width: 435px;
}

/* Adjust width based on Shreya's code 
@media (max-width: 767px) {
    #store-list-content {
        height: 100%;
        width: 435px;
    }
}
*/

#store-list-container {
    font-size: 16px;
}

.store-select {
    border-color: yellow;
    background-color: #ffff0011;
}

.part-stats {
    margin-bottom: 10px;
}

.item-owned {
    color: red;
}

.item-name {
    font-weight: bolder;
    font-size: 1.2em;
}

.currency-img {
    height: 1.2em;
    width: 1.3em;
    vertical-align: middle;
}

.item-price {
    font-weight: bolder;
    font-size: 1.1em;
}

.item-badge-required {
    min-height: 1em;
}

.item-price,
.item-badge-required {
    padding-right: 10px;
    text-align: right;
}

.badge-hover-area {
    position: relative;
    display: inline-block;
}

.badge-hover-img {
    visibility: hidden;
    position: absolute;
    width: 50px;
    height: 50px;
    position: absolute;
    z-index: 2;
    left: 0%;
    bottom: 0%;
}

.item-badge-img {
    width: 50px;
    height: 50px;
}

.badge-hover-area:hover .badge-hover-img {
    visibility: visible;
}

.badge-table-cell {
    text-align: left;
    transform: translateY(-10%);
}

.badge-required-area {
    position: relative;
    display: inline-block;
    height: 1em;
    width: 1em;
}

.badge-required-image {
    height: 25px;
    width: 25px;
    position: absolute;
    z-index: 2;
    top: 0%;
    left: 0%;
}

.badge-required-area:hover .badge-required-image {
    height: 50px;
    width: 50px;
    top: -50%;
    left: -50%
}

.funds-display {
    float: left;
    margin-top: 20px;
    max-width: 50%;
}

    .funds-display > * {
        padding-top: 5px;
    }

#buy-item-button:disabled,
#buy-item-buttom:disabled:hover {
    background-color: white;
    color: grey;
}

/**========================
    Equip Purchase Modal
==========================**/
.confirm-purchase-container {
    margin: 20px 0;
}

.purchase-item-container {
    min-width: 400px;
    padding: 12px;
}

.confirm-purchase-button {
    width: 30%;
    height: 30px;
    margin-top: 20px;
    /*display: inline-block;*/
}

#confirm-item-button {
    float: left;
}

#cancel-item-button {
    float: right;
}

#confirm-purchase-container::after {
    content: " ";
    display: block;
    height: 0;
    clear: both;
}

/*==========================
    Delete Account Modal
==========================*/
.delete-account-button-container {
    display: inline-block;
    width: 50%;
    margin-top: 15px;
}

.confirm-delete-button {
    width: 75%;
    vertical-align: top;
    height: 50px;
    font-size: 14px;
}

/*=============
    Utiltiy
=============*/
.center {
    display: inline-block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.vertical-center {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.center-right {
    position: absolute;
    right: 0%;
    top: 50%;
    transform: translate(-0%, -50%);
}

.bold {
    font-weight: bolder;
}

.image-link {
    text-decoration: none;
}

.inline-image {
    border: 0;
    display: inline;
    height: 15px;
    width: 15px;
    margin-left: 2px;
}

/**====================
    Subgame Summary
====================**/
.mcskill-container {
    position: relative;
    height: 50px;
    width: 90%;
    margin: 0 auto;
    text-align: left;
}

.mc-image-container {
    position: absolute;
    height: 60px;
    width: 60px;
    right: -1%;
    margin-top: 10px;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    z-index: 999;
}

.mc-change-img {
    height: 100%;
    width: 100%;
}

.mc-change-text {
    position: absolute;
    font-weight: bold;
    text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    color: #fff;
}

.mc-skill-label-container {
    position: relative;
    margin-right: 5px;
}

.mc-skill-display-container {
    position: relative;
    border: 1px solid black;
    border-radius: 50px;
    overflow: hidden;
    height: 20px;
    margin-top: 5px;
    width: 98%;
    bottom: 0;
}

    .mc-skill-display-container span {
        visibility: hidden;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 999;
    }

    .mc-skill-display-container:hover span {
        visibility: visible;
    }

.mc-skill-display {
    height: 100%;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

/**=============
    Tooltips
==============*/
#performance-image-container:hover #performance-image-tooltip {
    visibility: visible;
}

#current-performance-label-container:hover #current-performance-tooltip {
    visibility: visible;
}

#past-performance-label-container:hover #past-performance-tooltip {
    visibility: visible;
}

#mc-image-container-1:hover #mc-skill-tooltip-1 {
    visibility: visible;
}

#mc-image-container-1:hover #mc-skill-tooltip-1 {
    visibility: visible;
}

.tooltip {
    position: absolute;
    visibility: hidden;
    padding: 5px;
    background-color: white;
    color: black;
    text-align: center;
    left: 50%;
    top: -5%;
    border: 1px solid black;
    white-space: nowrap;
    border-radius: 5px;
    transform: translate(-50%, -105%);
    z-index: 999;
}

/* Commented out for new level and points tooltips
.tooltip::after {
    content: " ";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: black transparent transparent transparent;
}
*/

/* Instructions during game load. Issue #711 -Erika*/
/* loading animation for instructions */
.loader-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 5px;
    height: 30px;
}

.loader-dots span {
    width: 8px;
    height: 8px;
    background-color: #333;
    border-radius: 50%;
    animation: bounce 1s infinite ease-in-out;
}

.loader-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }
}