h2 {
    font-size: calc(1rem + 1.5vw);
}

.clearblock {
    padding: 1rem;
}

.thumbnail {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 1rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
    width: 16rem;
}

.thumbnail:hover {
    background-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transform: scale(0.95);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.thumbnail:active {
    transform: scale(0.9);
    transition: transform 0.1s ease, background-color 0.2s ease;
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: white;
    text-align: left;
    font-family: 'Nunito', sans-serif;
    font-size: 2rem;
    padding: 1rem;
    text-shadow: 3px 3px rgb(0,0,0,0.2);
}

.statRow{
    display:flex;
    align-items:center;
    gap: 1rem;
}

.tokenContainer {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    flex-wrap: nowrap;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-main);
    font-size: 2rem;
}

.tokenSubContainer {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background-color: rgba(255,255,255,0.15);
    border-radius: 0.5rem;
    transition: 0.1s ease;
}

.tokenSubContainer:hover {
    background-color: rgba(255,255,255,0.2);
    transition: 0.1s ease;
}

.tokenSubContainer:focus-within {
    background-color: rgba(255,255,255,0.2);
}

#tokenAmount {
    width: 4rem;
    background: transparent;
    border: none;

    color: white;
    font-size: 2rem;
    font-family: 'Nunito', sans-serif;

    text-align: right;
}

/* Remove focus outline */
#tokenAmount:focus {
    outline: none;
    box-shadow: none;
}

/* Remove arrows */
#tokenAmount::-webkit-outer-spin-button,
#tokenAmount::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#tokenAmount::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.tokenImg {
    width: 2.5rem;
    height: 2.5rem;
    filter: drop-shadow(4px 4px rgba(0,0,0,0.2));
}

.modeSwitch{
    position: relative;
    display: flex;
    height: 4rem;

    background: rgba(255,255,255,0.2);
    border-radius: 1rem;

    overflow: hidden;
    font-family:'Nunito', sans-serif;
    font-size: calc(1rem + 1vw);
    transition: 0.1s ease;
}

.modeSwitch:hover {
    background: rgba(255,255,255,0.25);
    transition: 0.1s ease;
}

.modeOption{
    flex:1;
    display:flex;
    align-items:center;
    justify-content:center;
    padding: 1rem 2rem;

    color:white;
    cursor:pointer;

    z-index:2;
    user-select:none;
}

.modeHighlight{
    position:absolute;

    width:50%;
    height:100%;

    left:0;

    background:white;
    border-radius:1rem;

    transition:0.25s ease;
}

.modeOption.active{
    color:#9a49aa;
}

.gradeSquare {
    width: 2.5rem;
    height: 2rem;
    border-radius: 0.5rem;
    --bg: rgb(30,146,255);
    background: var(--bg);
    box-shadow:
    0 8px color-mix(in srgb, var(--bg) 80%, black),
    0 12px rgba(0, 0, 0, 0.1);
    position: relative;
    top: -2px;
}

.modal{
    position:fixed;
    inset:0;

    background:rgba(0,0,0,0.5);

    display:none;
    align-items:center;
    justify-content:center;

    z-index:1000;
}

.modalContent{
    width: 50rem;
    max-height:80vh;

    background:#9a49aa;
    border-radius: 1rem;
    padding: 2rem;

    display:flex;
    flex-direction:column;
    gap: 2rem;

    box-shadow:0 10px 30px rgba(0,0,0,0.4);
    overflow-y:auto;
}

.strategyModal {
    width: 1200px;
    max-height: 80vh;
    text-align: center;
    align-items: center;
    color: white;
    font-family: 'Nunito', sans-serif;
    font-size: 1.5rem;
    gap: 0px;
}

.strategyModal h2 {
    font-size: 2.5rem;
    padding-bottom: 1rem;
}

.strategyContent {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.strategy {
    flex: 1;
    background-color: rgba(255,255,255,0.1);
    padding: 1rem;
    margin: 0px;
    border-radius: 1rem;
    transition: 0.1s ease;
}

.strategy:hover {
    background-color: rgba(255,255,255,0.2);
    transition: 0.1s ease;
}

.modalTitle{
    font-family:'Titan One';
    font-size: 3rem;
    color:white;
    text-align:center;
}

#gamemodeGrid{
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    gap:15px;
}

.modalThumb{
    width:100%;
    background:rgba(255,255,255,0.15);
    padding: 1rem;
    border-radius: 1rem;
    transition:0.2s;
}

.modalThumb:hover{
    background:rgba(255,255,255,0.25);
    transform:scale(0.95);
    cursor:pointer;
}

.maxAlert {
    color: rgba(255,255,255,0.6);
    font-size: 1.5rem;
    font-family: 'Nunito', sans-serif;
    align-items: center;
    justify-content: center;
    border: 0;
    margin: 0;
    padding: 0;
}

.strategyButton {
    background: rgba(255,255,255,0.15);
    color: white;
    border: none;
    border-radius: 1rem;
    margin-top: auto;
    padding: 0.8rem 1rem;
    font-size: 1.5rem;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    transition: 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.strategyButton:hover {
    background: rgba(255,255,255,0.25);
    transition: 0.2s ease;
    transform: scale(0.95);
}

.strategyButton:active {
    transform: scale(0.9);
    transition: 0.1s ease;
}

.quickPlayButton {
    background: rgba(255,255,255,0.15);
    color: white;
    border: none;
    border-radius: 1rem;
    padding: 0.8rem 1rem;
    font-size: 1.5rem;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    transition: 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.quickPlayButton:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(0.95);
}

.quickPlayButton:active {
    transform: scale(0.9);
}

.resultsSubContainer:last-child {
    flex: 1;
}

.mainContent {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    width: 100%;
}

.selectionContainer {
    flex: 1;
}

.resultsContainer {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.resultsSubContainer:last-child {
    flex: 1;
}

@media only screen and (max-width: 1200px) {
    .mainContent {
        flex-direction: column;
    }
    .modeSwitch {
        width: 100%;
    }
    .strategyContent {
        flex-direction: column;
        max-height: 75vh;
    }
}