/* styles.css */

/*

Accepted Colors:
#ffa24f Orange
#92b3c6 Hellblau
#364C63 Dunkelblau
#FFE7D6 Creme rgba(255, 231, 214, 1)

*/

:root {
    --background-body: #ddd;
    --background-color: #fff;
    --background-color-05: rgba(0, 0, 0, 0.5);
    --background-color-inverted-05: rgba(255, 255, 255, 0.3);
    --nav-color: #fff;
    --nav-background-color:rgba(0, 0, 0, 0.8);
    --text-color: #000;
    --accent-color: #f3b340;
    --accent-font-color: #fff;
    --secondary-color: #92b3c6;
    --secondary-font-color: #000;
    --error-color: #f3b340;

    --subpage-frame-background: rgba(255, 255, 255, 0.8);
    --subpage-frame-color: #000;
    --content-border: #fff;

    --form-background-color: #f9f9f9;
    --form-border-background-color: #f5f5f5f5;
    --input-background-color: #fff;
    --input-font-color: #000;

    --disclaimer-font-color: #FFFFFF;
    --disclaimer-background-color: #92b3c6;
}

body.dark-mode {
    --background-body: #222;
    --background-color: #333;
    --background-color-05: rgba(0, 0, 0, 0.6);
    --background-color-inverted-05: rgba(255, 231, 214, 0.3);
    --nav-color: #FFE7D6;
    --nav-background-color: rgba(0, 0, 0, 0.8);
    --text-color: #FFE7D6;
    --accent-color: #f3b340;
    --accent-font-color: #000;
    --secondary-color: #364C63;
    --secondary-font-color: #FFE7D6;
    --error-color: #f3b340;

    --subpage-frame-background: rgba(0, 0, 0, 0.6);
    --subpage-frame-color: #FFE7D6;
    --content-border: #444;

    --form-background-color: #444;
    --form-border-background-color: #555;
    --input-background-color:  #ccc;
    --input-font-color: #000;

    --disclaimer-font-color: #FFE7D6;
    --disclaimer-background-color: #364C63;
}

/*
var(--background-color);
var(--nav-color);
var(--text-color);
var(--accent-color);
var(--secondary-color);
var(--error-color);

*/

/*
font-family: "PT Sans Narrow", serif;
font-family: "Nunito Sans", serif;
font-family: "Dosis", serif;
font-family: "Jura", serif;

*/

@font-face {
    font-family: Moonbeam;
    src: url(MOONB___.TTF);
  }

body, html {
    margin: 0;
    padding: 0;
    font-family: "PT Sans Narrow", serif;
    background-color: var(--background-body);
}

/* FONTS */

h1, h2, h3, h4, h5, h6 {
    padding: 0;
    margin: 0;
    font-family: "Jura", serif;
}

p.subtitle {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 20px;
    font-family: "Jura", serif;
    padding:10px 20%;
    text-align: center;
}

.disclaimer {
    padding:10px 20%;
}

.disclaimer p {
    background-color: var(--disclaimer-background-color);
    border: 1px solid var(--form-border-background-color);
    padding: 10px;
    border-radius: 5px;
    margin: 0;
    text-align: left;
    color: var(--disclaimer-font-color);
    font-size: 14px;
}


/**********/
/* HEADER */
/**********/

header {
 
}

#bg_old {
    position: relative;
    background: url('img/palmen.JPG') no-repeat center center/cover;
    background-attachment: fixed; /* Make the background image fixed */
}

#bg {
    position: fixed;
    object-fit: cover;
    height: 100vh;
    width: 100%;
    z-index: 0;
}

.bgoverlay {
    background: var(--background-color-05);
    position: relative;
    z-index: 1;
}

.overlay {
    position: relative;

}

nav .overlay {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo{
    flex: 1;
    padding: 10px;
    text-align: center;
    
}

.logo_helper {
    flex: 2;
    padding: 10px;
    text-align: center;
}

.logo a {
    display: none;
    text-decoration: none;
    color: var(--nav-color);
    font-size: 30px;
    font-family: Moonbeam;
    align-items: center;
    justify-content: center;
}

.logo a.show {
    display: flex;
}


.logo a img {
    height: 35px;
    margin: 0;
    
}

.logo a span {
    height:35px;
    line-height: 40px;
    margin: 0;
    padding-left: 5px;
}

/* NAVIGATION */

nav {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 10;
    background: transparent; /* Make the background transparent */
    transition: background 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

nav.sticky {
    background: var(--nav-background-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style: none;
    padding: 0px 0px;
    margin: 0;
    display: flex;
    justify-content: right;
    position: relative;
    flex: 2;
}

nav ul li {
    margin: 0px 1px;
    position: relative;
}

nav ul li.center-item {
    margin-right: auto;
    margin-left: auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

nav ul li a {
    display:inline-block;
    color: var(--nav-color);
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.8);
    text-decoration: none;
    font-size: 22px;
    font-family: "Jura", serif;
    padding: 20px 15px;
}

nav ul li a:hover {
    color: var(--accent-color);
}

nav ul li .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--nav-background-color);
    padding: 10px 0;
    list-style: none;
    font-size: 18px;
}

nav ul li:hover .submenu {
    display: block;
}

nav ul li .submenu li {
    margin: 0;
}

nav ul li .submenu li a {
    padding: 10px 20px;
    display: block;
    color: var(--nav-color);
    text-decoration: none;
    white-space: nowrap; /* Prevent text from wrapping */
    overflow: hidden; /* Hide overflow text */
    text-overflow: ellipsis; /* Add ellipsis (...) for overflow text */
}

nav ul li .submenu li a:hover {
    background-color: var(--accent-color);
    color: #fff;
}

.dark-mode-toggle {
    background: transparent;
    color: var(--nav-color);
    border: none;
    cursor: pointer;
    font-size:20px;
    padding:20px;
}

.dark-mode-toggle:hover {
    color: var(--accent-color);
    background: transparent;
}

#home {
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    color: var(--nav-color);
    height: 60vh;
    text-align: center;
    padding:0;
}

#home .homelogo{
    margin: 0 0 50px 0;
}

#home .homelogo a {
    display: flex;
    flex-direction: column; /* Add this line to display elements in columns */
    text-decoration: none;
    color: var(--nav-color);
    font-size: 80px;
    font-family: Moonbeam;
    align-items: center;
}

#home .homelogo a img {
    width: 250px;
    margin: 0;
}

#home .homelogo a span {
    margin: 0;
}

#home .frame {
    background: var(--background-color-05);
    padding: 80px;
    border: 5px solid var(--nav-color);
    margin:0px 20px 50px 20px;
}

#home h1 {
    font-size: 80px;
    font-weight: bold;
    margin-bottom: 10px;
    font-family: "Jura", serif;
}

#home p {
    font-size: 24px;
    margin-bottom: 20px;
    z-index: 10;
}

#subpage {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--subpage-frame-color);
    text-align: center;
    padding: 0;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

#subpage .frame {
    background: var(--subpage-frame-background);
    padding: 20px 0px 10px 0px;
    border-top: 2px solid var(--content-border);
    border-left: 2px solid var(--content-border);
    border-right: 2px solid var(--content-border);
    margin: 120px 0 0 0;
    width: calc(100% - 50px);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0px;
}

#subpage .frame .div_title {
    flex: 1;
    text-align: center;
}

#subpage .frame .div_left, #subpage .frame .div_right {
    width:50px;
}

#subpage h1 {
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 10px;
    font-family: "Jura", serif;
}

#subpage p {
    font-size: 18px;
    z-index: 10;
}

/* GOOGLE SEARCH */

#google {
    height: 25vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
}

#google form {
    max-width: 800px;
    margin: 0 auto;
    padding: 0px;
    background-color: transparent;
    border: none; 
    border-radius: 0px;
}

#google button {
    display: inline-block;
    background: var(--accent-color);
    color: var(--accent-font-color);
    text-decoration: none;
    border-radius: 0 5px 5px 0;
    transition: background 0.3s;
    border:0;
    font-family: Moonbeam;
    font-weight: bold;
    font-size: 20px;
    margin: 0 0 0 -5px;
    padding: 10px;
    height: 50px;
}

#google button:hover {
    background: var(--secondary-color);
    color: var(--secondary-font-color);
}

#google input[type="text"] {
    display: inline-block;
    border: 0;
    border-radius: 5px 0 0 5px;
    background-color: var(--background-color);
    color: #333;
    font-family: Moonbeam;
    font-size: 20px;
    margin: 0;
    padding: 10px;
    height: 50px;
    width: 300px;
}

#google input[type="text"]:focus {
    outline: none;
}


/* SCROLL ARROW */

.scroll-arrow-container{
    display: flex;
    align-items: start;
    justify-content: center;
    margin: 0;
    height: 14vh;
    padding:10px;
}

.scroll-arrow {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    color: var(--accent-font-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: background-color 0.3s;
}

.scroll-arrow:hover {
    background: var(--secondary-color);
    color: var(--secondary-font-color);
}

.scroll-arrow svg {
    width: 30px;
    height: 30px;
}

/* CONTENT */

main {
    position: relative;
    z-index: 0;
    background-color: var(--background-body);
}

section {
    margin:0;
    padding:0;
}

section.light{
    background-color: var(--background-color);
    color: var(--text-color);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

section.dark{
    background-color: var(--background-body);
    color: var(--text-color);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

section.content{
    max-width: 1210px;
    margin: 0px auto;
    padding: 100px 20px;
}

section.content.light{
    max-width: 1210px;
    margin: 0px auto;
    padding: 20px;
    min-height: calc(100vh - 324px);
    border-left: 2px solid var(--content-border);
    border-right: 2px solid var(--content-border);
    background: var(--background-color);
}

section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

section p {
    font-size: 18px;
    margin-bottom: 20px;
}

section.content#welcome{
    padding: 50px 20px;
}

/* TOOLS */

#tools{
    text-align: center;
}

.tools-overview {
    column-count: 3;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-flow: dense; /* Allow items to fill in the gaps */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 50px auto; 
    padding: 0;
}

.tool-link {
    display: inline-block;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    background-color: var(--secondary-color);
    text-align: center; /* Center the text */
    color: var(--input-font-color);
    margin: 10px; /* Add margin to separate the items */
    text-decoration: none;
    width: calc(100% - 20px);
}

.tool-link h3 {
    margin-top: 0;
    font-size: 20px;
    color: var(--nav-color);
    font-family: "Jura", serif;
}

.tool-link:hover {
    background-color: var(--accent-color);
}

.tool-link .tool_header {
    border-bottom: 1px solid var(--background-color);
    padding: 20px;
    border-radius: 5px 5px 0 0;
}

.tool-link .tool_content {
    padding: 5px 20px;
    background-color: var(--input-background-color);
}

@media (max-width: 1400px) {
    .tools-overview {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .tools-overview {
        column-count: 1;
    }
}

/* CONTACT */

#contact{
    text-align: center;
}

#contact form {
    text-align: left;
    max-width: 600px;
}

#contact .success {
    color: green;
}

#contact .error {
    color: red;
}

/* FOOTER */

footer {
    /*background: url('img/palmen.JPG') no-repeat center center/cover;*/
    padding: 0;
    text-align: center;
    color: var(--nav-color);
    position: relative;
    font-size: 14px;

}

.mainend {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--subpage-frame-color);
    text-align: center;
    padding: 0;
    width: calc(100% - 4px);
    max-width: 1250px;
    margin: 0 auto;
    background: var(--content-border);
    padding: 20px 0;
    border-bottom: 2px solid var(--content-border);
    border-left: 2px solid var(--content-border);
    border-right: 2px solid var(--content-border);
    height:10px;
}

footer .overlay {
    padding: 0px 0;
    background: var(--background-color-05);
    min-height: 75vh;
}

footer .social {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row; /* Change to row to display icons horizontally */
}

footer .social a {
    margin: 0 20px 0 0;
    display: inline-block;
    color: var(--nav-color);
    text-decoration: none;
    font-size: 24px; /* Adjust font size for icons */
}

footer .social a:hover {
    color: var(--accent-color);
}

footer .copy {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row; /* Change to row to display icons horizontally */
    padding:50px 0 10px 0;
}

footer .copy p {
    color: var(--nav-color);
}

.language {
    font-size: 20px; /* Adjust font size for icons */
    color: var(--nav-color);
}


.backtotool{

}

.backtotool a i{
    padding:10px;
    color: var(--subpage-frame-color);
    border-radius: 10px;
}

.backtotool a i:hover{
    color: var(--accent-color);
    background: var(--subpage-frame-color);
}