/* Root variables */

:root {
    --main-color: #194541;
    --secondary-color: #ff5744;
    --main-text-color: #ffffff;
    --main-font-size: 2em;
    --main-font-family: "SofiaProLight";
    --secondary-font-family: "SofiaProBold";
    --tertiary-font-family: "SofiaProRegular";
}

* {
    padding: 0;
    margin: 0;
    background: none;
    border: none;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--main-color);
    color: var(--main-text-color);
    font-family: var(--main-font-family);
    /* max-width: 1000px; */
    margin: auto auto;
    line-height: 2em;
}

#backToTopBtn {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99; /* Ensure it doesn't overlap with other content */
    border: none;
    outline: none;
    background-color: var(--secondary-color);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
}

#backToTopBtn img {
    max-width: 40px;
}

.flex {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dcol {
    flex-direction: column;
}

.aspit-orange {
    color: var(--secondary-color);
}

.info * {
    font-weight: 500;
    max-width: 800px;
    text-align: center;
    padding-bottom: 20px;
}

.p20 {
    padding: 20px;
}

.pb20 {
    padding-bottom: 20px;
}

/* Header */

header {
    letter-spacing: 1px;
    text-align: center;
}

.k-logo {
    width: 60px;
    padding-top: 6px;
}

.topbar {
    position: relative;
    border-bottom: solid 1px rgba(255, 255, 255, 0.811);
    display: flex;
    height: 60px;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

.nav-icon {
    width: 24px;
    margin-bottom: -6px;
}

.topmenu_btn {
    color: var(--secondary-color);
    margin-left: auto;
}

#mailto {
    color: var(--secondary-color);
    font-size: 1.2em;
}


/* ---------------- */
/* Navigation Menu */
/* -------------- */

.nav-menu {
    opacity: 0; /* Start with the menu invisible */
    visibility: hidden; /* Start with the menu not taking up space */
    transition: all 0.3s ease;
    position: absolute;
    /* top: 110%;  */
    top: 61px; /* topbar is 60px in height + 1 px border */
    right: 0;
    background-color: rgba(0, 0, 0, 0.48);
    z-index: 10;
    text-align: start;
    padding: 20px;
}

.nav-menu.visible {
    opacity: 1; /* Make the menu fully visible */
    visibility: visible; /* Make the menu take up space */
}

.menu-icon {
    width: 32px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.rotate {
    transform: rotate(90deg); /* Rotates the button 90 degrees */
    transition: transform 0.3s ease; /* Smooth transition for the rotation */
}

.toggle-button {
    transition: transform 0.3s ease;
}

.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu ul li {
    padding-top: 20px;
    color: #ffffff;
}

h1 {
    font-family: var(--tertiary-font-family);
    font-size: calc(var(--main-font-size) * 1.3);
}

h1 span {
    color: var(--secondary-color);
    font-size: 0.8em;
    margin-top: -30px;
}

/* Main Content - Pills */

#pills {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    font-size: var(--main-font-size);
    margin-top: 30px;
    margin-bottom: 60px;
}

@media only screen and (max-width: 850px) {
    #pills {
      flex-direction: column;
    }
  }

#pills a {
    color: var(--main-text-color);
    font-family: var(--secondary-font-family);
    text-decoration: none;
    padding: 18px 32px 22px 32px;
    border-radius: 12px;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

#pills a:visited,
a {
    color: inherit;
    text-decoration: none;
}

#pills a p {
    margin: 0;
    transition: all 0.5s;
}

#pills a:hover p {
    transition: all 0.5s;
    transform: scale(1.06);
}

/* Disabled button styling */
#pills a.disabled {
    background-color: #666;
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

#pills a.disabled p {
    color: #999;
}

/* AspIT logo */

svg {
    max-width: 300px;
    margin: 20px;
}

.white-fill {
    fill: white;
}

.red-fill {
    fill: var(--secondary-color);
}

.page-logo .aspit-dot {
    animation: dot 3s infinite;
}

@keyframes dot {
    0% {
        transform: translateY(0%);
    }
    12.5% {
        transform: translateY(-5%);
    }
    25% {
        transform: translateY(0%);
    }
}

/* Browser Scrollbar */

/* Style the scrollbar itself (the track) */
::-webkit-scrollbar {
    width: 14px; /* width of the entire scrollbar */
    background-color: #153936;
    border-left: 2px solid rgba(0, 0, 0, 0.185);
}

/* Style the handle (thumb) */
::-webkit-scrollbar-thumb {
    background: var(--main-text-color); /* color of the scrollbar thumb */
    border-radius: 8px; /* roundness of the scrollbar thumb */
    border: 2px solid rgba(0, 0, 0, 0.185);
}

/* Style the handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color); /* color of the scrollbar thumb on hover */
}

/* /// Login Page /// */

.login-header h2 {
    color: var(--secondary-color);
    font-size: 2.2em;
}

.login-page {
    padding-top: 20px;
}

.login-page form, .image-upload form, #addBirthdayForm, .aspitform {
    border: 1px solid var(--secondary-color);
    border-radius: 6px;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    -webkit-box-shadow: 6px 7px 24px -11px rgba(0,0,0,0.75);
    -moz-box-shadow: 6px 7px 24px -11px rgba(0,0,0,0.75);
    box-shadow: 6px 7px 24px -11px rgba(0,0,0,0.75);
}

.login-page form input,
.image-upload input,
.aspitform input,
.aspitform select,
.group-creation-section input,
.group-creation-section select,
#addBirthdayForm input,
#addBirthdayForm select
{
    min-height: 30px;
    border: 1px solid var(--main-text-color);
    border-radius: 6px;
    color: var(--main-text-color);
    padding-left: 6px;
}

.image-upload select, .aspitform select {
    background-color: var(--main-color);
    border: 1px solid white;
    border-radius: 6px;
    color: var(--main-text-color);
    padding: 6px;

}

.login-page form .password-label {
    padding-top: 10px;
}

.login-page form input[type="submit"],
.aspitform button[type="submit"],
.aspitbutton,
.group-creation-section form input[type="submit"],
.image-upload input[type="submit"],
#addBirthdayForm input[type="submit"] {
    background-color: var(--secondary-color);
    color: var(--main-text-color);
    padding: 15px 20px;
    border: 1px solid var(--secondary-color);
    border-radius: 6px;
    cursor: pointer;
    margin-top: 20px;
    font-size: 1.2em;
}

.login-page form input[type="submit"]:hover,
.aspitform button[type="submit"]:hover,
.aspitform button[type="submit"]:focus,
.aspitform input[type="submit"]:hover,
.aspitform input[type="submit"]:focus,
.login-page form input:focus {
    outline: none;
    border: 1px solid var(--secondary-color);
    filter: brightness(115%);
    color: var(--main-text-color);
}

/* Targeting the annoying autofill which breaks my CSS! */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active  {
    -webkit-box-shadow: 0 0 0 30px var(--main-color) inset !important; 
    -webkit-text-fill-color: var(--main-text-color) !important; 
    color: var(--main-text-color);
}

.delete-button {
    color: white;
    background-color: red;
    padding: 4px;
    border: 1px solid black;
}

/* Birthdays */

.birthday-list {
    color: var(--main-text-color);
}


.icon {
    max-width: 20px;
}

.icon:hover {
    cursor: pointer;
}

.invisible {
    visibility: hidden;
    transform: scale(0);
    pointer-events: none; /* Prevents the element from receiving mouse events */
}

#loader {
    width: 48px;
    height: 48px;
    border: 5px solid #FFF;
    border-bottom-color: var(--secondary-color);
    border-radius: 50%;
    display: none;
    margin: auto auto;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    }

    @keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
    } 
