/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Bellota+Text:ital,wght@0,300;0,400;0,700;1,300;1,700&family=Open+Sans:ital,wght@0,300;0,500;0,700;0,800;1,800&family=Oswald:wght@300;400;500;700&display=swap');

/* Setup */
html,
body {
  height: 100%;
  min-height: 100%;
  max-width: 100%;
  background-color: var(--background-clr);
  -webkit-transition: background-color 0.4s, color 0.4s, width 1.5s, height 1.5s;
  -o-transition: background-color 0.4s, color 0.4s, width 1.5s, height 1.5s;
  transition: background-color 0.4s, color 0.4s, width 1.5s, height 1.5s;
}

body {
  margin: 0px;
}

main.content {
  height: 100%;
  max-height: 100%;
  width: 100%;
  max-width: 100%;
}

:root {
  --background-dark: #001775;
  --background-light: #ffffff;
  --nav-light: #0043e0;
  --nav-dark: #18009e;
  --header-font: "Bellota Text";
  --default-font: "Open Sans";
}

@media (prefers-color-scheme: light) {
  :root {
    --background-clr: var(--background-light);
    --nav-clr: var(--nav-light);
    --txt-clr: black;
    --button-clr: #18009e;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background-clr: var(--background-dark);
    --nav-clr: var(--nav-dark);
    --txt-clr: white;
    --button-clr: #445088;
  }
}

img:not([src="https://worldcache.redcoder.repl.co/"]) {
  max-width: 90%;
}

/* Nav */
nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: horizontal;
  flex-direction: horizontal;
  width: 100%;
  height: 60px;
  font-family: var(--default-font), monospace;
  background-color: var(--nav-clr);
}

/* nav:nth-child(odd) {
  background-color: #000085;
}

nav:nth-child(even) {
  background-color: #6666ff;
} */

div.nav {
  padding: 20px;
}

div.nav-logo {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: horizontal;
  flex-direction: horizontal;
  width: 45px;
  max-width: 45px;
  height: 45px;
  max-height: 45px;
}

img.nav-logo {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
}

a.nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  top: 50%;
  bottom: 50%;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  color: white;
  text-decoration: none;
}

/* Text Defaults */
h1,
h2,
h3 {
  font-family: var(--header-font), sans-serif;
  padding-left: 10px;
  padding-right: 10px;
  color: var(--txt-clr);
}

h4,
h5,
h6 {
  font-family: var(--default-font), sans-serif;
  padding-left: 10px;
  padding-right: 10px;
  color: var(--txt-clr);
}

p,
span,
label {
  font-family: var(--default-font), monospace;
  padding-left: 10px;
  padding-right: 10px;
  color: var(--txt-clr);
}

a {
  color: deepskyblue;
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
  font-family: var(--default-font);
}

a:hover {
  color: #009dd1;
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
}

/* Misc Defaults */
img {
  border-radius: 13px;
}

button {
  width: 160px;
  height: 40px;
  background-color: var(--button-clr);
  font-family: var(--default-font), monospace;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 95%;
  -webkit-transition: all 0.5s;
  -o-transition: all 0.5s;
  transition: all 0.5s;
}

button:hover {
  opacity: 0.8;
  cursor: pointer;
  text-decoration: underline;
  -webkit-transition: all 0.5s;
  -o-transition: all 0.5s;
  transition: all 0.5s;
}

/* input {
  border-radius: 7px;
  height: 32px;
  width: 135px;
  font-family: "Open Sans", monospace;
  outline: none;
  border: 1px solid #8f8f8f;
  padding: 5px;
  padding-left: 7px;
  margin: 5px 0;
  -webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.08);
} */

input.checkbox {
  width: auto;
  height: auto;
  border-radius: 100%;
}

/* Login */
.login {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    width: 350px;
    height: 230px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 5px;
}

.login input[type="username"], .login input[type="password"] {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px; /* Reduced border-radius for less rounded corners */
    box-shadow: 0 0 5px rgba(0,0,0,0.25);
transition: all 0.3s ease-in-out;
}

.login input[type="username"]:hover, .login input[type="password"]:hover {
    box-shadow: 0 0 20px rgba(0,0,0,0.7); /* Increased box-shadow for better hover effect */
    border-radius: 10px; /* Increased border-radius on hover for a more noticeable transition */
    transform: scale(1.02);
  transition: all 0.3s ease-in-out;
}

.login input[type="checkbox"] {
    appearance: none;
    background-color: #f2f2f2;
    border: 2px solid #cacea4;
    padding: 10px;
    border-radius: 5px;
    display: inline-block;
    position: relative;
    transition: all 0.5s cubic-bezier(.25,.8,.25,1); /* Enhance transition effect */
}

.login input[type="checkbox"]:hover {
    background-color: #e6e6e6;
    border-color: #adae94;
    transform: scale(1.1);  /* Add scale transformation on hover */
}

.login input[type="checkbox"]:checked:after {
    content: '\2714'; 
    font-size: 112%; /* Increase font-size to make the checkmark larger */
    position: absolute;
    top: 0; 
    left: 3px;
    color: #000000; /* Change color to black to make it stand out more */
}

.login button {
    width: 100%;
    padding: 10px;
    border: none;
    background: #4CAF50;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: background .2s ease-in-out;
}

.login button {
    background: #0000FF; /* Blue color */
    color: #FFFFFF; /* White color */
    transition: background .4s ease-in-out, transform .4s ease-in-out;
    /* Increased transition duration and added transformation */
}

.login button:hover {
    background: #0084ff; /* Dark grey color on hover */
    transform: scale(1.024); /* Slightly increases the size on hover */
}
h2.login {
  margin-bottom: -7px;
}

h2.error {
  color: red;
  font-size: 15px;
  margin: -7px;
}

/* Other: Search */
input.search {
  width: 45%;
  min-width: 250px;
  height: 40px;
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
  padding: 13px;
  border: 1.7px solid var(--txt-clr);
  -webkit-transition: all 0.5s;
  -o-transition: all 0.5s;
  transition: all 0.5s;
}

input.search:hover {
  opacity: 0.8;
  cursor: text;
  -webkit-transition: all 0.5s;
  -o-transition: all 0.5s;
  transition: all 0.5s;
}

button.search {
  width: 50px;
  height: 40px;
  max-width: 50px;
  min-width: 50px;
  max-height: 40px;
  min-height: 40px;
  background-color: #007bff;
  opacity: 0.9;
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
  border: 1.7px solid var(--txt-clr);
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin-left: 5px;
}

button.search:hover {
  opacity: 0.73;
  cursor: mouse;
  -webkit-transition: all 0.5s;
  -o-transition: all 0.5s;
  transition: all 0.5s;
}

img.search {
  width: 28px;
  max-width: 28px;
  min-width: 28px;
  height: 28px;
  max-height: 28px;
  min-height: 28px;
  opacity: 1;
}

/* Other: Search: Searching */
div.search-results {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

div.search-result {
  border: 1.5px solid var(--txt-color);
  border-radius: 13px;
  width: 90%;
  height: 80px;
  max-height: 80px;
}

/* Other */
.hint {
  -webkit-filter: blur(7px);
  filter: blur(7px);
  -webkit-transition: 0.4s all;
  -o-transition: 0.4s all;
  transition: 0.4s all;
  -webkit-transition-delay: 0.5s;
  -o-transition-delay: 0.5s;
  transition-delay: 0.5s;
  cursor: pointer;
}

/* .hint:hover {
  filter: blur(4px);
  cursor: pointer;
  transition: 0.2s all; 
} */

.hint:active {
  -webkit-filter: blur(0px);
  filter: blur(0px);
  -webkit-transition: 0.4s all;
  -o-transition: 0.4s all;
  transition: 0.4s all;
  -webkit-transition-delay: 0.3s;
  -o-transition-delay: 0.3s;
  transition-delay: 0.3s;
}

.rememberMe {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: -3px;
  margin-bottom: -13px;
  font-size: 14px;
}

img.cacheType {
  width: auto;
  max-width: 50px;
  min-width: 50px;
  height: auto;
  min-height: 50px;
}

/* Other: Cache Page */
div.cache-container {
  max-width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
}

div.cache-info {
  display: flexbox;
  width: 65%;
  max-width: 65%;
  margin-left: 20px;
  -o-object-fit: cover;
  object-fit: cover;
  word-wrap: break-word;
}

div.info-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-left: 8px;
  margin-bottom: -17px;
}

div.cache-controls {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  width: 35%;
}

div.log-cache {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  height: 80%;
  max-height: 190px;
  width: auto;
  max-width: 250px;
  background-color: #7eb7ec;
  color: black;
  border-radius: 8px;
  padding: 5px;
  margin-top: 20px;
}

div.log-cache:nth-child(3) {
  padding-bottom: 7px;
}

button.log-cache {
  width: 100%;
  height: 100%;
}

a.log-cache-1 {
  padding-top: 10px;
  width: 70%;
  max-width: 70%;
  height: 40px;
  min-height: 40px;
}

a.log-cache {
  margin-left: 10px;
  margin-right: 10px;
  padding-top: 6px;
  color: black;
}

a.log-cache:hover {
  opacity: 0.4;
}

/* Other: Cache Page: Logs */
div.log-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

div.log {
  width: 97%;
  min-height: 130px;
  border: 2.5px solid #a3a3a3;
  border-radius: 20px;
  /* padding: 5px; */
  margin-top: 5px;
  margin-bottom: 5px;
  word-wrap: break-word;
}

img.log {
  width: 30px;
  height: 30px;
  max-width: 30px;
  max-height: 30px;
  padding: 6px;
}

div.log-header {
  color: var(--txt-clr);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  width: 100%;
  border-bottom: 2px solid #a3a3a3;
}

/* Other: Cache Page: Ratings */
div.rating-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  color: white;
}

div.rating {
  width: 60px;
  height: 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 8px;
  background-color: #0000a3;
  color: white;
  border-radius: 1000px;
  margin-left: 8px;
}

div.rating-size {
  width: auto;
}

img.rating {
  height: 80%;
  width: auto;
  padding-left: 6px;
  border-radius: 0px;
}

p.rating {
  font-size: 14px;
  color: white;
}

/* Other: Cache Page: Map */
div.mini-map {
  margin: 7px;
  height: 80%;
  min-height: 240px;
  max-height: 80%;
  width: auto;
  max-width: 80%;
  min-width: 80%;
}

iframe {
  border-radius: 10px;
}

/* Other: Logged Out Home Page */
div.banner {
  background-color: #001073;
  opacity: 0.9;
  background-image: -o-repeating-radial-gradient(0 0, circle, transparent 0, #001073 16px), -o-repeating-linear-gradient(#000dff55, #000dff);
  background-image: repeating-radial-gradient(circle at 0 0, transparent 0, #001073 16px), repeating-linear-gradient(#000dff55, #000dff);
  height: 200px;
  min-height: 190px;
  width: 100%;
}

/* Other: Logged Out Home Page: Mockups */
div.mockups-container {
  height: auto;
  width: 100%;
  min-width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

div.mockups {
  height: 100%;
  width: 100%;
  min-width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-flex: space-evenly;
  -ms-flex: space-evenly;
  flex: space-evenly;
}

div.mockup {
  padding: 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  width: 300px;
  min-width: 300px;
  max-width: 300px;
  height: 300px;
  min-height: 300px;
  max-height: 300px;
}

/* Configurations */
.center-align {
  text-align: center;
}

.left-align {
  text-align: left;
}

.right-align {
  text-align: right;
}

.font-default {
  font-family: var(--default-font);
}

.color-white {
  color: white;
}

.max-size {
  width: 100%;
  height: 100%;
  min-height: 100%;
  min-width: 100%;
}

.flex-dead-center {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.flex-center {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.flex-column {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

.no-decor {
  text-decoration: none;
  list-style: none;
}

.inline {
  display: inline;
}

.margin-sides {
  margin-left: 13px;
  margin-right: 13px;
}

.padding-10 {
  padding: 10px;
}

.width-100-percent {
  width: 100%;
}

div.line {
  border: 4px solid var(--txt-clr);
  display: none;
  width: 60%;
  height: 0.1px;
  border-radius: 100px;
}

/* Footer */
footer {
  font-family: var(--default-font), monospace;
  font-size: 12px;
  background: none;
  position: static;
  bottom: 0;
  /* width: 100%;
  max-width: 100%; */
  min-height: 20px;
  color: var(--txt-clr);
  padding: 8px;
}

/* Mobile Layout */
@media screen and (max-width: 750px) {
  div.cache-container {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }

  div.cache-info,
  div.cache-controls {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
  }

  div.cache-info {
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-align: center;
    margin-left: 0px;
  }

  div.rating-container {
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }

  div.info-header {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }

  img.cacheType {
    width: 75px;
    max-width: 75px;
    height: auto;
    margin-top: 20px;
  }

  div.log-cache {
    width: 100%;
    max-width: 90%;
  }

  div.mini-map {
    width: 100%;
    max-width: 90%;
  }

  div.mockups {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }

  div.line {
    display: initial;
  }
}