﻿@charset "UTF-8";
/*
CSS Template:

element {
	position
	background
	border: px;
	width: %;
	height: rem;
	margin
	padding
	text color, font size
}
*/

/* SUPER GLOBAL */
:root {
  --main-color: #13a833;
  --second-main-color: #14B838;
}

 {
  /* original color */
  --main-color-original: #4fc6f1;
  --second-main-color-original: #73d1f5;
  --button-hover-original: #31b2e1;
  --lighter-main-color-orginal: #58cced;
  /*================*/
  /* Dark Alice color */
  --chosen-dark-alice: #1287a8;
  --chosen-secondary-dark-alice: #2b9ebe;
  --chosen-button-hover: #0b637b;
  /*================*/
}

html,
body {
  min-width: 1024px;
  min-height: 657px;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-size: 16px;
}

* {
  box-sizing: border-box;
  font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ",
    Meiryo, "ＭＳ Ｐゴシック", sans-serif;
}

/* Body Container */
.body-container {
  position: relative;
  display: block;
  height: 87%;
  padding: 1.2rem 0;
  margin: 0 1.2rem;
}

.body-container > * {
  display: block;
}

/* MENU and NAVIGATION BAR */
.header {
  padding-bottom: 0 !important;
  flex-direction: column;
}

.hover-menu {
  position: relative;
}

.hover-menu:hover .menu-content {
  display: block;
}

.navbar-text {
  padding-right: 0.5rem;
}

.screen-name {
  width: 100%;
  height: 40px;
  padding: 0.5rem 1.2rem;
  color: white;
}

.user-icon {
  font-size: 3rem !important;
  cursor: pointer;
}

.menu-content {
  display: none;
  position: absolute;
  top: 85%;
  right: 10%;
  background-color: #f9f9f9;
  min-width: 15rem;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  font-size: 1rem;
}

.hover-menu-item:active {
  background-color:#e9ecef !important;
}

/* TEXT */
span {
  position: relative;
  top: 0.03rem;
  font-size: 1rem;
}

span.select2 {
  top: 0;
}

p {
  margin: 0;
}

/* 29-10 standard select-input-button cluster 
use for all combination of horizontal label and select, input and button */
.input-cluster {
  position: relative;
  width: 100%;
  padding: 1rem;
  padding-right: 11rem;
}

.input-cluster .container {
  display: flex;
}

.input-cluster .container > * {
  display: flex;
  flex: 0 0 auto;
  margin-right: 3%;
}

.input-cluster label,
.input-cluster input,
.input-cluster select {
  font-size: 0.95rem;
  height: 1.8rem;
}

.input-cluster label {
  display: flex;
  flex: 0 0 auto;
  width: auto;
  min-width: fit-content;
  margin-right: 0.5rem;
  align-items: center;
}

.input-cluster input[type="text"],
.input-cluster select {
  flex: 0 0 9rem;
  width: 9rem;
  max-width: 9rem;
}

/* Pop up */
.area-input button {
  height: 2.5rem;
}

/* 0201 "disabled" attribute */
img[disabled],
button:disabled img {
  opacity: 0.2;
}

/* label, p and span use different selector [disabled] */
p[disabled],
/* input, select, textarea, button use another selector :disabled */
input:disabled,
select:disabled,
textarea:disabled,
button:disabled,
button:disabled:hover {
  background-color: rgb(242, 242, 242);
  color: #d9d9d9;
  user-select: none;
  pointer-events: none;
}

select[disabled]::-ms-value {
  /* IE support */
  color: #d9d9d9;
}

span[disabled],
label[disabled] {
  color: #d9d9d9;
}

button:disabled:hover,
button:disabled span {
  cursor: default;
}

/* standard non/いいえ .input-cluster select-input-button */
input,
select,
textarea {
  border: 1px solid #dcdcdc;
  width: 100%;
  padding-left: 0.625rem;
  font-size: 1rem;
}

select {
  border-radius: 5px;
  padding: 0;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 4px 2px #a6c8ff;
}

input {
  border-radius: 5px;
  /* Friendly reminder: 
    Firefox has a bug that input cannot shrink when place inside flex.
    Thus, it require us to explicitly declare min-width = 0
    Also, because we want default min-width is 0 and to be overriden with specific rules,
    min-width = 0 is applied for all browser.
    */
  min-width: 0;
}

input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  vertical-align: middle;
}

textarea {
  resize: none;
  overflow-y: auto;
}

select {
  /* Allow NO padding, since it doesnt work well with ie and edge.
    Also, its a very bad way to do anything with the text inside.
    Only padding-left is allowed. */
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-right: 0 !important;
}

/* BUTTON */
button {
  width: auto;
  min-width: 7rem;
  padding: 0; /* for firefox */
}

button::-moz-focus-inner {
  border: 0;
}

/* IE make img inside button jump when the button is click, we dont let that happen. */
button:active img {
  position: relative;
}

/* IMG */
img[src$=".svg"] {
  width: 100%;
}

/* COMMON CLASS */
.err {
  text-align: center;
  color: red;
  font-weight: bold;
}

.success {
  text-align: center;
  margin-bottom: 1.5rem;
  color: blue;
  font-weight: bold;
}

#spinner {
  width: 5rem;
  height: 5rem;
}

/* 1366x768 and 1280x1024 and 1024x768 */
@media screen and (max-width: 1370px) {
  /* 29-10 standard select-input cluster 
    use for all combination of label and select/input */
  .input-cluster {
    padding-right: 6rem;
    padding-left: 0.5rem;
  }

  .input-cluster .container > * {
    margin-right: 2%;
  }

  .input-cluster input[type="text"],
  .input-cluster select {
    flex: 0 0 7rem;
    width: 7rem;
    max-width: 7rem;
    padding-left: 0.3rem;
  }
}

/* 1920x1080 and 1280x1024 */
@media screen and (max-height: 900px) {
  /* 29-10 standard select-input cluster 
    use for all combination of label and select/input */
  .input-cluster label,
  .input-cluster select,
  .input-cluster input {
    font-size: 0.85rem;
  }

  .input-cluster select,
  .input-cluster input,
  .input-cluster button {
    height: 1.7rem;
  }

  .input-cluster button {
    width: 7rem;
  }

  /* Common element across page */
  button {
    height: 2.2rem;
    font-size: 1rem;
  }

  label,
  span {
    font-size: 0.9rem;
    top: 0.01rem;
  }

  .screen-name {
    padding: 0.2rem 1.5rem;
  }
}

@media screen and (max-height: 770px) {
  .body-container {
    height: 95%;
    padding: 1rem 0;
    margin: 0 1rem;
  }

  .screen-name {
    padding: 0.2rem 1.25rem;
    padding-right: 1.6rem;
    height: 36px;
  }
}

/* Support for 720p laptop */
@media screen and (max-width: 1600px) {
  html,
  body {
    font-size: 95%;
  }
}

/* Resolution: 1366x768 */
@media screen and (max-width: 1370px) and (max-height: 700px) {
  html,
  body {
    font-size: 80%;
  }
}

/* Resolution: 1280x1024 */
@media screen and (max-width: 1290px) and (max-height: 960px) {
  html,
  body {
    font-size: 95%;
  }
}

/* Resolution: 1024x768 */
@media screen and (max-width: 1030px) and (max-height: 700px) {
  html,
  body {
    font-size: 80%;
  }
}

@media screen and (max-height: 620px) {
  html,
  body {
    font-size: 89%;
  }

  .body-container {
    height: 88%;
  }
}

/* IE 10+ CSS styles go here */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  .hover-menu,
  #exit {
    transform: translateY(-50%);
  }
  /* Even though its look the same as Edge, its NOT the same
       these was placed in @media tag */
  /* IE inactive masking */
  .inactive button,
  button.inactive {
    position: relative;
    z-index: -1;
  }

  .inactive button:after,
  button.inactive:after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
  }
}

/* Edge 16+ CSS styles go here */
@supports (-ms-ime-align: auto) {
  /* Even though its look the same as IE, its NOT the same
       these was placed in @supports tag */
  /* Edge inactive masking */
  .inactive button,
  button.inactive {
    position: relative;
    z-index: -1;
  }

  .inactive button:after,
  button.inactive:after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
  }
}