/* DIGICODE (car_code.js) */
.digicode
{
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(984px, 100vw, calc(100vh * 984 / 584));
    width: min(984px, 100vw, calc(100dvh * 984 / 584));
    aspect-ratio: 984 / 584;
    display: flex;
    justify-content: center;
    align-items: center;
    background-position: center;
    background-size: cover;
    border-radius: 15%;
    z-index: 1;
}
.digicode_box
{
    width: min(80px, 8vw);
    height: min(80px, 8vw);
    margin-right: 8px;
    background-color: #000;
    border-bottom: red 3px solid;
    color: #f00;
    text-align: center;
    font-size: min(4em, 6vw);
    line-height: min(80px, 8vw);
    user-select: none;
}
.digicode.unlocked .digicode_box{ visibility: hidden; }

/* SCREEN AND CHOICES (elevator_screen.js, floors_menu.js): over the place image */
.device_screen
{
    position: absolute;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding-right: 1%;
    background-size: 100% 100%;
    color: #fff;
    text-align: right;
    font-size: clamp(10px, 1.5vw, 18px);
    font-weight: bold;
}
.device_choice{ width: 65%; }

/* COMPUTER (computer.js, text_editor.js, mailbox.js) */
.computer_background
{
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-position: center;
    background-color: #000;
    z-index: 1;
}
.computer_exit
{
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 60px;
}
.computer_password
{
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: min(350px, 90vw);
    padding: 10px;
    border-radius: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #f00;
}
.computer_pass
{
    width: 70%;
    height: 20px;
    margin-bottom: 10px;
    text-align: center;
}
.computer_enter{ width: 40%; }
.computer_menubar
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    background-color: #008;
    color: #fff;
}
.computer_file
{
    margin: 20px;
    cursor: pointer;
}

.window
{
    position: fixed;
    overflow: auto;
    border: 2px ridge #00f;
    border-radius: 5px;
    background-color: rgb(180, 185, 248);
}
.bar
{
    display: flex;
    justify-content: space-around;
    width: 100%;
    height: 20px;
    border-bottom: 2px ridge #00f;
    background-color: #008;
}
.bar_title
{
    width: 50%;
    margin-left: 5px;
    color: rgb(180, 185, 248);
    text-align: left;
}
.bar_close, .mailbox_new_close
{
    width: 50%;
    margin-right: 10px;
    color: rgb(180, 185, 248);
    font-family: 'Courier New', Courier, monospace;
    text-align: right;
}
.text_file
{
    left: 50px;
    top: 50px;
    width: 60%;
    height: 85%;
    z-index: 2;
}
.text_file_body p{ margin-left: 15px; }

.mailbox
{
    left: 2.5vw;
    top: 2.5vh;
    width: 95vw;
    height: 95vh;
    z-index: 2;
}
.mailbox_tools
{
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 2px solid rgba(0, 0, 0, 0.4);
}
.mailbox_tools img{ margin: 10px; }
.mailbox_list
{
    padding: 15px 0 0 15px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.4);
    text-align: center;
}
.mailbox_list td{ padding: 15px; }
.mailbox_head{ font-weight: bold; }
.mailbox_reading
{
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.2);
}
.mailbox_new
{
    left: 23vw;
    top: 23vh;
    width: 54vw;
    height: 54vh;
    z-index: 3;
}
.mailbox_send_row{ padding: 10px; text-align: center; }
.mailbox_field{ padding: 10px; }
.mailbox_field input{ display: block; width: 80%; }
.mailbox_field textarea{ width: 100%; }

/* SMARTPHONE (smartphone.js): 324×675, in the object view */
.smartphone
{
    position: absolute;
    left: 50%;
    top: 50%;
    width: 324px;
    height: 675px;
    transform: translate(-50%, -50%) scale(var(--fit, 1));
}
.smartphone_layer
{
    position: absolute;
    inset: 0;
    background-position: center;
    background-repeat: no-repeat;
}
.smartphone_date
{
    position: absolute;
    left: calc(50% - 126px);
    top: calc(50% - 25px);
    width: 252px;
    height: 50px;
    padding-top: 10px;
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    text-align: center;
}
.smartphone_app{ position: absolute; }
.smartphone_gps-btn{ top: calc(50% - 32px); left: calc(50% - 32px); }
.smartphone_call-btn{ bottom: 100px; left: 31px; }
.smartphone_sms-btn{ bottom: 100px; left: 98px; }
.smartphone_mail-btn{ bottom: 100px; left: 165px; }
.smartphone_picture-btn{ bottom: 100px; left: 232px; }

.smartphone_contacts
{
    position: absolute;
    top: 125px;
    left: 28px;
    box-sizing: border-box;
    width: 271px;
    height: 180px;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-weight: bold;
    text-align: center;
}
.smartphone_contacts > div{ margin-bottom: 5px; cursor: pointer; }
.smartphone_typing
{
    position: absolute;
    top: 305px;
    left: 28px;
    box-sizing: border-box;
    width: 271px;
    height: 68px;
    padding-top: 5px;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.6);
    font-size: 30px;
    text-align: center;
}
.smartphone_keyboard
{
    position: absolute;
    bottom: 95px;
    left: 28px;
    width: 271px;
}
.smartphone_keyboard td
{
    width: 64px;
    height: 64px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 30px;
    text-align: center;
    cursor: pointer;
}
.smartphone .sub{ font-size: 15px; }

.map_point
{
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    border-radius: 100%;
    background-color: rgba(0, 0, 139, 0.8);
    cursor: pointer;
}
.map_name
{
    position: absolute;
    top: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    padding: 1px 6px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.85);
    color: #00008b;
    font: bold 12px/1.3 Arial, sans-serif;
    white-space: nowrap;
    pointer-events: none;
}
.map_point.gps_home{ left: 220px; bottom: 160px; }
.map_point.gps_savoieville{ left: 120px; bottom: 234px; }
.map_point.gps_tchequeville{ left: 56px; bottom: 360px; }
.map_point.where_to_go{ right: 30px; top: 130px; }
.gps_form
{
    position: absolute;
    left: 40px;
    top: calc(55% - 170px);
    width: 244px;
    height: 340px;
    border-radius: 15px;
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-weight: bold;
    text-align: center;
}
.gps_form input[type="number"]{ width: 50px; }
.gps_form input[type="text"]{ width: 80px; }

.smartphone_home
{
    position: absolute;
    left: calc(50% - 30px);
    bottom: 20px;
    width: 60px;
    height: 61px;
    border-radius: 100%;
}
