:root{
    --textGradient: linear-gradient(91deg, #B3ADE9 0.8%, #FFF 49%, #E9ADAD 90.89%);
}


body{
    background-color: #000;
    background-image: url(/static/background.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 0px;
    margin: 0px;
    height: 100vh;
    width: 100vw;
}

*{
    font-family: "Lexend", serif;
}

.navBar{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding:32px 32px 32px 32px;
    box-sizing: border-box;
}

.landingPageTextContainer{
    position: absolute;
    top: 50%;
    transform: translate(-50%,-50%);
    left:50%;
    width: 90%;
    max-width: 800px;
    font-size: 32px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap:16px;
    justify-content: center;
    align-items: center;
}

.landingPageTextContainer > h1{
    font-size: 36px;
    margin: 0px;
    background:var(--textGradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    text-align: center;
}

.landingPageTextContainer > p{
    font-size: 14px;
    text-align: center;
    max-width: 450px;
    color: #A5A5A5;
}

.landingPageTextContainer > p > span{
    color: #fff;
}


.pageLogo{
    display: flex;
    align-items: center;
    justify-content: center;
    gap:8px;
    background: var(--textGradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    font-size: 16px;
}

.pageLogo > svg > path{
    fill:#DD9C73;
}

.flipMeter{
    position: absolute;
    height: 200px;
    width: 12px;
    border-radius: 16px;
    background-color: none;
    top: 50%;
    right:16px;
    transform: translateY(-50%);
}

.flipMeter > span{
    width: 100%;
    display: block;
    transition: all .2s;
    background-color: #fff;
    position: absolute;
    bottom:0%;
    border-radius: 16px;
    height:12px;
    transform: translateY(50%);
}

.phone{
    background-color: #3E3D3D;
    border-radius: 16px;
    width: 128px;
    height:280px;
    transform: rotate(0deg);
    position: absolute;
    top:50%;
    left: 50%;
}

.mainWord{
    text-align: center;
    position: absolute;
    top:50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 70px;
    color: #fff;
}

.startGameButton{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    font-size: 16px;
    padding:11px 21px;
    border-radius: 40px;
    color: #000;
    cursor: pointer;
    border:none;
    transition: all .2s;
}

.startGameButton:hover{
    background-color: #E0E0E0;
    transform:translate(-50%, -50%) scale(1.1);
}

.startGameButton > button:active{
    transform: scale(0.95);
}

.subjectButtons{
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    background-color: #202020;
    border:1px solid #383838;
    border-radius: 30px;
    max-width: calc(100% - 32px); /* Subtracting padding from viewport width */
    padding: 8px;
    position: absolute;
    bottom: 16px;
    left:50%;
    transform: translateX(-50%);
}
.subjectButtons > button, .button{
    white-space: nowrap;
    border-radius: 30px;
    border: 1px solid #363636;
    background: #1B1B1B;
    color:#fff;
    padding: 11px 21px;
    font-weight: 400;
    font-size: 16px;
    transition: .15s all ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap:8px;
    text-decoration: none;
    
}

.subjectButtons > button > i, .button > i{
    font-size: 16px;
    color:#FFA47C;
}

.subjectButtons > button:hover, .button:hover{
    background-color: #1f1f1f;
}

.subjectButtons > button:active, .button:active{
    border-color: rgb(56, 56, 56);
}

.githubButton{
    position: absolute;
    bottom: 16px;
    left:50%;
    transform: translateX(-50%);
}

.topicSubjectButtons{
    position: absolute;
    top:16px;
    right:16px;
    display: flex;
    gap:8px;

}

.topicContainer{
    position: absolute;
    width: 90%;
    max-width: 1000px;
    height: calc(100% - 128px);
    left:50%;
    top:128px;
    transform: translateX(-50%);
}

.subjectTitle{
    width: 100%;
    text-align: center;
    font-size: 36px;
    font-weight: 600;
    background: var(--textGradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.topicsContainer{
    display: flex;
    gap:8px;
    justify-content: center;
    flex-wrap: wrap;
}

.topicsContainer > a{
    border: 1px solid #4e3a27;
    background: #261f194d;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    display: block;
    padding: 24px;
    border-radius: 24px;
    text-decoration: none;
    max-width: 350px;
    min-width: 150px;
}

.topicsContainer > a:hover{
    background-color: #261f197a;
}

.topicsContainer > a:active{
    border-color: #614831;
}

.topicsContainer > a > strong{
    color:#fff;
    font-size: 16px;
    text-decoration: none;
}

.topicsContainer > a > p{
    color:#C5B5A2;
    font-size: 14px;
    text-decoration: none;
}

@media (max-width:500px) {
    .topicSubjectButtons{
        display: none;
    }
}

.gameOverContainer{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 32px;
    border-radius: 16px;
    display: none;
    flex-direction: column;
    gap:16px;
    max-width: 600px;
    width: 90%;
    justify-content: center;
    align-items: center;
}

.gameOverContainer > h1{
    background:var(--textGradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 40px;
}

.stats{
    width:100%;
    display: flex;
    flex-direction: row;
    gap:8px;
    background-color: #202020;
    border: 1px solid #383838;
    padding: 8px;
    box-sizing: border-box;
    border-radius: 28px;
    height:auto;
}

.stats > div{
    border: 1px solid #363636;
    background: #1B1B1B;
    width:100%;
    height:auto;
    padding:16px;
    box-sizing: border-box;
    border-radius: 24px;
}

.stats > div > h2{
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin:16px 0px 0px 0px;
}

.topBar{
    display: flex;
    align-items: center;
    gap:8px;
    color:#ccc;
    font-size: 14px;
    align-items: center;
}