@charset "UTF-8";

/*
## Copyright (C) 2018 - 2025 ENCRYPTED SUPPORT LLC <adrelanos@kicksecure.com>
## Copyright (C) 2022 Hans (Kicksecure dev team)
## See the file COPYING for copying conditions.
*/

/* ---------- */
/* 1. General */

@font-face {
	font-family: 'Roboto';
	src: url('/usr/share/fonts-roboto-fontface/fonts/roboto/Roboto-Regular.woff');
}

body {
  font-family: 'Roboto';
  font-size: 2vmin;
}

@media (max-width: 500px) {
  body {
    font-size: 2.4vmin;
  }
}

.clearfix {
  width: 100%;
  overflow: auto;
  clear: both;
}

/* ------------------------------ */
/* 1.1. link elements hover style */

a:not(.not-link-like),
.link-like {
  transition: transform .2s;
}

a:not(.not-link-like):hover,
.link-like:hover {
  transform: scale(1.13);
}

/* ------- */
/* 2. Page */

.page-wrapper {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-image: url('img/background.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 52% 0;
  box-shadow: inset 0 190px 60px #0f112cd9;
}

/* Navigation */

.navigation .banner {
  background-image: url('img/welcome-banner.png');
  background-size: auto 85%;
  background-repeat: no-repeat;
  background-position: center 100%;
  width: 100%;
  height: 4em;
  display: block;
  filter: drop-shadow(.02em .02em .07em rgb(255, 255, 255)) drop-shadow(.02em .02em .07em rgba(255, 255, 255, 1));
}

.navigation .main-links {
  text-align: center;
  margin-top: .9em;
  border-top: 1px solid white;
}

.navigation .main-links > a {
  font-style: italic;
  display: inline-block;
  font-size: 1.6em;
  color: white;
  text-decoration: none;
  margin-top: .2em;
  text-shadow: 2px 2px 3px rgb(0 0 0 / 40%);
  display: inline-block;
}

@media (max-width: 500px) {
  .navigation .main-links > a {
    font-size: 1.4em;
  }
}

.navigation .main-links > a img {
  height: 1em;
  width: auto;
  filter: brightness(2);
  margin-right: .2em;
  margin-left: .6em;
  position: relative;
  top: .2em;
}

/* News Links */

.news-links {
  float: right;
  width: max-content;
  margin-top: 5em;
  margin-right: 2.5em;
}

@media (max-width: 500px) {
  .news-links {
    width: calc( 100% - 5em );
  }
}

.news-links a {
  color: white;
  display: block;
  font-size: 1.6em;
  text-decoration: none;
  letter-spacing: -.05em;
  background: #0f112c99;
  margin-bottom: 0.3em;
  padding: 0.3em 0.7em 0.3em;
  text-shadow: 2px 2px 3px rgb(0 0 0 / 40%);
}

.news-links a img {
  height: 1em;
  margin-right: .2em;
  position: relative;
  top: .15em;
  filter: invert(1);
}

/* Search Docs */

.search-docs {
  position: absolute;
  bottom: 13.7em;
  right: 2.5em;
  background: #0f112cbb;
  padding: 1em;
}

@media (max-width: 500px) {
  .search-docs {
    width: calc( 100% - 7em );
    bottom: 14.9em;
  }
}

.search-docs input {
  background: none;
  border: 1px solid white;
  border-radius: 6px;
  width: 34em;
  display: inline-block;
  font-size: 1em;
  color: white;
  text-align: center;
  height: 1.73em;
  font-weight: bold;
  text-shadow: .07em .07em .1em rgba(0, 0, 0, 1);
}

@media (max-width: 500px) {
  .search-docs input {
    width: calc( 100% - 12em );
  }
}

.search-docs button {
  background: none;
  font-size: 1em;
  border: 3px solid white;
  border-radius: 6px;
  padding: .1em .5em .15em;
  color: white;
  text-shadow: .07em .07em .1em rgba(0, 0, 0, .5);
  cursor: pointer;
}

.search-docs button:hover {
  background-color: #fff5;
  text-shadow: .07em .07em .1em rgba(0, 0, 0, 1);
}

@media (max-width: 500px) {
  .search-docs button {
    float: right;
  }
}

/* Search Links */

.search-links {
  position: absolute;
  bottom: 7.5em;
  right: 2.5em;
  width: calc( 100% - 5em );
  text-align: right;
}

@media (max-width: 500px) {
  .search-links {
    bottom: 8.5em;
  }
}

.search-links > div {
  display: inline-block;
  position: relative;
  margin-right: 1%;
  width: 16.8%;
  min-width: 12%;
}

.search-links > div:last-child {
  margin-right: 0;
}

.search-links > div > a {
  text-decoration: none;
  display: block;
  text-align: center;
  background: #0f112cbb;
  padding: .5em 1em;
}

.search-links div img {
  height: 2.6em;
}

.search-links div .se-name {
  color: white;
  text-shadow: 2px 2px rgb( 0 0 0 / 30% );
  font-weight: bold;
  display: block;
  font-size: .9em;
  text-overflow: ellipsis;
  overflow: hidden;
  margin-top: .3em;
}

.search-links div .transparency-tooltip {
  display: none;
  background: #1d2e6e;
  color: white;
  position: absolute;
  left: 0;
  top: 0;
  font-size: .65em;
  text-align: justify;
  padding: 10px;
  transform: translateY( calc( -100% - 11px ) );
  filter: drop-shadow(0 0 1px #61b5ff) drop-shadow(0 0 1px #61b5ff);
}

.search-links div:hover .transparency-tooltip,
.search-links div .transparency-tooltip:hover {
  display: block;
}

.search-links div .transparency-tooltip::before,
.search-links div .transparency-tooltip::after {
  content: " ";
  display: block;
  position: absolute;
}

.search-links div .transparency-tooltip::before {
  border: 10px solid transparent;
  border-top-color: #1d2e6e;
  bottom: -20px;
  left: 50%;
  transform: translateX( -50% );
}

/* This enlarges the tooltip so the hover effect can be maintained to reach the tooltip link */
.search-links div .transparency-tooltip::after {
  height: 11px;
  bottom: -11px;
  width: 100%;
  left: 0;
}

.search-links div .transparency-tooltip a {
  color: #61b5ff;
}

.search-links div.image-drop-shadow img {
  filter: drop-shadow(1px 1px #000) drop-shadow(1px 1px 4px #fff8);
}

/* Footer */

.footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  color: white;
  background: #0f112c99;
  padding: .7em .6em .8em;
  font-size: 1em;
  text-align: center;
  font-weight: bold;
}

@media (max-width: 500px) {
  .footer {
    font-size: .92em;
  }
}

.footer a {
  color: white;
  display: inline-block;
}

.footer .legal {
  display: block;
  margin: .3em 0;
}

.footer .about-image {
  display: block;
  font-weight: normal;
  font-size: .75em;
}

@media (max-width: 500px) {
  .footer .about-image {
    font-size: .85em;
  }
}
