@import url("/css/normalize.css");

:root {
  --control-duration: 0.2s;
}

@font-face {
  font-family: "Roboto";
  src: url("/fonts/Roboto-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-weight: 400;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: blue;
}

a:hover {
  color: rgb(0, 125, 255);
  transition-duration: var(--control-duration);
}

.logo {
  display: flex;
  align-items: center;
}

.logo h1 {
  font-size: 36px;
  color: blue;
  margin-left: 20px;
  margin-top: 0px;
  margin-bottom: 0px;
}

.menu-list {
  display: flex;
  justify-content: center;
  column-gap: 30px;
}

.menu-itm {
  color: blue;
  text-transform: uppercase;
}

.menu-itm-current {
  border-bottom-color: blue;
  border-bottom-width: 3px;
  border-bottom-style: solid;
}

.logo-image {
  width: 128px;
  height: 60px;
  background-image: url("/img/its.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;  
}

.header {
  background: linear-gradient(45deg, lightgrey, white);
  border-bottom-color: blue;
  border-bottom-width: 2px;
  border-bottom-style: solid;
  padding: 5px;
}

.index-main {
  margin: 5px;
}

.index-footer {
  font-size: 14px;
  border-top: 1px solid blue;
}

.contacts-list {
  display: flex;
  justify-content: center;
  column-gap: 20px;
}

.contacts-itm {
  color: black;
}

.owners-main {
  margin: 5px;
}

.machines-main {
  margin: 5px;
}

.login-main {
  margin-inline: auto;
  margin-block: 5px;
  width: 400px;
}

.login-fieldset {
  padding-inline: 5px;
  padding-top: 5px;
  padding-bottom: 30px;
  background: linear-gradient(45deg, yellow, white);
  border: 1px solid blue;
  border-radius: 5px;
  box-shadow: 5px 5px 5px lightgray;
}

.login-message {
  font-size: 18px;
  color: red;
  height: 20px;
  text-align: center;
}

.login-controls {
  display: flex;
  justify-content: center;
  column-gap: 40px;
  padding-top: 20px;
}

.login-button {
  display: block;
  width: 100px;
}

@keyframes fade-opacity {
  0% {opacity: 100%;} 50% {opacity: 50%;} 100% {opacity: 0%;}
}

.login-input-message {
  font-size: 16px;
  color: red;
  opacity: 0%;
}

.login-input:invalid + .login-input-invalid {
  animation-name: fade-opacity;
  animation-duration: 1s;
  animation-timing-function: linear;
}

.stub-content {
  text-align: center;
  color: lightgrey;
  font-size: 72px;
}