/*
Author: Belmonte Devis
Content: cfbtcomic.com contact stylesheet
Date: 21/08/2022
*/
@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&display=swap");

:root {
  --font-primary: "Syne", arial, sans-serif;
  --color-text: #fff;
  --color-background: #000;
  --color-layout: #111;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: var(--font-primary);
  color: var(--color-text);
  background-color: var(--color-background);
}

.sticky {
  position: sticky;
  top: 0;
  width: 100%;
}

#logo {
  padding: 1em;
  background-color: var(--color-layout);
  text-align: center;
}

#menu {
  padding: 0.2em 1em;
  background-color: var(--color-layout);
  text-align: center;
}

ul {
  display: flex;
  list-style: none;
}

nav a:hover {
  background-color: var(--color-text);
  color: var(--color-background);
}

.sticky + #menu {
  padding-top: 150px;
}

footer a {
  color: white;
}

footer {
  display: flex;
  flex-direction: column; /* Changed to column for better layout */
  justify-content: center;
  align-items: center;
  left: 0;
  bottom: 0;
  background-color: var(--color-layout);
  text-align: center;
  z-index: 2;
  width: 100%;
  padding: 1em; /* Adjusted padding */
  margin: 0;
  gap: 0.5em;
}

/* Back-to-top button styling */
#back-to-top-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #333;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

#back-to-top-btn.active {
  opacity: 1;
  visibility: visible;
}

body {
  position: relative;
  padding-bottom: 80px; /* Adjust to make space for the back-to-top button */
}

.italic {
  font-style: italic;
}

.dropbtn a {
  color: var(--color-text);
  text-decoration: none;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 160px;
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
  background-color: var(--color-text);
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
  background-color: var(--color-text);
}

.dropdown:hover .dropbtn a {
  color: var(--color-background);
}

nav #active {
  background-color: var(--color-text);
  color: var(--color-background);
}

#logo img {
  max-height: 2.5em;
}

ul > li > a {
  display: block;
  padding: 0.5em;
  text-decoration: none;
  color: var(--color-text);
}

/* Dropdown for read page */
.dropbtn {
  background-color: #111;
  padding: 0.5em;
  font-size: 1em;
  text-decoration: none;
  border: none;
  font: var(--font-primary);
}

header {
  width: 100%;
  top: 0;
  right: 0;
}

nav {
  display: flex;
  justify-content: center;
  text-align: center;
}

.nav--hidden {
  transform: translateY(-202px);
}

.form-container {
  /*width: 100%;*/
  /*height: 100vh;*/
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

h1 {
  padding-top: 1.5em;
}

form {
  display: flex;
  flex-direction: column;
  padding: 2vw 4vw;
  width: 90%;
  max-width: 600px;
}
form h3 {
  margin-bottom: 20px;
}
form input,
form textarea {
  border: 0;
  margin: 10px 0;
  padding: 20px;
  outline: none;
  font-size: 16px;
  border-radius: 10px;
}

form button {
  padding: 15px;
  border: 0;
  outline: none;
  cursor: pointer;
  width: 150px;
  margin: 20px auto 0;
  border-radius: 30px;
}

/* Style for tablets */
@media (min-width: 768px) {
  #logo img {
    max-height: 5em;
  }
  ul > li > a {
    font-size: 1.2em;
  }
  .dropbtn {
    font-size: 1.2em;
  }
}

@media (min-width: 992px) {
  #logo img {
    max-height: 7em;
  }
  ul > li > a {
    font-size: 1.4em;
  }
  .dropbtn {
    font-size: 1.4em;
  }
  main {
    padding-left: 25%;
    padding-right: 25%;
  }
}