@charset "utf-8" ;
/*övrigt*/
.titel{
    text-align: center;
    color:ghostwhite;
    margin-top: 5%;
    margin-bottom: 5%;
}

.maintext{
    color: ghostwhite;
    text-align: left;
}

h3{
    font-size:28px;
    margin-bottom: 15px;
    text-align: center;
}

.list{
    padding: 0;
}

.list li{
    width: auto;
    text-align: center;
    list-style-type: none;
    padding: 7px;
    position: relative;
}

.list li::before{
    content: '';
    position: absolute;
    transform: translate(-50%,-50%);
    left:50%;
    top:100%;
    width: 0;
    height: 2px;
    background: rgb(194, 191, 255);
    transition-duration: .5s;
}

.list li:hover::before{
    width:70px;
}

.list li a{
    color:rgb(194, 191, 255)
}

body{
    background-color: rgb(143, 155, 142);
}

/*header*/
.logga{
    height: 60px;
    width: auto;
}

img {
    height: 50px;
    width: 50px;
}

header {
    padding: 1rem 5%;
    grid-area: header;
    padding: 2.5rem 0;
    background-color: rgb(0, 0, 0);
    text-decoration: none;
}

.header_container {
    display: flex;
    align-items: center;
    flex-direction: row; 
    width:90%;
    margin: 0 auto;
    justify-content: center;
    gap: 20px;
}

header h1 {
    margin: 0;
    font-size: 3rem;
    color:rgb(255, 255, 255);
    height: fit-content;
}

nav a {
    padding: 10px 15px;
    margin: 5px;
    font-weight: 700;
    color: rgb(116, 116, 234);
    font-size: 1.25rem;
    text-align: center;
    text-decoration: none;
    background-color:rgb(28, 28, 205);
    border: 2px solid currentcolor;
    border-radius: 5px;
    transition: 0.3s ease-in-out;
}

nav a:hover {
    padding: 0.25rem 0.75rem;
    color: rgb(143, 143, 143);
    font-size: larger;
    background-color:lightgrey ;
}

/*footer*/
.footer{
    width:33.3%;
}

.footer-innehåll p{
    width: 190px;
    margin:auto;
    padding: 7px;
}

.footer-innehåll ul{
    text-align: center;
}

.bottom{
    background: rgb(40, 40, 40);
    text-align: center;
    padding: 10px 0;
    margin-top: 50px;
}

footer {
    background-color: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
    padding-top:50px;
}

.footer_container {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content:center;
}

.footer-nav {
    position:absolute;
    bottom: 0;
    left:50%;
    transform: translateX(-50%);
    display: flex;
    justify-content:center;
    gap: 20px;
    flex-grow: 1;
    margin-top:10px;
}

.footer-nav a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-weight: bold;
}

.footer-nav a:hover {
    text-decoration: underline;
}

.flex-text {
    color: rgb(194, 191, 255);
}

/*faq*/
.faq-titel {
    font-size: 1.5rem;
    font-weight:bold;
    margin-bottom:10px;
    color:azure
}

.faqfråga{
    display:block;
    background:none;
    border:none;
    color: rgb(243, 243, 255);
    font-weight: bold;
    font-size: 0.8rem;
    cursor:pointer;
    text-align:left;
    width:30%;
    padding:10px 0;
    margin-top: 5px;
    transition: color 0.3s;
    border: 2px solid currentcolor;
    border-radius: 5px;
}

.faqfråga:hover{
    text-decoration: azure;
    background-color: rgb(55, 55, 57);
    
}

.faqsvar{
    max-height: 0;
    overflow: hidden;
    color: rgb(243, 243, 255);
    padding: 0;
    opacity: 0;
    transition: max-height 0.5s ease-in-out, opacity 0.3s ease-in-out;
    border: 2px solid currentcolor;
    border-radius: 5px;
    width: 40%;
}

.faqsak {
    width:100%;
    padding-bottom: 15px;
    text-align: left;
}

.faqsvarvisa {
    color:azure;
    background-color: rgb(55, 55, 57);
    max-height: 200px;
    padding: 10px 0;
    opacity:1;
    display:block;
}

/*butik och populära produkter*/
.boxcontainer{
    display: flex;
    justify-content: center;
    flex-direction: row;
        flex-wrap: wrap;
}

.produkt{
    background: white;
    width: 270px;
    height:420px;
    margin:10px;
    border-radius: 15px;
}

.bildprodukt{
    margin-top: 15px;
    margin-left: 15px;
    margin-right: 15px;
    background-color: aqua;
    height: 150px;
    margin-bottom: 15px;
    background-size: cover;
    object-fit: cover;
}

.parfym-1{
    background-image: url('bilder/parfym-1.jpg');
    border-radius: 15px;
}

.parfym-2{
    background-image: url('bilder/parfym-2.jpg');
    border-radius: 15px;
}

.titel-produkt{
    color: black;
    text-align: center;
}

.text-produkt{
    color: black;
    text-align: center;
}

.parfym-3{
    background-image: url('bilder/parfym-3.jpg');
    border-radius: 15px;
}

.parfym-4{
    background-image: url('bilder/parfym-4.jpg');
    border-radius: 15px;
}

/*jämför*/
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    justify-items: center;
    margin-bottom: 50px;
}

.grid-container2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    justify-items: center;
    margin-bottom: 50px;
}

.grid-container3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    margin-bottom: 50px;
}

.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#alternativ1_info img,
#alternativ2_info img {
    width: 375px;
    height: 250px;
    border-radius: 25px;
}

#alternativ1_info p,
#alternativ2_info p {
    font-size: 18px;
    font-weight: bold;
    color: ghostwhite;
    text-align: center;
}

#alternativ1 {
    border: 2px solid #000000;
    border-radius: 20px;
    font-size: 24px;
    color: #000000;
    padding-left: 7%;
    padding-right: 7%;
    padding-top: 5%;
    padding-bottom: 5%;
}

#alternativ2 {
    border: 2px solid #000000;
    border-radius: 20px;
    font-size: 24px;
    color: #000000;
    padding-left: 7%;
    padding-right: 7%;
    padding-top: 5%;
    padding-bottom: 5%;
}

input{
    border-radius: 20px;
    border: 2px solid #000000;
    padding: 10px 20px 10px 20px;
    margin-bottom: 10%;
}

img:hover {
    transform: scale(1.03);
    transition: transform 0.3s;
}

::-webkit-scrollbar {
    width: 4px;
    opacity: 0;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/*beställningssida*/
main {
    width: 90%;
    margin: auto;
    padding: 2rem 0;
}

.titel {
    text-align: center;
    color: ghostwhite;
    margin: 2rem 0;
}

.beställningsform {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
    background-color: rgb(38, 38, 131);
    padding: 2rem;
    border-radius: 10px;
}

.beställningsform label {
    color: ghostwhite;
    margin-top: 10px;
}

.beställningsform input,
.beställningsform select,
.beställningsform textarea {
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: none;
    width: 100%;
}

.beställningsform button {
    padding: 10px;
    background-color: rgb(22, 22, 100);
    color: ghostwhite;
    border: 2px solid ghostwhite;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
}

.beställningsform button:hover {
    background-color: lightgrey;
    color: black;
}

/*responsive*/
@media (max-width: 786px) {
    .header_container{
    flex-direction: column; 
    justify-content: space-between;    
}}

@media (max-width:786px){
    .footer_container{
        flex-direction: column;
    }
}

@media (max-width: 1095px){
    .grid-container, .grid-container2, .grid-container3{
        grid-template-columns: auto;
    }
}

@media screen and (max-width: 1200px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
}
@media screen and (max-width: 1095px) {
    .grid-container {
        grid-template-columns: repeat(1, 1fr);
    }
    .grid-container2 {
        grid-template-columns: repeat(1, 1fr);
    }   
}