/* Font import -------------------------------------------- */
@font-face {
  font-family: CallingCode;
  src: url(/media/fonts/CallingCode-Regular.woff);
}

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
    background: #161a2d; 
	width: 100%;
    height: 100%;
    overflow: hidden;
}

/*content panel box */

.content-panel {
    position: relative;
    flex: 1;
    min-height: 0;
    margin-bottom: 1%;

    background: #f3f3f3;
    border-radius: 24px;
    box-shadow: 6px 6px 12px rgba(0,0,0,.8);
    padding: 25px;
}

.content-scroll {
    height: 100%;
    overflow-y: auto;     /* content scrolls inside the panel if it doesn't fit */
}

/* HEADER CONTAINER */

.header-limit {
    position: fixed;
    top: 6px;
    left: 20px;
    right: 20px;
    bottom: 20px;

    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* HEADER PANEL */

.header-panel {
    position: relative;
    width: 100%;
    min-height: 2%;
    padding: 12px 0px;
    background-color: #161a2d;
    color: white;
    display: flex;
    align-items: center;
}

/* header text positioning */

.header-cell {
    display: flex;
    align-items: center;
    padding-left: 30px;
    position: relative;
    z-index: 3;
}


/* Heder styling */

.header-cell h1 {
    font-family: CallingCode;
    font-size: 2.8rem;
    font-weight: normal;
}

/* Language mechanism -------------------------------------------- */
/* This hides text as selected by the switcher ------------------- */
.eng { display: block; }
.cz { display: none; }

body.lang-cz .eng { display: none; }
body.lang-cz .cz  { display: block; }

/* Back button (mirror of the language switch) ------------------- */

.back-btn {
    position: absolute;
    z-index: 10;
    bottom: 15px;          /* same as .lang-switch */
    left: 20px;            /* mirrors right: 20px */

    display: flex;
    align-items: center;
    height: 32px;
    padding: 2px 10px 2px 2px;
    gap: 6px;

    background: #333;
    border-radius: 32px;
    text-decoration: none;
    transition: background 0.4s;
}

/* White round knob with the arrow, like the switch knob */
.back-knob {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;

    background: white;
    color: #333;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.4s;
}

.back-label {
    color: white;
    font-size: 10px;
    font-weight: 700;
}

/* Hover: same blue as the active switch, knob nudges left */
.back-btn:hover,
.back-btn:focus-visible {
    background: #00a1ff;
    outline: none;
}

/* Language switch -------------------------------------------- */

.lang-switch {
    position: absolute;
    z-index: 10;
    bottom: 15px;
    right: 20px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 64px;
    height: 32px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    inset: 0;
    background: #333;
    border-radius: 32px;
    cursor: pointer;
}

/* Sliding white knob */
.slider::before {
    content: "EN";
    position: absolute;
    width: 28px;
    height: 28px;
    left: 2px;
    top: 2px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: white;
    color: #333;
    border-radius: 50%;

    font-size: 10px;
    font-weight: 700;

    transition: 0.4s;
    z-index: 2;
}

/* Unselected CZ */
.slider::after {
    content: "CZ";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);

    color: white;
    font-size: 10px;
    font-weight: 700;

    z-index: 1;
}

/* CZ selected */
.switch input:checked + .slider {
    background: #00a1ff;
}

.switch input:checked + .slider::before {
    content: "CZ";
    transform: translateX(32px);
}

/* Unselected EN */
.switch input:checked + .slider::after {
    content: "EN";
    left: 8px;
    right: auto;
}