 /* Custom variables */
 @font-face {
    font-family: 'LGC';
    src: url("../fonts/lgc.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    font-family: "LGC", sans-serif !important;
    font-size: 105%;
}

p {
    font-size: 115% !important;
}

.bold {
    font-family: "LGC Bold", sans-serif !important;
    src: url("../fonts/lgcb.woff2") format("woff2");
}

.logo-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.logo-center img {
    width: clamp(30px, 5vw, 50px);
    height: auto;
}

.logo {
    padding-top: 10em; 
}

.move-menu-anonymous {
    transform: translateX(1.6%);
}

.move-menu-account {
    transform: translateX(5.3%);
}

.navbar-gradient-border {
    position: relative;
}

.navbar-gradient-border::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);

    width: 80%;
    height: 2px;

    background: linear-gradient(
    to right,
    transparent,
    #bfbfbf,
    transparent
    );
}

.navbar-left {
    justify-content: flex-end;
}

.navbar-right {
    justify-content: flex-start;
}

@media (min-width: 992px) {
    /* Logo centered */
    .logo-center {
        grid-column: 2;
        justify-self: center;
    }

    /* Menu on the right */
    #navbarSupportedContent {
        grid-column: 3;
        justify-self: end;
        margin-left: 11px;
    }

    /* Prevent Bootstrap from breaking alignment */
    .navbar-collapse {
        flex-grow: 0;
    }
}

/* Banner */
.banner {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
    rgba(255, 255, 255, 0) 80%,
    rgba(255, 255, 255, 1) 100% 
    );
    pointer-events: none;
}

/* Banner text */
.banner-text {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    padding: 0 1rem;
}

.banner-text h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.banner-text p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    opacity: 0.85;
}

/* Footer social icons */
footer .container {
    display: flex;
    justify-content: center; 
    align-items: center;
    gap: 1.5rem;
}

.pad-4 {
    padding: 1.5rem 2rem;
}

/* Icons on the same line */
.social-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-icons img {
    width: 35px;
    height: auto;
    cursor: pointer;
    opacity: 50%;
}

.social-icons img:hover {
    opacity: 100%;
}

@media (max-width: 576px) {
    footer .container {
        flex-direction: column;
    }
}

/* Main content (margin) */
.body-content {
    margin: 2rem 15em;
}

@media (max-width: 992px) {
    .body-content {
        margin: 1rem 5em;
    }
}

@media (max-width: 576px) {
    .body-content {
        margin: 1rem 3em;
    }
}

.fit-content {
    display: inline-block;
}

.center {
    min-height: 15vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Login form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;

    width: fit-content;
    transform: translateX(-60px);
}

.form-row {
    display: grid;
    grid-template-columns: 140px 280px;
    align-items: center;
    gap: 1rem;
}

.form-row label {
    text-align: right;
    white-space: nowrap;
}

.form-row input {
    width: 100%;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1.2rem;
}

.form-actions {
  display: grid;
  grid-template-columns: 140px 280px;
}

.form-actions button {
  grid-column: 2;
  justify-self: center;
}

/* School page */
.school-item {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    align-items: flex-start;
    padding: 2rem 0;
}

.school-logo img {
    width: 100%;
    max-width: 220px;
    max-height: 190px;
    height: auto;
    object-fit: contain;
}

.school-name {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.school-description {
    opacity: 0.85;
    line-height: 1.5;
}

.school-separator {
    width: 80%;
    height: 2px;
    margin: 1rem auto;

    background: linear-gradient(
        to right,
        transparent,
        #bfbfbf,
        transparent
    );
    opacity: 0.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .school-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .school-logo {
        display: flex;
        justify-content: center;
    }
}

/* Drawing page */
.drawings-container {
    max-width: 1200px;
    margin: auto;
    padding: 2rem;
}

.phase-section {
    margin-bottom: 4rem;
}

.phase-title {
    margin-bottom: 1.5rem;
    font-weight: bold;
}

/* Masonry layout */
.gallery {
    column-count: 4;
    column-gap: 1rem;
}


@media (max-width: 992px) {
    .gallery {
        column-count: 3;
    }
}

@media (max-width: 576px) {
    .gallery {
        column-count: 2;
    }
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.drawing-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.drawing-modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    max-width: 90%;
    width: fit-content;
    text-align: center;
    position: relative;
}

.modal-content img {
    width: 100%;
    max-height: 80vh;
    max-width: 80vw;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.modal-content h3 {
    margin-bottom: 0.5rem;
}

.phase-divider {
    height: 2px;
    width: 100%;
    max-width: 700px;
    margin: 1rem auto 2rem auto;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0),
        rgba(0, 0, 0, 0.25),
        rgba(0, 0, 0, 0)
    );
}

/* Rules page */
.rules-text p {
    font-size: 130% !important;
}

.rules-text li {
    font-size: 120% !important;
}

/* New drawing page */
.no-decoration {
    text-decoration: none;
    color: white;
    font-size: 130%;
}

.no-decoration:hover {
    color: white;
}

.center-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 30vh;
    text-align: center;
}

.center-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 800px;
}

.center-form form label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.center-form form input,
.center-form form textarea,
.center-form form select {
    width: 100%;
    padding: 0.5rem 0.8rem;
    text-align: center;
}

.center-form form textarea,
.center-form form select {
    border: 1px solid #ccc;
    border-radius: 4px;
}

.center-form form button {
    align-self: center;
    width: auto;
}

/* Index page */
.home-hero {
    text-align: center;
}

.week-theme {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.week-theme span {
    display: block;
    font-size: 3.5rem;
    font-weight: bold;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
}

.schools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    align-items: center;
}

/* Custom animation theme announcement */
/* 
  these type the CSS variable as color
  unlocking the ability for the browser 
  to animate just that portion
*/
@property --＠color-1 {
  syntax: "<color>";
  inherits: false;
  initial-value: hsl(98 100% 62%);
}

@property --＠color-2 {
  syntax: "<color>";
  inherits: false;
  initial-value: hsl(204 100% 59%);
}

/* keyframes that change the color variable */
@keyframes gradient-change {
  to {
    --＠color-1: hsl(210 100% 59%);
    --＠color-2: hsl(310 100% 59%);
  }
}

article {
  /* apply variable changes over time */
  animation: gradient-change 2s linear infinite alternate;
  
  background: linear-gradient(
    /* 
      in oklch produces more vibrant gradient results 
      learn more https://developer.chrome.com/docs/css-ui/access-colors-spaces#color_interpolation
    */
    to right in oklch, 
    /* use the variables in a gradient (or wherever!) */
    var(--＠color-1), 
    var(--＠color-2)
  );
  
  /* old browser support */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  
  /* modern browser version */
  background-clip: text;
  color: transparent;
}

@layer demo.support {
  .animated-theme h1 {
    font-size: 10vmin;
    line-height: 1.1;
  }

  .animated-theme body {
    background: hsl(204 100% 5%);

    min-block-size: 100%;
    box-sizing: border-box;
    display: grid;
    place-content: center;

    font-family: system-ui, sans-serif;
    font-size: min(200%, 4vmin);

    padding: 5vmin;
  }

  .animated-theme h1, .animated-theme p, .animated-theme body {
    margin: 0;
    text-wrap: balance;
  }

  .animated-theme h1 {
    line-height: 1.25cap;
  }

  .animated-theme html {
    block-size: 100%;
  }

  .animated-theme article {
    display: grid;
    gap: 1lh;
    text-align: center;
  }
}