/* general rules */
html {
    font-size: 3.2vw;
    font-family: sans-serif, "Helvetica Neue", "Lucida Grande", Arial;
}

body {
    padding: 0;
    margin: 0;
    background-color: #6f63c0;
}

div {
    overflow: hidden;
}

h1, 
h2, 
h3{
    margin-top: 0;
    margin-bottom: 0;
}

p {
    font-weight:bold;
    color: darkblue;
    font-size: 1rem;
}

h4 {
    font-weight:bold;
    color: darkblue;
    font-size: 1.25rem;
}

a, a:visited, a:hover, a:active {
  color: inherit;
  text-decoration: none;
}

img {
    max-width: 100%;
}

.top-spacer {
    height: 7rem;
}

.blue {
    color: #2a40b0;
}

.button {
    display: inline-block;
    padding: 1rem;
    background-color: darkred;
    color: white;
    border-radius: .25rem;
}

.base-top {
    display: grid;
    grid-template-columns: 1fr 6rem;
    height: 6rem;
    width: 100vw;
    border-top: .5rem black solid;
    border-bottom: .5rem black solid;
    background-color: white;
    color: black;
    font-size: 1.4rem;
    text-align: center;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100;
}

.base-top div {
    border-bottom: .5rem black solid;
}
.base-top div:hover {
    cursor: pointer;
}

.base-top .left {
    padding: 1.35rem 0;
    border-right: .5rem black solid;
}

.menubutton img {
    margin-top: 10%;
    width: 80%;
    height: 80%;
}

.menu {
    position: fixed;
    z-index: 100;
    top: 7rem;
    right: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    font-size: 2rem;
    display: none;
    background-color: lightskyblue;
}

.menu div {
    border: .5rem solid black;
    border-top: none;
    padding: 1rem;
    background-color: white;
}

.back-button {
    border: .35rem solid black;
    background-color: white;
    border-radius: 1rem;
    text-align: center;
    padding: .75rem;
    font-size: 1.5rem;
    font-weight: bolder;
    display: inline-block;
    margin: 1rem 1rem 0;
    background-color: pink;
}

.section {
    width: 82%;
    min-height: 5rem;
    border: .5rem solid black;
    background-color: white;
    color: black;
    margin: 1rem auto;
    border-radius: 1rem;
    text-align: center;
    padding: 1.25rem;
}

.section img {
    max-width: 80%;
}

.section .button {
    display: block;
    width: 75%;
    background-color: darkred;
    color: white;
    border-radius: .25rem;
    margin: 0 auto;
    font-size: 1.5rem;
}

.section .soldout {
    background-color: white;
    color: black;
    border: .25rem solid black;
}

input {
    width: 70%;
    height: 2rem;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    background-color: var(--textcolor);
}

@media screen and (min-width: 700px) {
    :root{
        font-size: 1.5vw;
    }
    body {
        padding-top: 8.5rem;
        padding-bottom: 3rem;
    }
    .base-top {
        height: 4rem;
        grid-template-columns: 1fr 0;
        
    }
    .base-top .left {
        padding: .4rem 0;
        border-right: none;
    }
    .menubutton {
        display: none
    }
    .menu {
        display: flex;
        height: 3.25rem;
        width: auto;
        margin: 0 auto;
        top: 4.95rem;
        right: 50%;
        font-size: .75rem;
        justify-content: center;
        background-color: #6f63c0;
        transform: translate(50%, 0);
    }
    .menu div {
        padding: .5rem;
        border-left: none;
        border-bottom: .5rem solid black;
    }
    .menu .first {
        border-left: .5rem solid black;
    }
    .top-spacer{
        display:none;
    }

    .section {
        margin: 1rem auto 0;
        width: 70%;
    }

    .idx{
        column-count: 2;
        width: 97%;
        margin: 0 auto 5rem;
    }
    .idx .section {
        margin: 1rem auto 0;
        width: 88%;
        display: inline-block;
    }
}

@media screen and (min-width: 1200px) {
    :root{
        font-size: 1vw;
    }
    .idx{
        column-count: 3;
    }
}