.wrapper {
    min-height: 100%;
}

.main {
    width: 70em;
    margin: 0 auto;
    position: sticky;
    padding: 0;
    padding-top: 4.5em;
}

header {
    text-align: center;
}

.sidebar-left {
    width: 15em;
    float: left;
    text-align: center;
    position: relative;
}

.sidebar-right {
    width: 15em;
    float: right;
    text-align: center;
    position: relative;
}

.lessons, .courses {
    float: left;
    padding-left: 5em;
    width: 35em;
}

.photo {
    width: 9em;
    height: 9em;
    border-radius: 0.5em;
    /*box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);*/
}

.lesson {
    margin-bottom: 1em;
    border-left: 3px solid #646464;
    padding-left: 0.5em;
}

.lesson_date {
    display: inline-block;
    margin-right: 1em;
}

.lesson_topic {
    display: inline-block;
    font-weight: bold;
    margin-bottom: 0.5em;
}

.contest_name {
    width: 15em;
    font-weight: bold;
    display: inline-block;
}

.contest_link {
    margin-right: 1em;
    display: inline-block;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0
}

a {
    color: #2a6478;
    text-decoration: none;
    transition: 300ms;
    border-bottom: 1px solid transparent;
}

a:hover {
    border-bottom: 1px solid #2a6478;
}

.course {
    margin-bottom: 1em;
    border-left: 3px solid #646464;
    padding-left: 0.5em;
    font-size: 1.5em;
    font-weight: bold;
}


.header {
    background-color: #646464;
    color: #FFF;
    padding: 0.8em;
    padding-left: 1em;
    padding-right: 1em;
    display: flex;
    justify-content: space-between;
    vertical-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
}

.header-user {
    font-size: large;
}

.btn {
    background-color: white;
    color: #646464;
    font-weight: 600;
    padding: 0.4rem 2.5rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    font-size: medium;
}

.btn-dark {
    width: 80%;
}

.btn:hover {
    background-color: #e9e9ec;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.login-container {
    /*background-color: #f3f4f6;*/
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    position: relative;

    /*width: 100%;*/
    width: auto;

    /*max-width: 24em;*/

    background-color: white;
    border-radius: 1em;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

.login-form {
    width: 24em;
    padding: 1.5em;
}

.login-container h2 {
    font-size: 1.5em;
    font-weight: 700;
    text-align: center;
    color: #424242;
}

.lesson a:hover {
    cursor: pointer;
}


.video-container h2 {
    padding: 0.5em;
    margin: 0;
}

.login-form h2 {
    margin-bottom: 1.5em;
}

.login-container label {
    display: block;
    margin-bottom: 0.25em;
    color: #757575;
    font-size: 0.95em;
}

.login-container input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.5em 1em;
    border: 1px solid #d1d5db;
    border-radius: 0.5em;
    font-size: 1em;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-container input:focus {
    outline: none;
    border-color: #FFF9C4;
    box-shadow: 0 0 0 2px #FFF59D;
}


.login-container input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #FFF9C4 inset;
}


.form-group {
    margin-bottom: 1em;
}

.error-box {
    margin-bottom: 1em;
    font-size: 0.875em;
    color: #dc2626;
    background-color: #fee2e2;
    border-radius: 0.5em;
    padding: 0.5em 1em;
}

.login-container button {
    margin-bottom: 2em;

    width: 100%;
    background-color: #ffdd2d;
    color: #646464;
    font-weight: 600;
    font-size: 1em;
    padding: 0.5em 0;
    border: none;
    border-radius: 0.5em;
    cursor: pointer;
    transition: background-color 0.2s ease;
}


.login-container button:active {
    transform: scale(0.98);
}

.form-footer a:hover {
    color: #1d4ed8;
    /*text-decoration: underline;*/
    /*border-bottom: 0;*/
}

.form-footer {
    /*display: grid;*/
    display: flex;
    /*grid-template-columns: 1fr auto 1fr;*/
    align-items: center;
    column-gap: 14px;
    justify-content: center;
}


.form-footer a:first-child {
    justify-self: end;
}


.form-footer .dot {
    justify-self: center;
    color: #555;
    font-size: 18px;
    line-height: 1;
}


.form-footer a:last-child {
    justify-self: start;
}

.form-footer a {
    text-decoration: none;
    font-size: 18px;
    color: #646464;
    font-weight: 500;
    /*margin: 0 0.5em;*/
    transition: color 0.2s, text-decoration 0.2s;
}

.close-btn {
    position: absolute;
    top: 6px;
    right: 14px;
    cursor: pointer;
    font-size: 24px;
    color: #666;
}

.light-button {
    background-color: #ffdd2d;
    color: #646464;
    font-weight: 600;
    font-size: 1em;
    padding: 0.5em 0;
    border: none;
    border-radius: 0.5em;
    cursor: pointer;
    transition: background-color 0.2s ease;
    /*box-shadow:  0 5px 5px rgba(0, 0, 0, 0.04);*/
}

.light-button:hover {
    background-color: #FFEE58;
}

button:active {
    transform: scale(0.99);
}

.links a {
    font-size: large;

    display: inline-block;
    margin-bottom: 3px; /* TODO: replace with em? */
    /*display: block;*/
    /*text-align: left;*/
}
