@import "./fonts.css";

:root {
    --color-bg: linear-gradient(180deg, #2156ff, #4ca7ff);
    --color-bg2: linear-gradient(180deg, #ae46e8, #d387f0);
    --color-text: #f5f5f5;
    --color-text2: #1f1f1f;
    --color-text3: #ffb547;
    --text-shadow: 1.75px 3.0625px 0 #191919,1.616825px .669725px 0 #191919,1.237425px 1.237425px 0 #191919,.669725px 1.616825px 0 #191919,3.0625px 1.75px 0 #191919,-.669725px 1.616825px 0 #191919,-1.237425px 1.237425px 0 #191919,-1.616825px .669725px 0 #191919,-1.75px 0 0 #191919,-1.616825px -.669725px 0 #191919,-1.237425px -1.237425px 0 #191919,-.669725px -1.616825px 0 #191919,0 -1.75px 0 #191919,.669725px -1.616825px 0 #191919,1.237425px -1.237425px 0 #191919,1.616825px -.669725px 0 #191919;
}

/* Base styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: Roboto-Condensed, sans-serif;
    font-size: 14px;
}

body.overlay {
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 1230px;
    min-height: 100vh;
    padding: 0 30px;
    margin: 0 auto;
    position: relative;
}

.menu-btn {
    width: 45px;
    position: absolute;
    top: 40px;
    right: 30px;
    z-index: 2;
    transition: all 0.2s ease-in;
    cursor: pointer;
}

.menu-btn:hover {
    transform: scale(1.1);
}

/* Logo styles */

.logo {
    width: 160px;
    position: absolute;
    top: 25px;
    left: 30px;
    z-index: 1;
    transition: 0.3s;
}

/* Main styles */

h1 {
    padding-top: 125px;
    padding-bottom: 30px;
    font-size: 45px;
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    text-shadow: var(--text-shadow);
    cursor: default;
}

.box {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding-bottom: 40px;
    position: relative;
}

.list {
    display: flex;
    position: relative;
    padding: 10px;
    margin: 15px 0;
    border-radius: 10px;
    transition: 0.3s;
    overflow: hidden;
    background-color: var(--color-text);
    cursor: default;
}

.list:hover {
    transform: scale(1.1);
}

.img-hero {
    width: 100px;
    height: 100px;
    margin-right: 10px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.img-hero img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: contain;
}

.content {
    display: flex;
    flex: 1;
    justify-content: space-between;
    align-items: center;
    column-gap: 15px;
}

.hero-info {
    padding: 10px;
}

.hero-name {
    margin-bottom: 7px;
    font-size: 30px;
    font-weight: 700;
    color: var(--color-text2);
}

.hiro-stats {
    display: flex;
    align-items: center;
    column-gap: 10px;
}

.hiro-stats img {
    width: 30px;
    height: 30px;
}

.points {
    font-size: 38px;
    font-weight: 700;
    line-height: 0.8;
    color: var(--color-text3);
}

.rank {
    width: 95px;
    height: 95px;
    margin-right: 2.5px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    background: var(--color-bg2);

    font-size: 40px;
    font-weight: 700;
    letter-spacing: 3px;
    text-indent: 5px;
    color: var(--color-text);
    text-shadow: var(--text-shadow);
}

/* Media queries */

@media (max-width: 800px) {
    h1 {
        text-align: right;
    }
    .list:hover {
        transform: none;
    }
}

@media (max-width: 580px) {
    h1 {
        padding-bottom: 15px;
        font-size: 40px;
    }
    .container {
        padding: 0 15px;
    }
    .img-hero {
        width: 75px;
        height: 75px;
    }
    .content {
        column-gap: 10px;
    }
    .hero-info {
        padding: 0;
    }
    .hero-name {
        font-size: 21px;
    }
    .hiro-stats img {
        width: 25px;
        height: 25px;
    }
    .points {
        font-size: 30px;
    }
    .rank {
        width: 70px;
        height: 70px;
        font-size: 30px;
    }
}

@media (max-width: 374px) {
    h1 {
        padding-bottom: 10px;
        font-size: 35px;
    }
    .img-hero {
        width: 60px;
        height: 60px;
        margin-right: 5px;
    }
    .content {
        column-gap: 5px;
    }
    .hero-name {
        font-size: 18px;
    }
    .hiro-stats img {
        width: 20px;
        height: 20px;
    }
    .points {
        font-size: 25px;
    }
    .rank {
        width: 60px;
        height: 60px;
        font-size: 27px;
    }
}
