
:root {--main-color: #2a47a5;--hover-color: #3255c6;--second-color: #3a63e7;--background-color: #f0f0f0;--text-color: black;--second-background-color: #d5d5d5;}
* {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
}

html {
    background-color: var(--background-color);
}

header {
    background-color: var(--main-color);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

header a {
    color: white;
    text-decoration: none;
}

#menu {
    background-color: var(--second-color);
    margin-right: 20px;
}

#menu:hover, #menu-m:hover {
    background-color: var(--hover-color);
}

#menu-m {
    background-color: var(--second-color);
    display: none;
}

header h3 {
    color: white;
}

.avatar {
    width: 125px;
    height: 125px;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-header {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 20px;
}

.avatar-header:hover {
    outline: solid 2px white;
    cursor: pointer;
}

.infos {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 100px;
    color: var(--text-color);
}

.bio {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    margin-left: 20px;
}

.button {
    display: inline-block;
    background-color: var(--main-color);
    padding: 10px 20px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    margin: 0 auto;
    transition: 0.2s;
}

.button:hover {
    background-color: var(--hover-color);
    cursor: pointer;
}

.button-send {
    display: inline-block;
    background-color: var(--main-color);
    padding: 10px 20px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: 0.2s;
    justify-content: center;
}

.button-send:hover {
    background-color: var(--hover-color);
    cursor: pointer;
}

.mods-title {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-left: 50px;
    color: var(--text-color);
}

.cards-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    position: relative;
}

.card {
    box-sizing: border-box;
    text-decoration: none;
    display: flex;
    margin-left: 50px;
    margin-bottom: 20px;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: 0.2s;
}

.card img {
    border-radius: 8px;
    width: 16rem;
    height: 10rem;
    z-index: -1;
    object-fit: cover;
}

.card:hover {
    opacity: 0.8;
}

.card p {
    color: white;
    margin-top: 0.5rem;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.658);
    position: absolute;
    bottom: 0;
    padding-top: 5px;
    padding-bottom: 5px;
    margin-bottom: 4px;
    width: 100%;
    border-radius: 8px;
    font-size: 18px;
}

.card-featured {
    box-sizing: border-box;
    text-decoration: none;
    display: flex;
    margin-left: 50px;
    margin-bottom: 20px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    transition: 0.2s;
}

.card-featured img {
    border-radius: 8px;
    z-index: -1;
    object-fit: cover;
}

.first {
    width: 32rem;
    height: 18rem;
}

.second {
    width: 31rem;
    height: 17rem;
}

.third {
    width: 30rem;
    height: 16rem;
}

.card-featured:hover {
    opacity: 0.8;
}

.card-featured p {
    color: white;
    margin-top: 0.5rem;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.658);
    position: absolute;
    bottom: 0;
    padding-top: 5px;
    padding-bottom: 5px;
    margin-bottom: 4px;
    width: 100%;
    border-radius: 8px;
    font-size: 24px;
}

.admin-cards-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    position: relative;
}

.admin-card {
    box-sizing: border-box;
    text-decoration: none;
    color: white;
    background-color: var(--main-color);
    width: 250px;
    height: 165px;
    display: flex;
    margin-left: 50px;
    margin-bottom: 20px;
    flex-direction: column;
    align-items: center;
    border-radius: 8px;
    position: relative;
    transition: 0.2s;
}

.admin-card i {
    font-size: 100px;
    margin-top: 20px;
}

.admin-card p {
    color: white;
    margin-top: 0.5rem;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.658);
    position: absolute;
    bottom: 0;
    padding-top: 5px;
    padding-bottom: 5px;
    margin-bottom: 4px;
    width: 100%;
    border-radius: 8px;
    font-size: 18px;
}

.admin-card:hover {
    opacity: 0.8;
}

.main-infos {
    margin-left: 50px;
    margin-top: 100px;
    color: var(--text-color);
}

.admin-title {
    color: var(--text-color);
    margin-top: 100px;
}

input[type="text"], input[type="password"], select, datalist {
    width: 350px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-top: 10px;
    margin-bottom: 20px;
}

input[type="color"] {
    -webkit-appearance: none;
    width: 350px;
    border: none;
    margin-top: 10px;
    margin-bottom: 20px;
    border-radius: 8px;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0px;
}

input[type="color"]::-webkit-color-swatch {
    border: none;
}

textarea {
    width: 350px;
    height: 100px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-top: 10px;
    margin-bottom: 20px;
}

.avatar-edit {
    position: relative;
    width: 128px;
    height: 128px;
}

.avatar-edit:hover img.avatar {
    outline: solid 2px var(--text-color);
    cursor: pointer;
}

.avatar-edit img.avatar {
    width: 100%;
    height: 100%;
}

.avatar-edit input[type='file'] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.avatar-mod {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border-radius: 50%;
}

.game-add {
    position: relative;
    width: 16rem;
    height: 10rem;
}

.game-add img {
    border-radius: 8px;
    width: 16rem;
    height: 10rem;
    z-index: -1;
    object-fit: cover;
    transition: 0.2s;
}

.game-add input[type='file'] {
    position: absolute;
    top: 0;
    left: 0;
    width: 16rem;
    height: 10rem;
    opacity: 0;
    cursor: pointer;
}

.mod-add {
    position: relative;
    width: 16rem;
}

.mod-add img {
    border-radius: 8px;
    width: 16rem;
    height: 6rem;
    z-index: -1;
    object-fit: cover;
    transition: 0.2s;
}

.mod-add input[type='file'] {
    position: absolute;
    top: 0;
    left: 0;
    width: 16rem;
    height: 6rem;
    opacity: 0;
    cursor: pointer;
}

.thumb-add {
    position: relative;
    width: 16rem;
}

.thumb-add img {
    border-radius: 8px;
    width: 16rem;
    height: 8rem;
    z-index: -1;
    object-fit: cover;
    transition: 0.2s;
}

.thumb-add input[type='file'] {
    position: absolute;
    top: 0;
    left: 0;
    width: 16rem;
    height: 8rem;
    opacity: 0;
    cursor: pointer;
}

.menu {
    display: block;
    position: fixed;
    right: 0;
    top: 89px;
    background-color: var(--main-color);
    display: none;
    width: 175px;
    z-index: 1;
}

.menu a, .auth a {
    display: block;
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px;
    text-align: left;
}

.menu a:hover, .auth a:hover {
    background-color: var(--hover-color);
    cursor: pointer;
}

.auth {
    display: block;
    position: fixed;
    right: 0;
    top: 70px;
    background-color: var(--main-color);
    display: none;
    width: 175px;
    z-index: 1;
}

.queue {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
}

.queue p {
    background-color: var(--main-color);
    color: white;
    padding: 10px;
    border-radius: 8px;
}

.game-container {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    max-height: 100vh;
    padding-top: 50px;
}

.img-game {
    top: 0;
    left: 0;
    width: 100vw;
    height: 350px;
    object-fit: cover;
    object-position: center;
}

.text-container {
    position: absolute;
    top: 0;
    left: 0;
    justify-content: flex-start;
    align-items: flex-start;
    padding-left: 25px;
    padding-top: 85px;
    color: white;
}

.game-title {
    font-size: 75px;
    text-shadow: black 1px 0 10px;
}

.mod-title {
    font-size: 75px;
    text-shadow: black 1px 0 10px;
}

.game-description {
    font-size: 36px;
    text-shadow: black 1px 0 5px;
    padding-top: 12px;
}

.mod-file {
    background-color: var(--main-color);
    color: white;
    padding: 10px;
    border: none;
    border-radius: 8px;
}

.add-mod-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 150px;
    color: var(--text-color);
}

.add-mod-title {
    color: var(--text-color);
}

.preview {
    width: 32rem;
    height: 18rem;
    object-fit: cover;
    border-radius: 8px;
    transition: 0.2s;
}

.preview:hover {
    opacity: 0.8;
    cursor: pointer;
}

.side-infos {
    display: flex;
    align-items: center;
}

.side-infos img {
    width: 75px;
    border-radius: 50%;
    margin-right: 10px;
}

.side-infos a {
    color: var(--text-color);
    text-decoration: none;
}

.side-infos a:hover {
    text-decoration: underline;
}

.add {
    display: block;
    position: fixed;
    bottom: 5px;
    right: 5px;
    padding: 15px;
    margin: 10px;
    float: right;
}

.add-mobile {
    display: none;
    position: fixed;
    bottom: 5px;
    right: 5px;
    padding: 15px;
    margin: 10px;
    float: right;
}

.back {
    display: block;
    position: fixed;
    bottom: 5px;
    left: 5px;
    padding: 15px;
    margin: 10px;
    float: left;
}

.back-mobile {
    display: none;
    position: fixed;
    bottom: 5px;
    left: 5px;
    padding: 15px;
    margin: 10px;
    float: left;
}

#admin-p {
    margin-bottom: 0px;
}

.image {
    object-fit: cover;
}

.description {
    width: 500px;
    font-size: 18px;
}

.comment {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    background-color: var(--second-background-color);
    width: 500px;
    border-radius: 16px;
    padding: 10px;
    margin-left: 15%;
}

#comment, .comments-title, #send {
    margin-left: 15%;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.comment-infos {
    display: flex;
    align-items: center;
}

.comment img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 50%;
}

.content h2 {
    margin: 0 6px 0px 12px;
}

.content span {
    font-size: 12px;
}

.comment p {
    margin-left: 12px;
    margin-top: 8px;
}

.comment a {
    color: var(--text-color);
    text-decoration: none;
}

.comment a:hover {
    text-decoration: underline;
}

.comment h3 {
    display: flex;
    align-items: flex-end;
    margin-left: 12px;
}

.comment h3:hover {
    cursor: pointer;
}

.notification p {
    padding: 20px;
    background-color: var(--second-background-color);
    color: var(--text-color);
    width: 600px;
    font-size: 18px;
    border-radius: 16px;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.notification a {
    text-decoration: none;
    color: black;
}

.notification p:hover {
    opacity: 0.8;
}

.search-box {
    display: flex;
    justify-content: center;
    align-items: center;
}

#search {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 20px;
    margin-bottom: 0px;
    margin-top: 0px;
    width: 350px;
    border: none;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
}

.search-box a {
    background-color: white;
    color: black;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    padding: 11px;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
}

.search-box a:hover {
    cursor: pointer;
}

.user {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: 50px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.user img {
    border-radius: 50%;
    width: 8rem;
    height: 8rem;
    object-fit: cover;
}

.user a {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 24px;
    color: var(--text-color);
    text-decoration: none;
}

.user a:hover {
    text-decoration: underline;
}

.user p {
    margin-left: 6px;
    justify-content: center;
}

#infos-admin {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#infos {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#badge {
    width: 24px;
    height: 24px;
}

.game-filter {
    display: inline-block;
}

.game-filter br {
    display: none;
}

.game-filter b {
    display: inline;
}

#filter {
    margin-left: 12px;
}

.game-infos {
    display: flex;
    justify-content: space-around;
}

.other-infos {
    color: var(--text-color);
}

.setting-1 {
    display: inline-block;
    margin-right: 50px;
}

.setting-2 {
    display: inline-block;
    margin-left: 50px;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.418);
    overflow: auto;
    z-index: 999999;
}

.popup-image {
    display: block;
    margin: auto;
    width: 80%;
    max-width: 700px;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

.follow-title {
    display: flex;
    justify-content: center;
    color: var(--text-color);
}

.lang-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

.lang-lebel {
    flex-grow: 1;
    text-align: center;
}

.lang-icon {
    font-size: 20px;
    color: var(--text-color);
    text-decoration: none;
}

.conv-wrapper {
    color: var(--text-color);
    text-decoration: none;
}

.conv {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    background-color: var(--second-background-color);
    width: 750px;
    border-radius: 16px;
    padding: 10px;
    margin-left: 48px;
    margin-bottom: 24px;
}

.conv-infos {
    display: flex;
    flex-direction: row;
}

.conv-infos img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 50%;
}

.conv-infos h3 {
    
    margin-left: 12px;
    margin-bottom: 6px;
}

.conv-infos p {
    margin-left: 12px;
}

.conv-text {
    display: flex;
    flex-direction: column;
}

.msg {
    display: flex;
    flex-direction: row;
    background-color: var(--second-background-color);
    width: 500px;
    border-radius: 16px;
    padding: 10px;
    margin-left: 48px;
    margin-bottom: 24px;
}

.msg-sent {
    color: var(--text-color);
    display: flex;
    width: 98%;
    justify-content: flex-end;
}

.msg-received {
    color: var(--text-color);
    display: flex;
    width: 100%;
    justify-content: flex-start;
}

.msg-infos {
    display: flex;
    flex-direction: row;
}

.msg-infos img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 50%;
}

.msg-infos h3 {
    margin-left: 12px;
    margin-bottom: 6px;
}

.msg-infos p {
    margin-left: 12px;
}

.msg-text {
    display: flex;
    flex-direction: column;
}

.msg-text p {
    width: 400px;
    word-wrap: break-word;
}

.msg-text a {
    color: var(--text-color);
    text-decoration: none;
}

.msg-text a:hover {
    text-decoration: underline;
}

.msg-header {
    display: flex;
    flex-direction: row;
}

.msg-header span {
    margin-left: 12px;
    font-size: 14px;
    margin-top: 3px;
}

.form-msg {
    display: flex;
    justify-content: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    margin-top: 20px;
    align-items: baseline;
}

.form-msg input {
    width: 80%;
    height: 18px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-top: 10px;
    margin-bottom: 20px;
}

.form-msg button {
    margin-left: 24px;
}

.new-msg-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 48px;
}

.new-msg-content h2 {
    color: var(--text-color);
}

@media (max-width: 1500px) {
    #comment, .comments-title, #send, .comment {
        margin-left: 10%;
    }
}

@media (max-width: 1200px) {
    #comment, .comments-title, #send, .comment {
        margin-left: 6%;
    }
}

@media (max-width: 952px) {
    #menu-m {
        display: flex;
        flex-direction: column;
        margin-right: 24px;
    }

    #menu {
        display: none;
    }

    .description {
        width: 300px;
    }

    .setting-1 {
        display: inline-block;
        margin-right: 0px;
    }

    .setting-2 {
        display: inline-block;
        margin-left: 0px;
    }

    .add-mod-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 50px;
        color: var(--text-color);
    }

    .game-title {
        font-size: 56px;
    }

    .game-description {
        font-size: 28px;
        width: 550px;
    }

    .description {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mod-buttons {
        margin-left: 150px;
    }

    .mod-info {
        margin-top: 48px;
    }

    .game-infos {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .comments-title, #comment, #send, .comment {
        margin-left: 38%;
    }

    .comment {
        width: 400px;
    }
}

@media (max-width: 764px) {
    header h1 {
        display: none;
    }

    .notification p {
        width: 400px;
    }

    .conv {
        width: 500px;
    }
}

@media (max-width: 628px) {
    header h1 {
        display: none;
    }

    header img {
        margin-right: 12px;
    }

    #search {
        width: 275px;
    }

    #search-button {
        margin-right: 12px;
    }

    .cards-list {
        justify-content: center;
    }

    .img-game {
        height: 300px;
    }

    .game-title {
        font-size: 48px;
    }

    .game-description {
        font-size: 24px;
        width: 450px;
    }

    .preview {
        width: 26rem;
        height: 14rem;
    }

    .game-filter {
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }

    .game-filter br {
        display: block;
    }

    .game-filter b {
        display: none;
    }

    #filter {
        margin-top: -12px;
        margin-bottom: -12px;
        margin-left: 50px;
    }

    .game-infos #button {
        margin-bottom: 2rem;
    }

    .comment {
        width: 400px;
    }

    .description {
        width: 300px;
    }

    .mod-buttons {
        margin-left: 100px;
    }

    .comments-title, #comment, #send, .comment {
        margin-left: 28%;
    }

    .comment {
        width: 300px;
    }

    .mod-info {
        margin-top: 0px;
    }

    .conv {
        width: 400px;
    }
}

@media (max-width: 524px) {
    header h1 {
        display: none;
    }

    header img {
        margin-right: 12px;
    }

    #search {
        width: 200px;
    }

    #search-button {
        margin-right: 12px;
    }

    .card {
        margin-left: 0px;
    }

    .img-game {
        height: 250px;
    }

    .page-title {
        margin-top: 124px;
    }

    .game-title {
        font-size: 36px;
    }

    .game-description {
        font-size: 18px;
        width: 300px;
    }

    .preview {
        width: 18rem;
        height: 11rem;
    }

    .description {
        margin-left: 50px;
        width: 250px;
    }

    .mod-buttons {
        margin-left: 42px;
    }

    .comment {
        width: 250px;
    }

    #comment {
        width: 250px;
    }

    .mod-title {
        font-size: 24px;
    }

    .main-infos {
        margin-left: 24px;
    }

    .main-infos h1 {
        margin: 0 auto;
    }

    .avatar {
        width: 100px;
        height: 100px;
    }

    .infos {
        margin-top: 124px;
    }

    input[type="text"], input[type="password"], input[type="color"], select, datalist, .add-mod-content textarea, .add-mod-content input[type="file"] {
        width: 250px;
    }

    .add {
        display: none;
    }

    .add-mobile {
        display: block;
    }

    .back {
        display: none;
    }

    .back-mobile {
        display: block;
    }

    .notification p {
        width: 275px;
        font-size: 14px;
    }

    .conv {
        width: 350px;
        margin-left: 24px;
    }

    .msg {
        margin-left: 18px;
        width: 300px;
    }

    .msg p {
        width: 200px;
    }

    .msg-received, .msg-sent {
        width: 95%;
    }

    .form-msg input {
        width: 250px;
    }

    .form-msg button {
        margin-left: 12px;
    }
}

@media (max-width: 438px) {
    header h1 {
        display: none;
    }

    header img {
        margin-right: 12px;
    }

    #search {
        width: 150px;
    }

    #search-button {
        margin-right: 12px;
    }

    .comments-title, .comment, #comment, #send {
        margin-left: 100px;
    }

    .comment {
        width: 250px;
    }

    .mod-title {
        font-size: 18px;
    }

    .img-game {
        height: 200px;
    }
}

@media (max-width: 400px) {
    header h1 {
        display: none;
    }

    header img {
        margin-right: 12px;
    }

    #search {
        width: 100px;
    }

    #search-button {
        margin-right: 12px;
    }

    .game-description {
        width: 250px;
    }

    .mod-buttons {
        margin-left: 42px;
    }

    .comments-title, .comment, #comment, #send {
        margin-left: 80px;
    }

    .comment {
        width: 250px;
    }

    #comment {
        width: 250px;
        height: 75px;
    }

    .comment h2 {
        font-size: 16px;
    }

    .comment span {
        font-size: 10px;
    }

    .notification p {
        width: 250px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .comment {
        width: 250px;
    }

    .form-msg input {
        width: 200px;
    }

    .conv {
        width: 250px;
    }
}