﻿/*--------------------------------------------------------------------------------------------------*/
/***** GLOBAL MELOV16 *****/
*,
html,
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
}

html,
body {
    overflow-x: hidden;
}

:root {
    --clr-primary: #004467;
}

.btn-primary {
    background-color: var(--clr-primary);
    border-color: var(--clr-primary);
}

button:focus,
input:focus {
    outline: unset;
}

input:-webkit-autofill {
    background-color: #fff !important;
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}

p {
    font-size: 16px;
    color: #61717e;
    margin-bottom: 12px;
}

    p:last-child {
        margin-bottom: 0;
    }

/*--------------------------------------------------------------------------------------------------*/
/***** Header *****/
header {
    display: none;
}

/*--------------------------------------------------------------------------------------------------*/
/***** Main Content *****/
.main-content {
    background-color: #fff;
    height: calc(100vh - 36px);
}

.screen-main-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
}

.screen-left {
    position: relative;
    background-image: url(/CMS/site/images/main-bg.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.screen-right {
    padding: 20px;
    position: relative;
}

.screen-right-top {
    max-width: 418px;
    margin: 70px auto 0;
    text-align: center;
}

.logo img {
    /*max-width: 154px;*/
    max-width: 270px;
}

.logo-text {
    font-size: 14px;
    margin: 15px 0 0;
    color: #707070;
}

.screen-right-mid {
    margin: 94px auto 0;
    text-align: center;
    max-width: 365px;
}

.screen-right-bottom {
	margin-top: 20px;
}

.login-title {
    font-size: 22px;
    font-weight: 700;
}

/*--------------------------------------------------------------------------------------------------*/
/***** Footer *****/
.footer-nav {
    display: none;
}

.social_media ul li a {
    width: 40px;
    height: 40px;
    background: #e5e5e5;
    border-radius: 6px;
}

    .social_media ul li a i {
        color: #828282;
    }

    .social_media ul li a:hover {
        background-color: #e5e5e5;
    }

        .social_media ul li a:hover i {
            color: #828282;
        }

.address {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
}

.address-block {
    font-size: 15px;
    color: #61717e;
    margin: 20px;
}

    .address-block a {
        font-size: 15px;
        color: #61717e;
    }

    .address-block i {
        color: var(--clr-primary);
        margin-right: 6px;
    }

.links-continer {
    margin-top: 25px;
    position: absolute;
    width: 100%;
    bottom: 20px;
}

.link-block-text {
    padding: 20px;
}

.link-block a {
    font-size: 12px;
    font-weight: 400;
    color: #61717e;
    text-decoration: none;
}

.links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: row wrap;
}

.link-block {
    margin: 10px 30px;
}

.links-gradient {
    height: 2px;
    width: 100%;
    background: rgb(255, 255, 255);
    background: linear-gradient( to right, rgba(255, 255, 255, 1) 0%, rgba(183, 193, 201, 1) 50%, rgba(255, 255, 255, 1) 100% );
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#ffffff', GradientType=1);
}

.footer_down {
    font-size: 11px;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(231px, 1fr));
    place-items: center;
    grid-gap: 20px;
    text-align: center;
}

.footerright a {
    color: #151b1e;
}

/*--------------------------------------------------------------------------------------------------*/
/***** Login *****/
.LoginBox {
    background-color: transparent;
}

#ctl00_DivUserNotLoggedIn {
    box-shadow: unset;
}

.LoginArea {
    box-shadow: unset;
    position: relative;
    top: unset;
    right: unset;
    border: 0;
    width: 100%;
    margin-top: 34px;
}

.form-block {
    position: relative;
}

    .form-block:not(:last-child) {
        margin-bottom: 20px;
    }

.form-container input {
    border: 1px solid #dadce0;
    width: 100%;
    font-size: 14px;
    color: #64686d !important;
    background-color: transparent;
    padding: 8px 15px;
    position: relative;
    z-index: 1;
    border-radius: 6px;
    height: 60px;
}

    .form-container input.has-value {
        border: 2px solid var(--clr-primary);
    }

    .form-container input:focus {
        box-shadow: unset;
    }

.form-container .form-textbox,
.form-container .form-select {
    position: relative;
    flex-basis: 49%;
    width: 100%;
}

.form-container .form-select {
    color: #b7c1c9;
    font-size: 14px;
}

.form-container input + label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 18px;
    color: #61717e;
    font-size: 12px;
    margin: 0;
    transition: all 300ms ease-out;
}

.form-container input:focus + label,
.form-container input.has-value + label {
    top: 0px;
    font-size: 12px;
    color: #61717e;
    background-color: #fff;
    z-index: 2;
    padding: 0 10px;
    left: 7px;
}

.login-layout .widget-box .widget-main {
    background-color: transparent;
    padding: 0;
}

.light-login .widget-box .toolbar {
    border-top-width: unset;
    padding: 0;
    border-radius: unset;
    text-align: right;
    margin-top: 20px;
}

    .light-login .widget-box .toolbar a {
        color: var(--clr-primary);
        font-size: 12px;
        font-weight: 500;
        text-decoration: none;
    }

.loginButton {
    width: 100%;
    margin-top: 20px;
    cursor: pointer;
    font-size: 17px;
    padding: 7px 10px;
    color: #fff;
    font-weight: 300;
    background-color: var(--clr-primary);
    border: 1px solid var(--clr-primary);
    height: 60px;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .loginButton:hover {
        opacity: 0.7;
        color: #fff;
        text-decoration: none;
    }

.LogedinBtn .fa-power-off:before {
    background-color: var(--clr-primary);
}

.LogedinBtn a:hover {
    color: var(--clr-primary);
}

/*--------------------------------------------------------------------------------------------------*/
/***** Colorbox *****/
.displayBlock {
    display: none;
}

#cboxLoadedContent .displayBlock {
    display: block;
}

#cboxOverlay {
    background: none !important;
}

#cboxMiddleLeft,
#cboxTopLeft,
#cboxTopCenter,
#cboxTopRight,
#cboxMiddleRight,
#cboxBottomRight,
#cboxBottomCenter,
#cboxBottomLeft {
    height: 0 !important;
    width: 0 !important;
    background: none !important;
}

#cboxLoadedContent {
    margin-bottom: 0 !important;
}

#cboxContent {
    background: #f2f2f2 !important;
    padding: 15px;
}

#cboxClose {
    top: 15px !important;
    right: 15px !important;
    background: url(/CMS/site/images/colorbox-close.svg) !important;
    width: 30px !important;
    height: 30px !important;
}

#colorbox {
    box-shadow: 0px 0px 30px 5px rgba(0, 0, 0, 0.3);
}

/*--------------------------------------------------------------------------------------------------*/
/***** Diary *****/
.card-title h3 {
    font-size: 22px;
    font-weight: 700;
}

.Diary .table {
    border-collapse: separate;
    border-spacing: 0 10px;
    margin-bottom: 0;
}

.Diary tr {
    box-shadow: 0 0 20px 2px rgba(0, 0, 0, 0.1);
}

    .Diary tr:nth-of-type(1) {
        box-shadow: unset;
    }

.Diary .table thead th {
    border: unset;
    font-size: 14px;
    color: #61717e;
    padding: 10px 35px;
    vertical-align: middle;
    text-align: center;
}

.Diary .table-striped tbody tr:nth-of-type(odd) {
    box-shadow: 0 0 20px 2px rgba(0, 0, 0, 0.1);
}

.Diary .table td {
    padding: 10px 33px;
    vertical-align: middle;
    border: unset;
    background-color: #fff;
    text-align: center;
    position: relative;
    font-size: 14px;
}

    .Diary .table td:first-child {
        background-color: var(--clr-primary);
        padding: 12px 25px;
    }

    .Diary .table td:nth-child(2) {
        text-align: left;
    }

    .Diary .table td::after {
        content: "";
        position: absolute;
        width: 1px;
        height: 80%;
        background-color: #d1d0d0;
        top: 50%;
        transform: translateY(-50%);
        right: 0;
    }

    .Diary .table td:last-child::after {
        display: none;
    }

.DiaryDate {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 14px;
    font-weight: 100;
    min-width: 110px;
}

.DiaryDateDayNb {
    font-size: 29px;
    font-weight: 300;
    width: 54px;
    height: 54px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #fff;
    border-radius: 10px;
    margin: 6px 0;
}

.DiaryEducObj {
    font-size: 16px;
    font-weight: 600;
    color: #61717e;
    line-height: 20px;
}

.DiaryEducObjTeach {
    display: block;
    margin-top: 10px;
    font-size: 15px;
    font-weight: 100;
    color: #61717e;
}

.DiaryAvailability {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .DiaryAvailability span {
        font-size: 16px;
        margin: 10px 0 0;
        color: #61717e;
    }

.DiaryDateDay,
.DiaryDateMonthYear {
    font-weight: 700;
}

.Diary .btn {
    width: 120px;
    height: 46px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

    .Diary .btn:hover {
        opacity: 0.7;
    }

    .Diary .btn span {
        font-size: 16px;
    }

.Diary .btn-success:not(:disabled):not(.disabled).active {
    background-color: var(--clr-primary);
    border-color: var(--clr-primary);
}

/*--------------------------------------------------------------------------------------------------*/
/***** Media *****/
@media (max-width: 1919px) {
    .main-content,
    .screen-main-container {
        height: initial;
        min-height: 845px;
    }
}

@media (max-width: 1200px) {
    .DivOverFlowX {
        overflow-x: auto;
    }

    .Diary .table {
        padding: 0 20px 20px;
        width: 1200px;
    }
}

@media (max-width: 991px) {
    .screen-main-container {
        grid-template-columns: 1fr;
    }

    .screen-left {
        padding-top: 300px;
    }

    .address-block {
        margin: 7px;
    }

    .links-continer {
        margin-top: 50px;
        position: relative;
        width: 100%;
        bottom: unset;
    }

    .links {
        flex-direction: column;
    }
}

/* ===== ESEMINARIO additions (not in the my.vafeiadakis.gr original above) =====
   ESEMINARIO's CMS/site/static.aspx wraps the H1 and the study-packs area in visible
   .container blocks (MELOCONN's static.aspx hides them). Inside this template's two-column
   grid they would take the first cell and push .screen-left / .screen-right out of place,
   so they are hidden here. This file is loaded only by Basic_MasterPage3. */
.screen-main-container > .container {
    display: none;
}
/* Which part of main-bg.jpg (1920x657) shows in the left half. The box is always narrower than
   the image's 2.9:1 shape, so background-size: cover fits the full height and crops the sides:
   only the first (horizontal) value matters. 0% = left edge, 50% = centre, 100% = right edge.
   67%: the two smiling faces (glasses, curly hair) with the laptop and books between them. */
.screen-left {
    background-position: 67% center;
}
/* Logo about 60% of the login block's width (.screen-right-mid is 365px wide -> ~219px).
   max-width keeps it inside narrower screens. The gate logo (admin/Gates/Photos/1/1.png) is
   192x65, so it is scaled up ~1.14x here; 75% (274px) looked pixelated. A larger PNG or an
   SVG would allow a bigger logo. */
.logo img {
    width: 219px;
    max-width: 100%;
}

/* Login button in the logo's dark blue (#004467) instead of --clr-primary (teal), which is kept
   for the input borders, icons and links. */
.loginButton {
    background-color: #004467;
    border-color: #004467;
}
/* Centre the right column's content vertically. The original anchors it to the top with fixed
   margins (logo 70px, form 94px), leaving the column's spare height (min-height 845px or the
   viewport) empty at the bottom. As a flex column the spare height splits evenly above and
   below; the gaps between logo, form and address stay. In the one-column layout (<= 991px) the
   column is only as tall as its content, so nothing changes there. */
.screen-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.screen-right-top {
    margin-top: 0;
}
/* Spacing in the right column: logo -> title 94px -> 70px, login button -> contact line
   20px -> 40px. */
.screen-right-mid {
    margin-top: 70px;
}

.screen-right-bottom {
    margin-top: 40px;
}
/* Login button hover: the logo's light blue (#1DADE1, the "e" circle) darkened at the same hue
   (196 deg, saturation 77%) to #1890BB: white text contrast 3.66:1, chosen as a balance between
   the logo colour (2.59:1) and WCAG AA for normal text (4.5:1, which #157CA1 would meet). It meets
   the 3:1 level for large text / UI components. Replaces opacity 0.7, which let the white page
   show through and turned #004467 into a greyish teal. */
.loginButton:hover {
    opacity: 1;
    background-color: #1890BB;
    border-color: #1890BB;
}
/* Below 1920px the original fixes the content at min-height 845px, so a window taller than
   845 + 37 (footer) showed the grey page background under the footer. Fill the window instead,
   never less than 845px. (portal.oefe.gr has the same original rule and the same gap.) */
@media (max-width: 1919px) {
    .main-content, .screen-main-container {
        min-height: max(845px, calc(100vh - 37px));
    }
}

/* The footer is 36.5px tall, not the 36px the original subtracts, so the page was 1px taller than
   the window and showed a scrollbar that scrolled a single pixel. 37px, at all widths: here for
   1920px and wider (the original's height rule), above for narrower windows. Kept inside a
   min-width query so it does not undo the original's height: initial below 1920px. */
@media (min-width: 1920px) {
    .main-content {
        height: calc(100vh - 37px);
    }
}