* { box-sizing: border-box }

body {
  position: relative;
  width: 100%;
  height: 100vh;
  background-image: url('../img/loivatkatot.png');
  background-repeat: no-repeat; 
  background-size: clamp(500px, 60%, 60%);
  background-position: center;
  font-family: sans-serif;
  overflow: hidden;
}

body[data-user="login"] [data-user="register"], body[data-user="login"] [data-user="true"] { display: none; }
body[data-user="register"] [data-user="login"], body[data-user="register"] [data-user="true"] { display: none; }
body[data-user="true"] [data-user="register"], body[data-user="true"] [data-user="login"] { display: none; }

.caption {
  position: absolute;
  width: clamp(200px, 100%, 40%);
  top: 4rem;
  left: 2rem;
}

h1 { 
  color: var(--color-main, hsla(81, 70%, 42%, 1));
  text-shadow: 2px 0 0 white, -2px 0 0 white, 0 2px 0 white, 0 -2px 0 white, 1px 1px 0 white, -1px -1px 0 white, 1px -1px 0 white, -1px 1px 0 white;
}

p {
  color: white;    
  background-color: hsla(81, 70%, 42%, 0.8);
  padding: 0.5rem;
  border-radius: 4px;
}

.hidden { display: none; }

#header {
  display: flex;
  justify-content: space-evenly;
  color: #333;  
  font-size: 0.75rem;
}

/* INFO */

#infoTitle {
  display: block;
  color: var(--color-main, hsla(81, 70%, 42%, 1));
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 4px;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-main, hsla(81, 70%, 42%, 1));
}

/* PROFILE */

#profile a {
  display: block;
  color: var(--color-main, hsla(81, 70%, 42%, 1));
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 4px;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-main, hsla(81, 70%, 42%, 1));
}

#login h2 { margin: 0; }

#profile button, #login button {
  color: var(--color-main, hsla(81, 70%, 42%, 1));
  background-color: unset;
  font-weight: bold;
  padding: 0.25rem 0.5rem;
  border: none;
  border-radius: 4px;
  transition: all 200ms ease-in;
  text-transform: uppercase;
  cursor: pointer;
}

#profile button:hover, #login button:hover {
  color: var(--color-ui-text-selected, hsla(0, 0%, 0%, 1));
  background: var(--color-disabled, hsla(0, 0%, 72%, 1));
}

/* APPS */
#apps img { 
  border: 2px solid #333;
  border-radius: 4px;
  cursor: pointer;
}

#apps > * + * { margin-left: 8px; }

#apps img:hover, img:active { border-color: var(--color-main, hsla(81, 70%, 42%, 1)); }

