@import "fonts.css";
@import "theme.light.css";

body {
    margin: 0;
    padding: 0;
    font-family: "Parisine", sans-serif;
    font-size: 16px;
    background-color: var(--background-bg);
    /* cursor: none; */
}

.screen {
    width: 100vw;
    height: 100vh;
    cursor: none;
    overflow: hidden;
}

.screen-header {
    width: 100vw;
    height: 117px;
    border-bottom: solid 7px var(--primary-color);
    background: var(--header-bg);
    position: relative;
}

.screen-header .screen-header-station {
    position: absolute;
    top: 18px;
    left: 37px;
    height: 81px;
    background: var(--station-bg);
    color: var(--station-color);
    font-size: 52px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 30px;
}

.screen-header .screen-header-creator {
    position: absolute;
    top: 17px;
    right: 276px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.screen-header .screen-header-creator p {
    width: 248px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.screen-header .screen-header-creator img {
    height: 89px;
}

.screen-header .screen-header-clock {
    position: absolute;
    top: 24px;
    right: 40px;
    font-size: 52px;
    font-weight: 700;
    text-align: center;
    width: 174px;
    height: 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--secondary-bg);
    color: var(--secondary-color);
    border-radius: 10px;
}

.screen-content {
    width: 100vw;
    height: calc(100vh - 124px);
    display: flex;
    flex-direction: row;
}

.screen-content-left {
    width: calc(60vw - 10px);
    margin-right: 10px;
}

.screen-content-line {
    width: 100%;
}

.screen-content-line-direction-title {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    margin: 0 20px;
}

.screen-content-line-direction-icon-type img {
    width: 90px;
    margin: 5px;
    filter: var(--line-filter);
}

.screen-content-line-direction-icon-name img {
    width: 90px;
    margin: 5px;
}

.screen-content-line-directions {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    margin: 28px 0;
    border: var(--primary-border);
    background: var(--primary-bg);
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    box-shadow: var(--primary-shadow);
}

.screen-content-line-direction {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: calc(100% - 20px);
    padding-right: 20px;
    height: 128px;
}

.screen-content-line-direction:not(:last-child) {
    border-bottom: var(--primary-separator);
}

.screen-content-line-direction-name {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: var(--primary-color);
    flex: 1;
}

.screen-content-line-direction-name .direction {
    font-size: 40px;
    font-weight: 700;
}

.screen-content-line-direction-name .stop {
    font-size: 24px;
    font-weight: 600;
}

.screen-content-line-direction-name .stop .lastDeparture {
    background: var(--secondary-bg);
    color: var(--secondary-color);
    padding: 2px 10px;
    border-radius: 6px;
    font-weight: 700;

}

.screen-content-line-direction-departures {
    display: -webkit-box;
    display: -ms-flexbox;
    width: 204px;
    overflow: hidden;
}

.screen-content-line-direction-long-departure {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 192px;
    height: 65px;
    margin: 0 6px;
    background: var(--secondary-bg);
    color: var(--secondary-color);
    border-radius: 12px;
}

.screen-content-line-direction-departure {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 90px;
    height: 65px;
    margin: 0 6px;
    background: var(--secondary-bg);
    color: var(--secondary-color);
    border-radius: 12px;
}

.screen-content-line-direction-departure.departing {
    -webkit-animation: blinking-departure 3s infinite;
    -o-animation: blinking-departure 3s infinite;
    animation: blinking-departure 3s infinite;
}

.screen-content-line-direction-departure.changing {
    -webkit-animation: blinking-departure 2s linear;
    -o-animation: blinking-departure 2s linear;
    animation: blinking-departure 2s linear;
}

@keyframes blinking-departure {
    0% {
        color: var(--secondary-color);
    }
    50% {
        color: var(--secondary-dark-color);
    }
    100% {
        color: var(--secondary-color);
    }
}

.screen-content-line-direction-departure.departed {
    -webkit-animation: departed-animation 1s linear;
    -o-animation: departed-animation 1s linear;
    animation: departed-animation 1s linear;
    transform: translateX(-100%);
}

@keyframes departed-animation {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.screen-content-line-direction-status {
    height: 65px;
    margin: 0 10px 0 20px;
}

.screen-content-line-direction-status img {
    width: 65px;
    height: 65px;
}

.screen-content-right {
    width: calc(40vw - 10px);
    margin-left: 10px;
}

.screen-content-situations {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    margin: 28px 0;
    border: var(--primary-border);
    border-right: none;
    background: var(--primary-bg);
    border-radius: 12px 0 0 12px;
    box-shadow: var(--primary-shadow);
    height: 376px;
    transition: transform 0.5s linear;
}

.screen-content-situations-header {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 2px;
    background: var(--station-bg);
    width: 100%;
    height: 72px;
    border-radius: 12px 0 0 0;
}

.screen-content-situations-header-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--station-color);
    margin-left: 30px;
}

.screen-content-situation-group {
    display: flex;
    flex-direction: row;
    margin: 10px 20px;
    flex-wrap: wrap;
}

.screen-content-situation {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 66px;
    height: 66px;
    margin: 5px;
    border: solid 4px #000;
    border-radius: 7px;
}

.screen-content-situation.situation-normal,
.screen-content-situation.situation-low {
    width: 66px;
    height: 66px;
    border: solid 4px #028152;
    border-radius: 7px;
}

.screen-content-situation.situation-medium {
    width: 58px;
    height: 58px;
    border: solid 8px #FF8C03;
    border-radius: 11px;
}

.screen-content-situation.situation-high {
    width: 58px;
    height: 58px;
    border: solid 8px #E32925;
    border-radius: 11px;
}

.screen-content-situation img {
    width: 46px;
    height: 46px;
}

.screen-content-detailed-situation {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    margin: 28px 0;
    border: var(--primary-border);
    border-right: none;
    background: var(--primary-bg);
    border-radius: 12px 0 0 12px;
    box-shadow: var(--primary-shadow);
    height: 481px;
}

.screen-content-detailed-situation-header {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 10px;
    background: var(--station-bg);
    width: 100%;
    height: 72px;
    border-radius: 12px 0 0 0;
}

.screen-content-detailed-situation-header-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--station-color);
    margin-left: 30px;
}

.screen-content-detailed-situation-lines {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-end;
    width: 100%;
}

.screen-content-detailed-situation-line {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 7px 15px;
    border-radius: 5px 5px 0 0;
    background: var(--primary-bg);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}
.screen-content-detailed-situation-line.active {
    padding: 10px 20px;
    z-index: 1;
}

.screen-content-detailed-situation-line img {
    height: 30px;
}
.screen-content-detailed-situation-line.active img {
    height: 40px;
}

.screen-content-detailed-situation-line .screen-content-detailed-situation-line-icon-type img {
    filter: var(--line-filter);
}

.screen-content-detailed-situation-message {
    flex: 1;
    font-size: 28px;
    font-weight: normal;
    margin: 0;
    padding: 20px 20px 0;
    color: var(--default-color);
    background: var(--primary-bg);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);
    z-index: 1;
    border-bottom-left-radius: 12px;
}

/* CONFIGURATION INTERFACE */

.screen-pending {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--primary-bg);
    z-index: 9999;
}

.screen-pending-logo {
    width: 300px;
    margin-bottom: 50px;
}

.screen-pending-logo img {
    width: 300px;
}

.screen-pending-code {
    font-size: 100px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 50px;
}

.screen-pending-subtext {
    font-size: 40px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 50px;
}

/* STARTING INTERFACE */

.screen-starting {
    background: var(--primary-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
}

.screen-starting img {
    height: 50vh;
    -webkit-animation: image-blinking 2s infinite;
    -o-animation: image-blinking 2s infinite;
    animation: image-blinking 2s infinite;
}

@keyframes image-blinking {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* ERROR INTERFACE */

.screen-error {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
}

.screen-error-logo {
    height: 50vh;
    margin-bottom: 50px;
}

.screen-error-logo img {
    height: 50vh;
}

.screen-error-maintext {
    font-size: 100px;
    font-weight: 700;
    color: #E32925;
    margin-bottom: 50px;
}

.screen-error-subtext {
    font-size: 40px;
    font-weight: 700;
    color: #E32925;
    margin-bottom: 50px;
}
