body, html, #app {
  margin: 0;
  width: 100%;
  height: 500px;
  background: radial-gradient(circle, #fff 0%, rgba(0,0,0,0.5) 200%);
}
header {
    width: 100%;
    display: flex;
    justify-content: ;
}

header .nav-buttons {
    top: 0;
    display: flex;
    gap: 15px;
    z-index: 20;
     width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    margin-top: 0%;
}

header .nav-btn {
    padding: 12px 25px;
    background: #fff;
    border: 2px solid var(--primary);
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

header .nav-btn:hover {
    background: var(--primary);
    color: black;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgb(13, 12, 29);
}

header .nav-btn:active {
    transform: translateY(-1px);
}



#app {
  position: relative;
  height: 100%;
  font-family: "Montserrat", serif;
}

.hero {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


 h2 {
  margin: 0;
  padding: 0;
  color: rg(71, 73, 115);
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(255, 255, 255, 1);
  line-height: 100%;
  user-select: none;
  width: 100%;
}


h2 {
  font-size: 30px;
  font-weight: 400px;
}

#webgl-canvas {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  z-index: 1;
}

.buttons {
  position: absolute;
  width: 100%;
  bottom: 15px;
  z-index: 2;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.información h2 {
  margin-top: 10px;
  text-align: center;
}

button {
  color: aliceblue;
  font-family: "Montserrat", serif;
  background: rgba(139,92,246,0.15);
  border-radius: 5px;
  border: 1px solid black;
  padding: 4px 8px;
}


@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Lato:wght@300;400;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Lato', sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    min-height: 100vh;
    padding: 0 0 ;
}

.random-cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.random-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.random-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.random-card.physics::before { background: linear-gradient(90deg, #3b82f6, #06b6d4); }
.random-card.chemistry::before { background: linear-gradient(90deg, #8b5cf6, #ec4899); }
.random-card.engineering::before { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.random-card.geography::before { background: linear-gradient(90deg, #10b981, #3b82f6); }
.random-card.history::before { background: linear-gradient(90deg, #f59e0b, #f97316); }

.random-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.random-card .card-category {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    border-radius: 25px;
    display: inline-block;
    width: fit-content;
}

.random-card.physics .card-category {
    background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(6,182,212,0.15));
    color: #2563eb;
}

.random-card.chemistry .card-category {
    background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(236,72,153,0.15));
    color: #7c3aed;
}

.random-card.engineering .card-category {
    background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(239,68,68,0.15));
    color: #d97706;
}

.random-card.geography .card-category {
    background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(59,130,246,0.15));
    color: #059669;
}

.random-card.history .card-category {
    background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(249,115,22,0.15));
    color: #ea580c;
}

.random-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
}

.random-card p {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.7;
}

.random-card .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.random-card .card-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
}

.shuffle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 30px auto;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.shuffle-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.shuffle-btn:active {
    transform: translateY(-1px);
}

.shuffle-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.5s ease;
}

.shuffle-btn:hover svg {
    transform: rotate(180deg);
}

.random-card.entering {
    animation: cardEnter 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 700px) {
    .random-cards-container {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 15px;
    }

    .random-card {
        padding: 20px;
    }

    .random-card h3 {
        font-size: 1.1rem;
    }

    .random-card p {
        font-size: 0.9rem;
    }
}


.pie_pagina {
    background-color: rgb(166, 156, 172);
    padding: 60px 20px;
    margin-top: 0;
    padding: auto;

}

.pie_pagina .logos  a {
    width: 40px;
    height: 40px;
    background-color: rgb(166, 156, 172);
    padding: auto;
}

.pie_pagina  p {
    width: 100%;
    text-align: center;
    font-family: "Montserrat", "Roboto";
    font-size: 1.1rem;
    background-color: rgb(166, 156, 172);
    color: #1e293b;
}
    
.logos {
    display: flex;
    justify-content: center;
    background-color: rgb(166, 156, 172);
    padding-top: 20px;
}

.logo_usco {
    width: 200px;
    height: 40px;
    margin-right: 1rem;
    background-color: transparent;
    padding: auto;
}

.logo_instagram {
    width: 40px;
    height: 40px;
    background-color: transparent;
    margin-right: 1rem;
    background-color: rgb(166, 156, 172);
}

.logo_facebook {
    width: 40px;
    height: 40px;
    background-color: transparent;
    background-color: rgb(166, 156, 172);
}

