/* 

    Auteur: Tim Kleuver
    Datum: 26-8-2024
    beschrijving: ervaringen.css

*/

section{
    margin-bottom: 40px;
}

#container
{
    display: flex;
    flex-direction: row;
    justify-content: center;
    justify-content: space-evenly;
    width: 100%;
    align-self: center;
    padding-bottom: 40px;
}

.item
{
    transform: rotateZ(0deg);
    transition: all 0.5s;
    margin-left: 15px;
    margin-right: 15px;
    margin-top: 35px;
    margin-bottom: 5px;
    max-height: auto;
    padding: 4px;
    z-index: 0;
    box-shadow: rgb(255, 255, 255) 2px 2px 2px;
    background-color: rgb(30, 30, 30);
    color: white;
}

.item:hover
{
    transform: rotateZ(1deg);
    transition: all 0.5s;
    margin-left: 15px;
    margin-right: 15px;
    margin-top: 35px;
    margin-bottom: 5px;
    max-height: auto;
    padding: 4px;
    z-index: 0;
    box-shadow: rgb(255, 255, 255) 2px 2px 2px 2px;
    background-color: rgb(30, 30, 30);
    color: white;
}

#item-2
{
    flex-grow: 1;
}

.slider
{
    position: relative;
    width: 400px;
    height: 600px;
    margin: auto;
    background-color: rgb(30, 30, 30);
    box-shadow: rgb(255, 255, 255) 2px 2px 2px 2px;
    justify-self: center;
    overflow: hidden;
}

.images
{
    display: flex;
    width: 100%;
}

img {
    height: 400px;
    width: 300px;
    width: 100%;
    transition: all 0.05s ease;
}

.images input {
    display: none;
}

.dots {
    display: flex;
    justify-content: center;
    margin: 5px;
}

.dots label {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    border: 2px solid white;
    cursor: pointer;
    transition: all 1.7s ease;
    margin: 5px;
}

p
{
    color: white;
    font-family: Arial, Helvetica, sans-serif;
}

.dots label:hover {background: blue;}
#img1:checked ~ .m1 {
    margin-left: 0%;
}
#img2:checked ~ .m2 {
    margin-left: -350px;
}
#img3:checked ~ .m3 {
    margin-left: -650px;
}
#img4:checked ~ .m4 {
    margin-left: -950px;
}
#img5:checked ~ .m5 {
    margin-left: -1550px;
}

@media screen and (max-width:580px) and (min-height:450px) and (max-height:1000px) { /*phone portrait*/

    .item
{
    transform: rotateZ(0deg);
    transition: all 0.5s;
    margin-left: 5px;
    margin-right: 5px;
    margin-top: 35px;
    margin-bottom: 35px;
    max-height: 800px;
    padding: 4px;
    z-index: 0;
    box-shadow: rgb(255, 255, 255) 2px 2px 2px 2px;
    background-color: rgb(30, 30, 30);
    color: white;
}

.item:hover
{
    transform: rotateZ(1deg);
    transition: all 0.5s;
    margin-left: 5px;
    margin-right: 5px;
    margin-top: 35px;
    margin-bottom: 35px;
    max-height: 800px;
    padding: 4px;
    z-index: 0;
    box-shadow: white 2px 2px 2px 2px;
    background-color: rgb(30, 30, 30);
    color: white;
}

#container
{
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-content: space-evenly;
    width: 95%;
    margin: auto;
    padding-bottom: 40px;
}

.slider
{
    position: relative;
    width: 90%;
    height: 430px;
    background-color: rgb(30, 30, 30);
    box-shadow: rgb(255, 255, 255) 2px 2px 2px 2px;
    margin: auto;
    overflow: hidden;
    margin-bottom: 40px;
}

.dots label:hover {background: blue;}
#img1:checked ~ .m1 {
margin-left: 0%;
}
#img2:checked ~ .m2 {
margin-left: -150px;
}
#img3:checked ~ .m3 {
margin-left: -300px;
}
#img4:checked ~ .m4 {
margin-left: -450px;
}
#img5:checked ~ .m5 {
margin-left: -600px;
}

img {
    height: 230px;
    width: 150px;
    transition: all 0.05s ease;
}

}

@media screen and (max-width: 1000px) and (max-height: 450px) { /*phone landscape*/
    .slider
    {
        position: relative;
        width: 50%;
        height: 430px;
        background-color: rgb(30, 30, 30);
        box-shadow: rgb(255, 255, 255) 2px 2px 2px 2px;
        margin: auto;
        overflow: hidden;
        margin-bottom: 40px;
    }

    .dots label:hover {background: blue;}
#img1:checked ~ .m1 {
    margin-left: 0%;
}
#img2:checked ~ .m2 {
    margin-left: -150px;
}
#img3:checked ~ .m3 {
    margin-left: -300px;
}
#img4:checked ~ .m4 {
    margin-left: -450px;
}
#img5:checked ~ .m5 {
    margin-left: -600px;
}

img {
        height: 230px;
        width: 150px;
        transition: all 0.05s ease;
    }

    #container
    {
        display: flex;
        flex-direction: column;
        justify-content: center;
        justify-content: space-evenly;
        width: 100%;
        margin: auto;
        padding-bottom: 40px;
    }
}