/* css variables  */
:root {
    --background-color: #008080;
    --text-color: #333;
    --ui-color: #C0C0C0;
    --ui-color-dark: #808080;
}

/**
 * CSS for rainyhearts
 * Generated by Wakamai Fondue - https://wakamaifondue.com
 * by Roel Nieskens/PixelAmbacht - https://pixelambacht.nl
 */

@font-face {
    font-family: "rainyhearts";
    src: url("rainyhearts.ttf");
    unicode-range: U+0020-007E, U+00A1-00AC, U+00AE-00C5, U+00C7-017E,
        U+20AC, U+3000;
}

@font-face {
  font-family: "w95fa";
  src: url("w95fa.woff");
  src: url("w95fa.woff2");
  font-weight: normal;
}

header {
    width: 100%;
    padding: 0;
    position: fixed;
    top: 0;
}

.header {
    font-family: rainyhearts, sans-serif;
    background-color: var(--ui-color);
    box-shadow: 10px 10px 0 0 var(--ui-color-dark);
    text-align: left;
    max-width: fit-content;
    margin-top: 0px;
    margin: 5px;
}

.header h1 {
    margin: 0;
    font-size: 2.5em;
}

/* global styles */

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: w95fa, sans-serif;
    margin: 0;
    padding: 0;
}

main {
    margin-top: 200px;
    margin-bottom: 30px;
}

nav {
    background-color: var(--background-color);
    padding: 10px 0;
}

footer {
    background-color: var(--background-color);
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
}

footer p {
    background-color: var(--ui-color);
    font-family: w95fa, sans-serif;
    text-align: center;
    box-shadow: 3px 3px 0 0 var(--ui-color-dark)
}

.container {
    font-family: monospace;
    font-size: 1.5em;
    margin: 0 auto;
    background-color: var(--ui-color);
    margin-left: 25px;
    padding: 0 20px;
}

.rainy {
    font-family: rainyhearts, sans-serif;
    font-size: 2em;
    margin: 0;
    padding: 0;
}

.profile,
.recent-posts,
.messages {
    background-color: #f4f4f4;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Soft shadow */
}

/* Navbar Toggle CSS Version  */
/* Burger Icon (visible only on medium and small screens) */
.burger-icon {
    display: none; /* Hide on large screens */
    font-size: 30px;
    background: none;
    border: none;
    color: var(--text-color); /* Use the theme text color */
    margin-left: auto;
}

#menu-toggle {
    padding-right: 15px;
}

/* Dropdown Menu */
.menu {
    display: flex; /* Default: horizontal layout on large screens */
    flex-direction: row;
    gap: 20px;
    width: auto; /* Prevent menu from stretching across the whole screen */
    background-color: var(--background-color); /* Match background with navbar */
}

/* Style for each menu item */
.menu-item {
    text-decoration: none;
    color: var(--text-color); 
    font-size: 1rem;
    padding: 10px;
    transition: background-color 0.3s ease;
}

/* Hover effect for menu items */
.menu-item:hover {
    background-color: var(--ui-color-dark); /* Hover color from your theme */
}

/* Mobile and Tablet Styles (for medium and small screens) */
@media (max-width: 1024px) {
    /* Show the burger icon only on medium and small screens */
    .burger-icon {
        display: block;

         /* Show burger icon on medium and small screens */
        
    }

    /* Hide the menu by default on medium and small screens */
    .menu {
        display: none; /* Hide menu by default on medium/small screens */
        flex-direction: column;
        width: 100%;
        position: absolute;
        width: 100%;
        padding: 10px;
        gap: 0;
        border-radius: 0px;
    }

    /* When the show class is added, display the menu */
    .menu.show {
        display: flex; /* Show menu when toggled */
    }

    /* Make each menu item take full width on small screens */
    .menu-item {
        text-align: center;
        width: 95%;
        padding: 1px;
    }
}

/* Flexbox for Profile Layout */
.profile {
    display: flex;
    align-items: center;
    gap: 15px;
    /* Space between image and text */
}

.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s ease;
}

.btn-primary {
    background-color: #007BFF;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
    /* Darker blue on hover */
}

.btn-danger {
    background-color: red;
    color: white;
}

.btn-danger:hover {
    background-color: darkred;
}

/* Connections Page */
.mentor-search-button {
    margin-bottom: 10px;
} 

/* Error messages */
.errorlist {
    color: red;
    margin-top: 5px;
    padding-left: 20px;
}

/* General Windows95 Styling */

.windows95-style {
    border: 2px solid #a0a0a0; /* Light gray border */
    background-color: #c0c0c0; /* Classic Windows 95 window background */
    box-shadow: 2px 2px 4px #000; /* Drop shadow for the window effect */
    border-radius: 2px;
    margin: 20px;
}

.windows95-container {
    margin-top: 40px;
    padding: 16px;
    border: 2px solid #a0a0a0; /* Light gray border */
    background-color: #c0c0c0; /* Classic Windows 95 window background */
    box-shadow: 2px 2px 4px #000; /* Drop shadow for the window effect */
    border-radius: 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    padding-bottom: 50px;
}

.windows95-box {
    width: 400px;
    margin-top: 40px;
    padding: 16px;
    border: 2px solid #a0a0a0; /* Light gray border */
    background-color: #c0c0c0; /* Classic Windows 95 window background */
    box-shadow: 2px 2px 4px #000; /* Drop shadow for the window effect */
    border-radius: 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
}

/* General Table Styles */

table {
    width: 100%; /* Ensure the table itself takes up the full available width */
    border-collapse: collapse;
}

tr {
    display: flex;
    width: 100%; /* Make the row take full width */
    margin-bottom: 10px; /* Add space between rows */
}

td, th {
    display: flex;
    flex: 1; /* Ensure each cell takes up equal width */
    padding: 10px;
    flex-basis: 0; /* Ensure that the cells take up equal width */
}

/* Contactapp & Contact Form */

.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: w95fa, sans-serif;
}

.windows95-form {
    margin-top: 40px;
    width: 600px;
    padding: 16px;
    border: 2px solid #a0a0a0; /* Light gray border */
    background-color: #c0c0c0; /* Classic Windows 95 window background */
    box-shadow: 2px 2px 4px #000; /* Drop shadow for the window effect */
    border-radius: 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
  }

.windows95-form-title {
    background-color: #000080;  /* Windows 95 blue color */
    margin-bottom: 16px;  /* Space between title and form */
    margin-top: 0;
    width: 100%;
}

.windows95-form-title-text {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    padding: 5px;
    margin-left: 5px;
}

.windows95-field {
    background-color: #ffffff;
    border: 1px solid #000080;
    font-size: 14px;
    padding: 5px;
    margin-top: 5px;
    display: block;
}

.windows95-submit-button {
    background-color: #000080;
    color: #ffffff;
    padding: 5px 10px;
    font-size: 14px;
    border: 1px solid #000080;
    margin-top: 10px;
}

.windows95-submit-button:hover {
    background-color: #d3d3d3;
    color: #000080;
}

.index-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.index-card {
    min-height: 700px;
}
    
/* Windows 95 form styling */
#id_username,
#id_email,
#id_password1,
#id_password2,
#id_login,
#id_password,
#id_message,
#id_preferred_language,
#id_mentor,
#id_mentee,
#id_bio,
#id_status,
#id_name,
#id_subject,
#id_role, 
#id_title, 
#id_content {
  border: inset #000 2px;
  border-radius: 2px;
  background-color: #ffffff;
  box-shadow: inset 0 2px 0 0 rgba(0, 0, 0, 0.5);
  font-size: 14px;
  padding: 5px;
  margin-top: 5px;
}

#id_message,
#id_bio {
  display: block;
}

/* Forum Template styles */
/* Style form fields */
#id_title, #id_content {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
    background-color: #f8f8f8; /* Light background */
}

#id_title:focus, #id_content:focus {
    outline: none;
    border-color: #007bff; /* Highlight on focus */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Navbar styles */
.navbar {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: w95fa, sans-serif;
}

.navbar a {
    background-color: var(--ui-color);
    color: var(--text-color);
    border-color: #a0a0a0;
    font-size: 1.5em;
    padding: 10px 20px;
}

.navbar a:hover {
    background-color: var(--ui-color-dark);
    color: #ffffff;
}

/* Media Queries */
@media (max-width: 480px) {
    .windows95-form {
        width: 90%; /* Use a percentage for smaller screens */
        max-width: 100%; /* Ensure it doesn't exceed the viewport width */
    }

    .index-container {
        display: flex;
        flex-direction: column;
    }

    #menu {
        background-color: var(--ui-color); /* Solid background color for small screens */
    }
}

@media (min-width: 1080px) and (max-width: 1280px) {
    .windows95-form {
        width: 400px;
    }
}

@media (min-width: 1280px) and (max-width: 1440px) {
    .windows95-box {
        width: 320px;
    }
}



