* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 100%;
    background-color: black;
    color: silver;
}
header {
    display: flex;
    align-items: center;
    border-bottom: 3px ridge silver;
    margin-bottom: 2em;
}
header img {
    padding: 1em;
}
header h2 {
    font-size: 300%;
}
header h3 {
    font-size: 200%;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.imagecarousel {
    position: relative;
}

.image {
    display: none;
}

.image:first-of-type {
    display: block;
}

.image img {
    border-radius: 10px;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    color: rgba(0, 0, 0, 0.4);
    background-color: rgba(255, 255, 255, 0.4);
    border: 3px solid rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    font-size: 200%;
    transform: translateY(-50%);
    padding: .25em;
    transition: all ease-in-out 75ms;
}

.prev:hover,
.next:hover {
    color: skyblue;
    border: 5px solid skyblue;
    background-color: white;
    cursor: pointer;
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

.dots {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 9px;
}

.dot:hover {
    background-color: white;
    border: 3px solid skyblue;
}

.dot {
    width: 15px;
    aspect-ratio: 1;
    border-radius: 50vh;
    background-color: rgba(255, 255, 255, 0.4);
    transition: all ease-in-out 75ms;
    border: 3px solid rgba(0, 0, 0, 0.4);
}

.active {
    background-color: white;
    border: 3px solid skyblue;
}

.fadeout {
    animation: fade 2000ms;
}

@keyframes fade {
    from {opacity: .2;} 
    to {opacity: 1;}
}

footer {
    padding: 2em 0;
    font-size: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 3px ridge silver;
    margin-top: 2em;
}

@media only screen and (max-width: 800px) {
    
    header {
        flex-direction: column;
        text-align: center;
        font-size: 75%;
    }
   
    .image img {
        width: 100%;
        height: auto;
        border-radius: 0px;
    }

    .prev,
    .next {
        font-size: 150%;
    }

    .dots {
        padding: 1em;
    }
}