/* portal/css/style.css */
@font-face {
    font-family: 'Segoe UI';
    src: url('../fonts/Segoe UI Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Segoe UI';
    src: url('../fonts/Segoe UI Bold Italic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
}

:root {
    --color-dark: #1C1C1C;
    --color-orange: #F69B0F;
    --color-red: #EB120D;
    --color-white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--color-white);
    overflow-x: hidden;
}

.header {
    background-color: var(--color-orange);
    text-align: center;
    padding: 10px 0;
    flex-shrink: 0;
}

.marquee-container {
    background-color: var(--color-red);
    color: var(--color-white);
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.marquee-text {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 30s linear infinite;
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 1px;
}

@keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

.logo {
    max-width: 150px;
    height: auto;
    background-color: var(--color-white);
    padding: 10px 15px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.main-content {
    flex-grow: 1;
    background-image: url('../images/bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.main-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Overlay to improve button visibility */
    z-index: 1;
}

.view {
    position: relative;
    z-index: 2;
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    animation: fadeIn 0.4s ease;
}

.view.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn {
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.btn:hover {
    filter: brightness(1.1);
}

.btn:active {
    transform: scale(0.95);
}

.lang-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    width: 100%;
}

.lang-btn {
    width: 300px;
    max-width: 45%;
}

.css-lang-btn {
    background-color: rgba(30, 30, 30, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-decoration: none;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.css-lang-btn:hover {
    background-color: var(--color-red);
    border-color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(235, 18, 13, 0.4);
}

.css-lang-btn .flag-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    width: 100%;
    max-width: 700px;
    margin-bottom: 40px;
}

.css-option-card {
    background-color: var(--color-white);
    border-radius: 12px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--color-dark);
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin: 0 auto;
}

.css-option-card .card-icon {
    width: 36px;
    height: 36px;
    fill: currentColor;
}

.css-option-card:hover {
    background-color: var(--color-white);
    color: var(--color-red);
}

.css-option-card:hover .card-icon {
    color: var(--color-red);
}

.option-btn {
    width: 100%;
}

.back-btn-link {
    display: flex;
    justify-content: center;
    width: 100%;
}

.back-btn {
    width: 250px;
    max-width: 70%;
}

.footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    text-align: center;
    padding: 15px;
    font-size: 13px;
    flex-shrink: 0;
}

.css-option-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex: 1 1 150px;
  padding: 28px 16px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  text-decoration: none;
  color: #1a1a1a;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease;
}

.css-option-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.card-icon {
  width: 30px;
  height: 30px;
  color: #1a1a1a;
}

/* Responsiveness */
@media (max-width: 600px) {
    .options-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        gap: 15px;
    }
    
    .lang-buttons {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .lang-btn {
        max-width: 80%;
    }
    
    .logo {
        max-width: 120px;
    }
}
