/* Box-sizing: Alla element använder border-box för mer förutsägbart layoutbeteende */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Förhindra att mobilbrowsern förstorar text */
html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

/* Ta bort standardmarginal på vanliga blockelement */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
    margin-block-end: 0;
    margin: auto 0;
}

/* Ta bort punktlista på listor med role='list' */
ul[role='list'],
ol[role='list'] {
    list-style: none;
}

/* Justera standardstorlek för root-element */
html {
    font-size: 62.5%; /* 1rem = 10px */
}

/* Bilder, video osv. fyller sin container och visas som block */
img, picture, video, canvas, svg {
    max-width: 100%;
    display: block;
}

/* Formelement ärvs från body-typografi */
input, button, textarea, select {
    font: inherit;
}

/* Textlänkar utan klass får standardutseende */
a:not([class]) {
    text-decoration-skip-ink: auto;
    color: currentColor;
}

/* Se till att element med id:target får extra scrollmarginal */
:target {
    scroll-margin-block: 5ex;
}

/*** Global ***/

Body {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'roboto mono', Helvetica, sans-serif; /* Use a value from 100 to 700 */
    display: grid;
    justify-items: center;  
    background-color: #fffdcd;
}

h1 {
    font-size: 3.4rem;
    font-weight: 700;
    color: #212121;
}

h2 {
    font-size: 2.4rem;
    font-weight: 400;
    color: #555555;
}

/*** Header ***/
.title {
    display: grid;
    max-height: auto;
    margin: 4rem 0 4rem 0;
    max-width: 58rem;
    gap: 2rem;
}

/*** Formulär ***/

.order-form {
    width: 58rem;
    background-color: #fefef0;
    display: block;
    padding-top: rem;
    padding-bottom: 2.4rem;
    padding-left: 2rem;
    padding-right: 2rem;
    font-size: 1.6rem;
    border: 0.2rem solid #000000;
    box-shadow: 0.5rem 0.5rem 0 0 #515151;
}
.order-form legend {
    color: #000000;
    font-size: 2rem;
    font-weight: 400;
}

.order-form input::placeholder {
    font-weight: 200;
    font-size: 1.4rem;
    padding: 0 0.4rem;
}

.order-form input {
    width: auto;
}

.order-form span {
    color: red;
}

.item-container {
    display: grid;
    gap: 0.8rem;
    padding-bottom: 2rem;
}

[type="tel"]:hover, 
[type="email"]:hover,
[type="text"]:hover {
    border-color: #aec0ff;
    transition: all 0.1s ease;
}

/*** Form - Biljettyp ***/

/* .order-form input[type="radio"],
.order-form input[type="checkbox"] {
    width: auto;
} */

.radio-group{
    display: flex;
    gap: 4rem;
}

.radio-option{
    display: flex;
    gap: 0.8rem;
} 

/*** Form - Antal biljetter ***/

input[type="number"] {
    width: 8ch;
}

[type="number"]:hover {
    border-color: #aec0ff;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
    transition: all 0.1s ease;
}

/*** Form - Datum ***/

.checkboxes {
    margin: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/*** Form - Beställ/Checkout ***/
.checkout {
    background-color: rgb(255, 253, 223);
    border: 0.1rem #ffc964 solid;
    
}

.confirm {
    display: flex;
    justify-content: flex-start;
    align-content: flex-end;
    margin: 2rem;
}

.confirm [type="submit"] {
    color: blue;
    background-color: rgb(255, 255, 255);
    border: 0.2rem rgb(4, 0, 255) solid;
    border-radius: 0.8rem;
    padding: 0.8rem 2rem ;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

[type="submit"]:hover {
    border-color: #00ff51;
    color: black;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
    transform: scale(1.02);
}