body{
    background-color: sienna;
    text-align: center;
    font: bold italic 20px serif;
    color: sandybrown;
}
.button{
    background-color: sienna;
    color: sandybrown;
    border-radius: 5px;
    font-style: italic;
    border: 3px solid sandybrown;
    font-size: 16px;
}
.button:hover {
    background-color: black;
    color: grey;
    border-radius: 5px;
    font-style: italic;
    border: 3px solid grey;
    font-size: 16px;
}
.container{
  height: 50px;
  position: relative;
  background-color: black;
  color: grey;
  font: bold italic 20px serif;
  border-radius: 15px;
  border: 3px solid grey;
}
.vertical-center {
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.one{
    background-color: sandybrown;
    color: brown;
    font: bold italic 20px serif;
    border-radius: 15px;
    border: 3px solid brown;
    text-align: center;
}
audio{
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: invert(100%);
}
table, th, td{
    border-collapse: collapse;
    margin-left: auto;
    margin-right: auto;
    border: 3px solid grey;
    padding: 10px;
    color: grey;
    background-color: black;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.trait:hover {
    background-color: #f0e68c !important;
    color: black !important;
    cursor: pointer;
}

h1 {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Confetti animation */
.confetti {
    position: fixed;
    top: -10px;
    z-index: 1000;
    animation: confetti-fall linear infinite;
}

.emoji-confetti {
    position: fixed;
    top: -20px;
    z-index: 1000;
    animation: emoji-fall linear infinite;
    pointer-events: none;
    user-select: none;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes emoji-fall {
    0% {
        transform: translateY(-20px) rotate(0deg) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(50vh) rotate(180deg) scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(360deg) scale(0.8);
        opacity: 0;
    }
}

/* Random fact display */
#randomFact {
    font-size: 16px !important;
    line-height: 1.4 !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* Weather Widget */
.weather-widget {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 8px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 2px solid sandybrown;
    font-size: 14px;
    margin: 10px auto;
    width: fit-content;
}

.weather-icon {
    font-size: 24px;
    margin-right: 8px;
}

.weather-info {
    text-align: center;
}

.weather-temp {
    font-weight: bold;
    color: saddlebrown;
}

.weather-condition {
    font-size: 12px;
    color: sienna;
}

/* Change weather button */
.weather-change-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    margin-left: 8px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weather-change-btn:hover {
    transform: rotate(90deg);
}

.weather-change-btn:active {
    transform: rotate(180deg) scale(0.9);
}

/* Weather Animations */
.weather-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.weather-element {
    position: absolute;
    pointer-events: none;
}

/* Rain drops */
.rain-drop {
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, transparent, rgba(70, 130, 180, 0.6));
    animation: rain-fall linear infinite;
}

@keyframes rain-fall {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Snow flakes */
.snow-flake {
    animation: snow-fall linear infinite;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

@keyframes snow-fall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Sun rays */
.sun-ray {
    display: none;
}

/* Wind lines */
.wind-line {
    position: absolute;
    left: -100px;
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: wind-blow linear infinite;
}

@keyframes wind-blow {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100vw);
        opacity: 0;
    }
}

/* Floating clouds */
.floating-cloud {
    position: absolute;
    animation: float-cloud ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
    filter: blur(0.5px); /* Soft cloud edges */
}

@keyframes float-cloud {
    0% {
        transform: translateX(-10px) translateY(0px);
    }
    25% {
        transform: translateX(10px) translateY(-5px);
    }
    50% {
        transform: translateX(20px) translateY(0px);
    }
    75% {
        transform: translateX(10px) translateY(5px);
    }
    100% {
        transform: translateX(-10px) translateY(0px);
    }
}

/* Weather background effects */
.weather-sunny {
    background: linear-gradient(180deg, #87CEEB 0%, #FFF8DC 100%);
}

.weather-rain {
    background: linear-gradient(180deg, #708090 0%, #2F4F4F 100%);
}

.weather-snow {
    background: linear-gradient(180deg, #E6E6FA 0%, #F0F8FF 100%);
}

.weather-wind {
    background: linear-gradient(180deg, #F5F5DC 0%, #D3D3D3 100%);
}

.weather-clouds {
    background: linear-gradient(180deg, #B0C4DE 0%, #778899 100%);
}
.t1, .t6{
    background-color: black;
    color: grey;
    font: bold italic 20px serif;
    border-radius: 15px;
    border: 3px solid grey;
}
.t1, .t5, .t7{
    background-color: sandybrown;
    color: brown;
    font: bold italic 20px serif;
    border-radius: 15px;
    border: 3px solid brown;
}

.t2, .t4, .t8, .t10{
    background-color: rosybrown;
    color: saddlebrown;
    font: bold italic 20px serif;
    border-radius: 15px;
    border: 3px solid saddlebrown;
}

.t3, .t9{
    background-color: peru;
    color: lightsalmon;
    font: bold italic 20px serif;
    border-radius: 15px;
    border: 3px solid lightsalmon;
}
img{
    border-radius: 15px;
    width: 300px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    cursor: pointer;
}
.topnav {
  overflow: hidden;
  position: relative;
  z-index: 100; 
}
.topnav #myLinks {
  display: none;  
  background-color: black;
  float: right;
  z-index: 101; 
  border-radius: 15px;
  border: grey solid 3px;
}
.topnav a {
  color: grey;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  display: block;
  border-radius: 15px;
}
.topnav a.icon {
  display: block;
  position: absolute;
  right: 0;
  top: 0;
}
.active {
  background-color: black;
  color: grey;
    border: grey solid 3px;
}
video{
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 300px;
    border-radius: 15px;
}