* {
    user-select: none;
    outline: none;
}

input,
button,
textarea {
    all: unset;
}

html {
    height: 100%;
}

img {
    -webkit-user-drag: none;
    -moz-user-drag: none;
    user-select: none;
    pointer-events: auto;
}

body {
    font-family: 'Roboto';
    font-style: normal;
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

h1 {
    margin: 0px 0px 15px;
    text-align: center;
}

#mainPage {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    margin: auto;
    position: relative;
    overflow: hidden;
    align-items: center;
}

.maxWidth {
    width: 500px;
    max-width: calc(100% - 20px);
}

.subPanelContainer {
    height: 100%;
    width: 100%;
    max-width: 600px;
    max-height: fit-content;
    overflow: auto;
    background-color: white;
}

#leaderboardTitle {
    margin-top: 15px;
}

table {
    border-collapse: collapse;
    width: 100%;
    font-size: 20px;

    th {
        text-align: left;
        padding: 8px;
        background-color: darkgrey;
        color: white;
        position: sticky;
        top: 0;
    }

    td {
        padding: 8px;
    }

    tr {
        padding: 8px;
        border-bottom: 1px solid black;
    }

    tr:last-child {
        border-bottom: none;
    }

    tr:first-child {
        border-bottom: none;
    }
}

#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: black;
    padding: 10px;
    color: white;
    height: 35px;
}

#otherGames {
    height: 100%;
    cursor: pointer;
}

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

#logoContainer {
    display: flex;
    align-items: center;
    gap: 15px;
}

.panelContent {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: center;
}

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

#topScoresContainer {
    display: flex;
    font-size: 15px;
    justify-content: space-around;
    margin: 0px 10px 10px;
    font-weight: bold;
    align-items: center;
}

#logo {
    height: 35px;
}

#siteName {
    font-weight: bold;
    font-size: 20px;

    div {
        font-weight: normal;
        font-size: 15px;
    }
}

#hashtagContextUI {
    margin-bottom: 15px;
}

#date-hashtag {
    display: flex;
    justify-content: space-between;
    margin: 10px;
}

#gameDescription {
    font-weight: bold;
    margin-top: 10px;
    color: blue;
    text-align: center;
}

#mainImage {
    height: 100%;
    max-width: calc(100% - 20px);
    aspect-ratio: 1;
    margin: 0px 10px;
    background-size: contain;
    background-repeat: no-repeat;
    overflow: hidden;
    background-position: center center;
    cursor: pointer;
}

#mainImageContainer {
    width: 100%;
    height: 100%;
    position: relative;
    align-items: center;
    padding: 10px 0px 10px 0px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(0deg, rgb(230, 230, 230), rgba(245, 245, 245))
}

#shine {
    transform: translateX(-100%);
    height: 100%;
    width: 100%;
    z-index: 1;
    animation: slide 5s infinite;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 33%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 66%, rgba(255, 255, 255, 0) 100%);
}

@keyframes slide {
    0% {
        transform: translateX(100%);
    }

    33% {
        transform: translateX(-100%);
    }
}

#share-buttons {
    display: flex;
    flex-direction: column;
}

.otherGame {
    font-size: 25px;
    background-color: white;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    height: 50px;
    justify-content: space-between;

    div {
        margin-left: 20px;
    }

    img {
        height: 100%;
        margin: 0px 20px;
    }
}

#bottom-bar {
    display: flex;
    justify-content: space-around;
    height: 50px;
    margin: 10px;
}

#panel-center {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: white;
    border-bottom-left-radius: 100% 100%;
    overflow: hidden;
    z-index: 200;
    display: none;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translate(100%, -100%) scale(0);
}

.panel {
    position: absolute;
    background-color: rgba(200, 200, 200, 0.95);
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
    z-index: 100;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: auto;
    align-items: center;
}

.panel.left {
    left: 0;
    top: 0;
    transform: translateX(-100%);
}

.panel.right {
    right: 0;
    top: 0;
    transform: translateX(100%);
}

.panel.bottom {
    bottom: 0;
    left: 0;
    transform: translateY(100%);
}

.panel.top {
    top: 0;
    left: 0;
    transform: translateY(-100%);
}

.panel.active {
    transform: translate(0, 0);
}

.close-btn {
    height: 40px;
    width: 40px;
    bottom: 10px;
    margin: 10px 0px;
    cursor: pointer;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("../IMG/icons8-cancelar-100.png");
    transition: all 0.1s;
}

.close-btn:hover {
    transform: scale(1.1);
}

#shareContentContainer {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}

#shareContent {
    width: 100%;
    resize: none;
    font-size: 20px;
    height: 70px;
    background-color: white;
    border: inset 2px;
    margin-bottom: 15px;
}

#otherGamesMain {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#otherGamesContainer {
    height: calc(100% - 70px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

#leaderboardContainer {
    height: calc(100% - 70px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#leaderboardMain {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

#copyToClipboard {
    cursor: pointer;
    height: 60px;
    margin-bottom: 5px;
}

#gameNameUI {
    font-size: 26px;
    color: blue;
}

#contextTitle {
    margin-bottom: 20px;
}

.bottomButtons {
    height: 100%;
    cursor: pointer;
    transition: all 0.1s;
}

.bottomButtons:hover {
    transform: scale(1.1);
}

.navButton {
    width: 40px;
    height: 40px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    cursor: pointer;
    transition: all 0.1s;
}

#navButtons {
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin-right: 15px;
    align-items: center;
}

.navButton:hover {
    transform: scale(1.1);
}

#previousGame {
    background-image: url("../IMG/icons8-chevron-izquierda-en-círculo-100.png");
}

#nextGame {
    background-image: url("../IMG/icons8-chevron-derecha-en-círculo-100.png");
}

#footer {
    width: 100%;
    color: white;
    background-color: black;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;

    .bmc-btn {
        height: 40px;
        min-width: 180px;
        padding: 0px 14px;
        font-size: 25px;
    }
}

.social-link {
    margin-right: 12px;
    height: 32px;

    img {
        height: 100%;
        width: auto;
    }
}