/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.no-access:hover {
    cursor: not-allowed !important;
}

/* ------------------------------------------------------ Container */
.container {
    display: grid;
    grid-template-columns: 70% 30%;
    height: 100vh;
}

/* Left Column: Learning Lessons */
.left-column {
    background: linear-gradient(to right, #6DD5FA, #2980B9);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    
    position: fixed;
    top:0;
    bottom:0;

    width: 59%;
}

.left-column img {
    height: 80px;
    border-radius: 8px;
    margin-bottom: 20px;
    margin-top: -30px;
}

.left-column h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.lesson-division {
    display: block;
    width: 100%;
    text-align: center;
}

.lesson-btn {
    background-color: #FFC107;
    border: none;
    color: #fff;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    margin: 10px;

    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    width: 170px;
    text-align: center;
    
}

.lesson-btn:hover {
    transform: scale(1.1);
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
}

.vocab-btn {
    background-color: #f39c12;
}

.conjugations-btn {
    background-color: #229954;
}

/* ------------------------------ Right Column: User Controls + Analytics */
.right-column {
    background-color: #f0f4f8;
    color: #333;
    padding: 30px;
    display: flex;
    flex-direction: column;

    position: fixed;
    right:0;
    top:0;
    bottom:0;

    overflow-y: scroll;
    width: 25%;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.right-column::-webkit-scrollbar {
    display: none;
}

.srs-btn {
    background-color: #333333;
    display: block;
    margin-bottom: 15px;
    text-align: center;
    color: #f5b041;
    padding: 10px 0px;
    border-radius: 10px;
    text-decoration: none;
    width: 100%;
}

.srs-btn:hover {
    cursor: pointer;
    background-color: black;
    transition: 0.2s;
}

.srs-btn i {
    padding: 0px;
    margin: 0px;
    display: inline-block;
    vertical-align: middle;
    margin-top: -3px;
}

.profile-section {
    text-align: center;
    margin-bottom: 20px;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 3px solid #f0b27a;
    margin: 0 auto;
    margin-bottom: 10px;
    background-color: lightgrey;
}

.username {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    font-weight: 900;
    padding-left: 5px;
    margin-top: 10px;
}

.stats-section {
    margin: 0 auto;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    padding: 20px;
    width: 100%;
    max-width: 300px;
    text-align: left;
    margin-bottom: 15px;
    padding-bottom: 30px;
    padding-top: 15px;
}

.stats-section p {
    margin-bottom: 5px;
}

.stats-section h2 {
    margin-bottom: 25px;
    font-size: 25px;
    text-align: left;
}

.stats-section a {
    display: block;
    text-decoration: none;
    color: black;
    margin-bottom: 2px;
    background-color: #eaeded;
    border-radius: 8px;
    padding: 8px 15px;
    font-weight: 500;
}

.stats-section a:hover {
    background-color: #ccd1d1;
    transition: 0.2s;
}

.stats-section a img {
    height: 15px;
    margin-right: 5px;
    border-radius: 2px;
    vertical-align: middle;
    margin-top: -4px;
}

.streak {
    color: #e67e22;
    font-weight: bold;
}

.stats {
    color: #2980B9;
    font-weight: bold;
}

.stat-divider {
    border-bottom: 1px solid lightgrey;
    margin-bottom: 20px;
    margin-top: 20px;
}

.stat-cefr-left {
    display: inline-block;
    width: 38%;
    vertical-align: top;
}

.stat-cefr-left span {
    background-color: #cacfd2;
    color: black;
    font-size: 15px;
    padding: 9px;
    border-radius: 8px;
    font-weight: bold;
}

.stat-cef-right {
    display: inline-block;
    width: 58%;
    vertical-align: top;
}

.stat-cefr-horizontal-line {
    margin-top: 15px;
    margin-bottom: 15px;
    border-left: 1px solid lightgrey;
    height: 10px;
    margin-left: 18px;
    clear: both;
}

/* General Styles for All Screen Sizes */
.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Mobile Styles */
@media only screen and (max-width: 600px) {
    .container {
        display: flex;
        flex-direction: column;
    }

    .left-column {
        width: 100%;
        position: relative;
        text-align: center;
        padding-top: 8vh;
        padding-bottom: 8vh;
    }

    .right-column {
        width: 100%;
        position: relative;
        overflow: unset;
        margin-top: 0px;
        padding-top: 30px;
    }

    .left-column img {
        margin-top: 5px;
    }

    .username {
        margin: 0 auto;
        margin-top: 10px;
        text-align: center;
        padding-left: 0px;
    }

    .srs-btn {
        width: 80%;
        margin: 0 auto;
        margin-bottom: 20px;
        font-size: 15px;
    }

    .lesson-division {
        padding-bottom: 8px;
    }

    .lesson-btn {
        width: 45%;
        margin: 10px auto;
        margin-right: 1%;
        margin-left: 1%;
        font-size: 1.1rem;
    }

    .stat-cefr-left span {
        font-size: 14px;
    }
}

/* Tablet Styles */
@media only screen and (min-width: 600px) and (max-width: 1024px) {
    .container {
        grid-template-columns: 60% 40%;
    }

    .left-column h1 {
        font-size: 2rem;
        padding-top: 8vh;
    }

    .conjugations-btn {
        margin-bottom: 8vh;
    }

    .lesson-btn {
        padding: 12px 24px;
        font-size: 1.1rem;
    }

    .left-column {
        width: 100%;
        position: relative;
        text-align: center;
        padding-top: 8vh;
        padding-bottom: 8vh;
    }

    .right-column {
        width: 100%;
        position: relative;
        overflow: unset;
        margin-top: 0px;
        padding-top: 30px;
    }

    

    .left-column img {
        margin-bottom: -40px;
        margin-top: 5vh;
    }

    .username {
        margin: 0 auto;
        margin-top: 10px;
        text-align: center;
        padding-left: 0px;
    }

    .srs-btn {
        width: 42%;
        margin: 0 auto;
        margin-bottom: 20px;
    }

    .lesson-division a {
        margin-bottom: 0px !important;
        
    }

    .lesson-division {
        padding-bottom: 20px;
    }
}

/* Desktop Styles */
@media only screen and (min-width: 1024px) {
    .container {
        display: grid;
        grid-template-columns: 70% 30%;
    }

    .left-column h1 {
        font-size: 2.5rem;
    }

    .lesson-btn {
        padding: 15px 30px;
        font-size: 1.2rem;
    }

    .right-column {
        padding: 30px;
    }
}

/* Laptop SMALL MODIFY -------------------------------------------------- */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .container {
        display: grid;
        grid-template-columns: 55% 45% !important;
    }

    .srs-btn {
        width: 100% !important;
    }

    .lesson-division a {
        margin-bottom: 0px !important;
        
    }

    .lesson-division {
        padding-bottom: 20px;
    }
}

/* 4K Screen Styles */
@media only screen and (min-width: 2560px) {
    .left-column h1 {
        font-size: 3.5rem;
    }

    .lesson-btn {
        padding: 20px 40px;
        font-size: 1.5rem;
        width: 20%;
    }

    .stats-section h2 {
        font-size: 2.5rem;
    }

    .stats-section {
        max-width: 400px;
    }

    .srs-btn {
        width: 60%;
        margin: 0 auto;
        margin-bottom: 20px;
    }

    .left-column {
        width: 72%;
    }
}
