@font-face {
    font-family: Stopbuck;
    src: url('fonts/Stopbuck.ttf');
}

@font-face {
    font-family: Superboys;
    src: url('fonts/Superboys.ttf')
}

@font-face {
    font-family: Hussar;
    src: url('fonts/Hussar.otf')
}

h4,
h3,
h2,
h1 {
    text-align: center;
    font-family: Stopbuck;
}

.spec {
    font-family: Stopbuck;
    font-size: smaller;
    text-align: left;
    margin: 10px;
    margin-left: 25px;
}

.specTitle {
    position: absolute; 
    top: 0px; 
    color: white; 
    margin-left: 60px;
}

.selectedSpec {
    font-family: Stopbuck;
    font-size: x-small;
    text-align: left;
    margin: 10px;
}

select {
    margin: 5px;
}

.champImg {
    width: 175px;
    height: auto;
    margin: 13px;
    border-radius: 8px;
    transition: filter 0.3s ease;
}

#selectedChampImg {
    width: 131px;
    height: auto;
    margin: 10px;
    border-radius: 8px;
    transition: filter 0.3s ease;
}

.champCard,
.draftChampCard,
.hiddenChampCard {
    width: 200px;
    height: 275px;
    background-color: white;
    margin: 10px;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    position: relative;

    perspective: 1000px;
}

#selectedChampCard {
    display: none;
    width: 150px;
    height: 206px;
    background-color: white;
    margin: 10px;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    border: solid;
    border-color: gold;

    perspective: 1000px;
    position: absolute;
    top: 100px;
    right: 60px;
}

.selectedCardOverlay {
    border: solid;
    border-width: 3px;
    margin: 7px;
    border-color: gold;
}

.frontCard {
    opacity: 1;
    transition: opacity 0.4s;
}

.showBackCard .innerCard {
    transform: rotateY(180deg);
}

.showBackCard .frontCard {
    opacity: 0;
}

.innerCard {
    position: relative;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.backCard,
.frontCard {
    position: absolute;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.backCard {
    transform: rotateY(180deg);
}


.cardButtonHide {
    padding: 10px 10px;
    background-color: #F14528;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin: 5px;
    width: 80px;
    height: auto;
    font-family: Superboys;
    font-size: larger;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cardButtonGuess,
.cardButtonPick {
    padding: 10px 10px;
    background-color: #EFCB14;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin: 5px;
    width: 80px;
    height: auto;
    font-family: Superboys;
    font-size: larger;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cardButtonShow {
    padding: 10px 10px;
    background-color: #71de7a;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin: 5px;
    width: 80px;
    height: auto;
    font-family: Superboys;
    font-size: larger;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.buttonContainer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.imgContainer {
    position: relative;
}

.champCard:hover button,
.hiddenChampCard:hover button,
.draftChampCard:hover button {
    opacity: 1;
}

.champCard:hover .champImg,
.draftChampCard:hover .champImg,
.hiddenChampCard:hover .champImg {
    filter: blur(5px);
}

.backChampImg {
    filter: blur(5px);
    width: 175px;
    height: 230px;
    margin: 10px;
    border-radius: 8px;
}

#selectedBackChampImg {
    filter: blur(5px);
    width: 127px;
    height: 185px;
    margin: 11px;
    border-radius: 8px;
}

.infoIcon {
    position: absolute;
    width: 30px;
    height: 30px;
    bottom: 0;
    right: 0;
    margin: 15px;
    margin-bottom: 10px;
    cursor: pointer;
}

.infoIcon:active .innerCard,
.infoIcon:hover .innerCard {
    transform: rotateY(180deg);
}

.selectedInfoIcon {
    position: absolute;
    width: 22px;
    height: 22px;
    bottom: 0;
    right: 0;
    margin: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}

#selectedCardTitle {
    font-size: smaller;
    margin-top: 1px;
    font-family: Stopbuck;
}

.cardTitle {
    font-family: Stopbuck;
    margin-top: 5px;
}

#gamePlay,
#draftContainer {
    display: flex;
    height: 100%;
}

#joinRoom,
#gameInit {
    text-align: center;
}

#gameInit {
    margin-top: 70px;
}

#roomUID {
    outline: none;
    width: 200px;
    height: 43px;
    border-radius: 8px;
    border: none;
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.2);
    padding: 10px;
    transition: ease 0.1s;
    font-family: Hussar;
}

#roomUID:hover {
    width: 220px;
    margin: 0;
    padding: 15px;
    font-size: medium;
}

#chatbox {
    background-color: white;
    border-radius: 8px;
    margin: 20px;
    width: 255px;

    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);

    position: absolute;
    right: 0;
    bottom: 0;
    height: 470px
}

#chat-text {
    font-family: Hussar;
    font-size: medium;
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 255px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;

}

#chat-input {
    outline: none;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    font-family: Hussar;
    border-radius: 8px;
    border-width: 2px;
    margin: 0;
    padding: 5px;
    width: 242px;
    height: 35px;
}

#messageContainer {
    overflow-y: auto;
    width: 255px;
    height: 420px;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#champs,
#draftArea,
#hiddenCards {
    text-align: center;
    display: none;
    /*will switch to grid*/
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    flex-grow: 1;
    height: 85vh;
    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow-y: auto;
}

#champs::-webkit-scrollbar,
#draftArea::-webkit-scrollbar,
#messageContainer::-webkit-scrollbar,
#screenPlayContainer::-webkit-scrollbar {
    display: none;
}

#confirmButtonWrapper {
    width: 450px;
    margin: 15px;
    height: 35px;
    text-align: center;
    border-radius: 15px;
    display: none;
    margin-left: 33%;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

#champConfirm {
    opacity: 0;
    width: 400px;
    height: 35px;
    background-color: #75ba88;
    text-align: center;
    border-radius: 15px;
    border: none;
    font-family: Superboys;
    cursor: pointer;
    margin-top: 10px;
    color: white;
    font-size: large;
    transition: ease 0.3s;
}

#champConfirm:hover {
    width: 420px;
    height: 40px;
    font-size: x-large;
    transition: ease 0.3s;
    background-color: #406e4c;
    margin-top: 5px;
}

#hiddenCardsContainer {
    display: flex;
}

/*
#topContainer {
 position: relative;
}
*/

#searchBar {
    outline: none;
    display: none;
    position: absolute;
    top: 25px;
    right: 25px;
    height: 25px;
    width: 250px;
    border-radius: 12px;
    padding: 5px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.1);
    font-family: Hussar;
    border-radius: 8px;
}

#createRoomButton {
    cursor: pointer;
    text-align: center;
    height: 75px;
    width: 400px;
    background-color: #7499d6;
    color: white;
    border-radius: 8px;
    border: none;
    font-family: Stopbuck;
    font-size: xx-large;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    box-shadow: 3px 3px 6px rgba(91, 121, 168);
    margin: 10px;
    transition: ease 0.1s
}

#createRoomButton:hover {
    width: 425px;
    height: 90px;
    margin: 5px;
    transition: ease 0.1s;
    font-size: xxx-large;
    background-color: #6282b5;
}

#filterContainer {
    display: none;
    justify-content: center;
}

#copyButtonWrapper {
    display: flex;
    justify-content: center;
}

#copyButton {
    width: 150px;
    height: 50px;
    border-radius: 15px;
    border: none;
    color: white;
    background-color: #325ecf;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    box-shadow: 3px 3px 6px rgba(91, 121, 168);
    font-family: Stopbuck;
    font-size: large;
    transition: ease 0.1s;
    margin-top: 76px;
    cursor: pointer;
}

#copyButton:hover {
    width: 170px;
    height: 60px;
    font-size: x-large;
    transition: ease 0.1s;
    margin: 70px;
}

#waitingArea {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#codeSpoiler {
    width: 100px;
    margin-left: 10px;
    border-radius: 5px;
    background-color: black;
    transition: ease 0.5s;
}

#codeSpoiler:hover {
    background-color: white;
    transition: ease 0.5s;
}

#gameBoard {
    height: 100%;
    width: auto;
    display: none;
    text-align: center;
}

#joinButton {
    cursor: pointer;
    width: 150px;
    height: 60px;
    background-color: #8cb063;
    color: white;
    border-radius: 8px;
    border: none;
    font-family: Stopbuck;
    font-size: large;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    box-shadow: 3px 3px 6px rgba(92, 117, 63);
    margin: 10px;
    padding: 10px;
    transition: ease 0.1s;
}

#joinButton:hover {
    width: 170px;
    height: 70px;
    margin-top: 3px;
    transition: ease 0.1s;
    font-size: x-large;
    background-color: #6f8c4f;
}

#screenPlayContainer {
    width: 80%;
    height: 100%;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/*
Select CSS
*/
.multiple-select {
    user-select: none;
    display: inline-block;
    position: relative;
}

.multiple-select summary {
    padding: 5px 10px;
    background-color: #ddd;
    cursor: pointer;
    border-radius: 5px;
}

.multiple-select-dropdown {
    position: absolute;
    margin-top: 2px;
    min-width: 100%;
    background-color: #ddd;
    border-radius: 5px;
    overflow-y: auto;
    max-height: 200px;
}

.multiple-select label {
    margin: 0;
    display: block;
}

.multiple-select label>input+.content {
    padding: 5px 10px;
    display: block;
    cursor: pointer;
}

.multiple-select label+label {
    border-top: 1px solid #bbb;
}

.multiple-select label>input:checked+.content {
    background-color: #bbb;
}

#applyFilterButton {
    border-radius: 8px;
    border: none;
    background-color: lightcoral;
    color: white;
    transition: background-color 0.3s;
    cursor: pointer;
}

#applyFilterButton:active {
    background-color: #F14528;
}

#applyFilterButton,
form {
    margin-right: 10px;
    margin-left: 10px;

    z-index: 1;
    font-family: Superboys;
}

#showAllButton {
    border-radius: 8px;
    border: none;
    background-color: lightgreen;
    color: white;
    transition: background-color 0.3s;
    cursor: pointer;
    font-family: Superboys;
}

#showAllButton:active {
    background-color: green;
}

.choiceButton {
    margin: 5px;
    font-family: Stopbuck;
    width: 100px;
    height: 50px;
    color: white;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

.chatTextElement {
    border: solid;
    border-width: 1px;
    border-radius: 8px;
    margin-top: 8px;
    margin-bottom: 8px;
    padding: 8px;
    transition: ease 0.5s;
}

.chatTextInfo {
    transition: ease 0.5s;
    margin-top: 8px;
    margin-bottom: 8px;
}

#playAgainWrapper {
    display: none;
    position: absolute;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

#playAgainWrapper.active #playAgainContainer {
    animation: slideFromBot 1s ease forwards;
}

@keyframes slideFromBot {
    0% {
        bottom: -100%;
    }

    100% {
        bottom: 50vh;
    }
}


#playAgainContainer {
    justify-content: center;
    display: none;
    position: absolute;
    width: 30vw;
    height: 20vh;
    background-color: white;
    z-index: 1;
    border-radius: 15px;
    left: 50%;
    bottom: -100%;
    transform: translateX(-50%);
    border: solid;
    background-color: #80a5bd;
    transition: top 1s ease;
    box-shadow: 12px 12px 12px rgba(90, 111, 115);
}

#playAgainButton {
    cursor: pointer;
    width: 10vw;
    height: 10vh;
    margin-top: 10%;
    margin-left: 10%;
    margin-right: 10%;
    color: white;
    background-color: #8fcc9e;
    border-radius: 8px;
    border: none;
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.2);
    font-family: Stopbuck;
    transition: ease 0.1s;
}

#playAgainButton:hover {
    width: 11vw;
    height: 11vh;
    transition: ease 0.1s;
    margin-left:5%;
    margin-right: 12%;
    margin-top: 9%;
}

#quitGameButton:hover {
    width: 11vw;
    height: 11vh;
    transition: ease 0.1s;    
    margin-right: 5%;
    margin-top: 9%;
    margin-left: 12%;
}

#quitGameButton {
    cursor: pointer;
    width: 10vw;
    height: 10vh;
    margin-top: 10%;
    margin-left: 10%;
    margin-right: 10%;
    color: white;
    background-color: #a16d5a;
    border-radius: 8px;
    border: none;
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.2);
    font-family: Stopbuck;
    transition: ease 0.1s;
}

#howToPlayTitle {
    display: flex;
    justify-content: center;
}

#howToPlayGuide {
    justify-content: center;
    display: flex;
}

#howToPlayContainer {
    position: absolute;
    left: 0; 
    right: 0; 
    bottom: 40px;;
    margin-left: auto; 
    margin-right: auto; 
}