@charset "UTF-8";
/*setting style for the whole page*/
body{
    font-family: Verdana, Geneva, sans-serif;
    color: rgb(91, 91, 91);
    background-color: ivory;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/*setting style for header*/
header {
    text-align: center;
    padding: 20px;
}
header img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/*style rules for heading*/
h1{
    text-shadow: rgb(224, 146, 27) 4px 6px 5px;
    color: black;
}
h2 {
    font-size: 1.3em;
    font-weight: bold;
    color: black;
    text-shadow: rgb(224, 146, 27) 4px 6px 5px;
}

/*setting style for main content*/
main {
    padding: 20px;
    margin-top: 70px;
}

main > img {
    width: 25%;
    padding: 25px;
    float: left;
}

/*setting style for footer*/
footer {
    background-color: hsl(29, 100%, 50%);
    color: rgba(0, 0, 0, 0.8);
    font-weight: bold;
    font-size: 0.9em;
    line-height: 3em;
    text-align: center;
    margin-top: 10px;
    padding: 10px;
}

/*setting style for navigation bar*/
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav li {
    display: block;
    width: 33.33%;
    float: left;
}

nav a {
    padding-left: 10px;
    padding-right: 10px;
    text-decoration: none;
    color: rgb(70, 70, 70);
    display: block;
    background-color: hsl(29, 100%, 50%);
    line-height: 2.8em;
    text-decoration: none;
    text-align: center;
}

nav a:hover {
    text-decoration: underline;
    color: black;
    background-color: hsl(29, 97%, 43%);
    font-size: 1.2em;
    transition: background-color 0.5s ease-in 0.2s;
    transition: color 0.5s ease-in 0.2s;
    transition: font-size 1s ease;
}

/*style for table*/
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
table, th, td {
    border: 1px solid black;
}
th, td {
    padding: 10px;
    text-align: left;
    background-color: hsl(29, 73%, 68%);
    color: black;
}

th {
    background-color: hsl(29, 100%, 50%);
    color: rgb(0, 0, 0);
    font-weight: bold;
}

td[data-label="Description:"] {
    background-color: hsl(29, 73%, 59%);
}

/*style for image gallery*/
div.imgGallery {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap:20px;
}
div.imgGallery img {
    width: 100%;
    margin-bottom: 20px;
    border: solid black 1px;
    border-radius: 5px;
}

/*style for form*/
form {
    margin-top: 20px;
    clear:left;
}
label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
input[type="text"], input[type="email"] {
    width: 80%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
input[type='tel'] {
    width: 80%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
input[type="submit"] {
    background-color: hsl(29, 100%, 50%);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
select {
    width: 83%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
input[type="submit"]:hover {
    background-color: hsl(29, 97%, 43%);
}

/*style for invalid/valid input*/
input#name:focus:invalid,
input#email:focus:invalid,
input#phone:focus:invalid {
    background: rgb(255, 220, 220) url(rb_invalid.png) bottom right/contain no-repeat;
}
input#name:focus:valid,
input#email:focus:valid,
input#phone:focus:valid {
    background: rgb(220, 255, 220) url(rb_valid.png) bottom right/contain no-repeat;
}

/*style for main image*/
main > img {
    width: 35%;
    padding: 25px;
    float: left;
    display: block;
}

/*style for contact-content*/
.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 30px;
}

/*style for hr*/
hr {
    border: none;
    border-top: 1px solid black;
    margin: 20px 0;
    width: 100%;
}

/*responsive design for tablets*/
@media only screen and (max-width: 1100px) {
    div.imgGallery {
        grid-template-columns: repeat(2, 1fr);
        width: 75%;
        margin: 0 auto;
    }
    .product-start {
    border-top: solid black 2px;
    }
}

/*responsive design for mobile phones*/
@media only screen and (max-width: 768px) {
    html{
        background-color: hsl(0, 0%, 0%);
    }
    body{
        width: 100%;
        margin: 0;
    }
    nav li {
        width: 100%;
        float: none;
        font-size: x-large;
    }
    nav a {
        border-bottom: solid black 1px;
    }
    main > img {
        width: 90%;
        float: none;
    }
    div.imgGallery {
        grid-template-columns: 1fr;
    }

    iframe {
        width: 100%;
        height: 300px;
    }

    /*table style for mobile phones*/
    table, tbody, tr, td,th {
        display: block;
    }

    thead, tfoot {
        display: none;
    }

    tbody td {
        position: relative;
        padding-left: 40%;
        height: auto;
    }
    td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        top: 0;
        width: 40%;
        padding: 10px;
        white-space: nowrap;
        color: black;
        font-weight: bold;
    }
    td[data-label="Size:"] {
    background-color: hsl(29, 73%, 59%);
}
}
/*responsive design for large screens*/
@media only screen and (min-width: 769px) {
    html {
    background-color: hsl(29, 100%, 50%);
    background-image: url(background-1.jpg);
    }
    .product-start {
    border-top: solid black 2px;
    }
}
