html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;

    background-color: aqua
}


.weather-container {
    display: flex;
    justify-items: center;
    position: fixed;
    top: 15vh;
    bottom: 20vh;
    left: 30vw;
    right: 30vw; 
}
.weather-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    width: 550px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr 0.3fr 0.7fr 0.5fr 1fr;

    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.temp {
    font-size: 3rem;
    font-weight: bold;
    grid-row: 2;
    grid-column: 1;
}
.date {
    grid-row: 1;
    grid-column: 1;
}

.wind-title {
    font-size: 2rem;
    font-weight: 600;
    grid-row: 4;
    grid-column: 1/3;
    justify-self: center;
}
.wind-speed-text {
    font-size: 1.5rem;
    font-weight: 350;
    grid-row: 5;
    grid-column: 1;
}
.wind-speed {
    font-size: 1.5rem;
    font-weight: 350;
    grid-row: 5;
    grid-column: 2;
    justify-self: center;
}
.windD {
    grid-row: 6;
    grid-column: 1;
    font-size: 1.5rem;
    font-weight: 350;
    align-self: center;
}

.weather-icon {
    font-size: 7rem;
    grid-row: 1 / 4;
    grid-column: 2 / 4;

    animation: swing 2s ease-in-out infinite;
}
@keyframes swing {
    0%, 100% {
        transform: rotate(-8deg);
    }

    50% {
        transform: rotate(8deg);
    }
}

.compass {
    grid-row: 6;
    grid-column: 2;
    position: relative;
    width: 80%;
    aspect-ratio: 1;
    border: 4px solid black;
    border-radius: 50%;
    margin: auto;
}

.direction {
    position: absolute;
    font-size: 1.33rem;
    font-weight: bold;
}

.north {
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
}

.east {
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
}

.south {
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
}

.west {
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
}

.compass-arrow {
    position: absolute;
    width: 4px;
    height: 50%;
    left: 50%;
    top: 50%;
    background: black;
    transform-origin: center center;
    transform: translate(-50%, -50%) rotate(calc(var(--arrow-rotation) * 1deg));
    animation: compass-swing 1.8s ease-in-out infinite;
}

    .compass-arrow::after {
        content: "";
        position: absolute;
        top: -2px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 18px solid black;
    }

@keyframes compass-swing {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(calc(var(--arrow-rotation) * 1deg - 3deg));
    }

    50% {
        transform: translate(-50%, -50%) rotate(calc(var(--arrow-rotation) * 1deg + 3deg));
    }
}

.forecast-container {
    gap: 20px;
    width: fit-content;
    background: white;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.forecast-day {
    display: flex;
    gap: 10px;
    padding: 13px;
    justify-items: center;

    border-width: 1px;
    border-bottom: solid;
    border-color: lightgrey;
}